2020
2121/** Object describing a step for a Synthetic test. */
2222@ JsonPropertyOrder ({
23+ SyntheticsStepDetail .JSON_PROPERTY_ALLOW_FAILURE ,
2324 SyntheticsStepDetail .JSON_PROPERTY_BROWSER_ERRORS ,
2425 SyntheticsStepDetail .JSON_PROPERTY_CHECK_TYPE ,
2526 SyntheticsStepDetail .JSON_PROPERTY_DESCRIPTION ,
2627 SyntheticsStepDetail .JSON_PROPERTY_DURATION ,
2728 SyntheticsStepDetail .JSON_PROPERTY_ERROR ,
29+ SyntheticsStepDetail .JSON_PROPERTY_FAILURE ,
2830 SyntheticsStepDetail .JSON_PROPERTY_PLAYING_TAB ,
2931 SyntheticsStepDetail .JSON_PROPERTY_SCREENSHOT_BUCKET_KEY ,
3032 SyntheticsStepDetail .JSON_PROPERTY_SKIPPED ,
4244 value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator" )
4345public class SyntheticsStepDetail {
4446 @ JsonIgnore public boolean unparsed = false ;
47+ public static final String JSON_PROPERTY_ALLOW_FAILURE = "allowFailure" ;
48+ private Boolean allowFailure ;
49+
4550 public static final String JSON_PROPERTY_BROWSER_ERRORS = "browserErrors" ;
4651 private List <SyntheticsBrowserError > browserErrors = null ;
4752
@@ -57,6 +62,9 @@ public class SyntheticsStepDetail {
5762 public static final String JSON_PROPERTY_ERROR = "error" ;
5863 private String error ;
5964
65+ public static final String JSON_PROPERTY_FAILURE = "failure" ;
66+ private SyntheticsBrowserTestResultFailure failure ;
67+
6068 public static final String JSON_PROPERTY_PLAYING_TAB = "playingTab" ;
6169 private SyntheticsPlayingTab playingTab ;
6270
@@ -93,6 +101,27 @@ public class SyntheticsStepDetail {
93101 public static final String JSON_PROPERTY_WARNINGS = "warnings" ;
94102 private List <SyntheticsStepDetailWarning > warnings = null ;
95103
104+ public SyntheticsStepDetail allowFailure (Boolean allowFailure ) {
105+ this .allowFailure = allowFailure ;
106+ return this ;
107+ }
108+
109+ /**
110+ * Whether or not the step was allowed to fail.
111+ *
112+ * @return allowFailure
113+ */
114+ @ jakarta .annotation .Nullable
115+ @ JsonProperty (JSON_PROPERTY_ALLOW_FAILURE )
116+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
117+ public Boolean getAllowFailure () {
118+ return allowFailure ;
119+ }
120+
121+ public void setAllowFailure (Boolean allowFailure ) {
122+ this .allowFailure = allowFailure ;
123+ }
124+
96125 public SyntheticsStepDetail browserErrors (List <SyntheticsBrowserError > browserErrors ) {
97126 this .browserErrors = browserErrors ;
98127 for (SyntheticsBrowserError item : browserErrors ) {
@@ -214,6 +243,28 @@ public void setError(String error) {
214243 this .error = error ;
215244 }
216245
246+ public SyntheticsStepDetail failure (SyntheticsBrowserTestResultFailure failure ) {
247+ this .failure = failure ;
248+ this .unparsed |= failure .unparsed ;
249+ return this ;
250+ }
251+
252+ /**
253+ * The browser test failure details.
254+ *
255+ * @return failure
256+ */
257+ @ jakarta .annotation .Nullable
258+ @ JsonProperty (JSON_PROPERTY_FAILURE )
259+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
260+ public SyntheticsBrowserTestResultFailure getFailure () {
261+ return failure ;
262+ }
263+
264+ public void setFailure (SyntheticsBrowserTestResultFailure failure ) {
265+ this .failure = failure ;
266+ }
267+
217268 public SyntheticsStepDetail playingTab (SyntheticsPlayingTab playingTab ) {
218269 this .playingTab = playingTab ;
219270 this .unparsed |= !playingTab .isValid ();
@@ -569,11 +620,13 @@ public boolean equals(Object o) {
569620 return false ;
570621 }
571622 SyntheticsStepDetail syntheticsStepDetail = (SyntheticsStepDetail ) o ;
572- return Objects .equals (this .browserErrors , syntheticsStepDetail .browserErrors )
623+ return Objects .equals (this .allowFailure , syntheticsStepDetail .allowFailure )
624+ && Objects .equals (this .browserErrors , syntheticsStepDetail .browserErrors )
573625 && Objects .equals (this .checkType , syntheticsStepDetail .checkType )
574626 && Objects .equals (this .description , syntheticsStepDetail .description )
575627 && Objects .equals (this .duration , syntheticsStepDetail .duration )
576628 && Objects .equals (this .error , syntheticsStepDetail .error )
629+ && Objects .equals (this .failure , syntheticsStepDetail .failure )
577630 && Objects .equals (this .playingTab , syntheticsStepDetail .playingTab )
578631 && Objects .equals (this .screenshotBucketKey , syntheticsStepDetail .screenshotBucketKey )
579632 && Objects .equals (this .skipped , syntheticsStepDetail .skipped )
@@ -592,11 +645,13 @@ public boolean equals(Object o) {
592645 @ Override
593646 public int hashCode () {
594647 return Objects .hash (
648+ allowFailure ,
595649 browserErrors ,
596650 checkType ,
597651 description ,
598652 duration ,
599653 error ,
654+ failure ,
600655 playingTab ,
601656 screenshotBucketKey ,
602657 skipped ,
@@ -616,11 +671,13 @@ public int hashCode() {
616671 public String toString () {
617672 StringBuilder sb = new StringBuilder ();
618673 sb .append ("class SyntheticsStepDetail {\n " );
674+ sb .append (" allowFailure: " ).append (toIndentedString (allowFailure )).append ("\n " );
619675 sb .append (" browserErrors: " ).append (toIndentedString (browserErrors )).append ("\n " );
620676 sb .append (" checkType: " ).append (toIndentedString (checkType )).append ("\n " );
621677 sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
622678 sb .append (" duration: " ).append (toIndentedString (duration )).append ("\n " );
623679 sb .append (" error: " ).append (toIndentedString (error )).append ("\n " );
680+ sb .append (" failure: " ).append (toIndentedString (failure )).append ("\n " );
624681 sb .append (" playingTab: " ).append (toIndentedString (playingTab )).append ("\n " );
625682 sb .append (" screenshotBucketKey: " )
626683 .append (toIndentedString (screenshotBucketKey ))
0 commit comments