diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index dba7bb99f9a..44fd406c7fd 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -16568,7 +16568,7 @@ components: tests: description: Array of Synthetic tests configuration. items: - $ref: '#/components/schemas/SyntheticsTestDetails' + $ref: '#/components/schemas/SyntheticsTestDetailsWithoutSteps' type: array type: object SyntheticsLocalVariableParsingOptionsType: @@ -17599,7 +17599,7 @@ components: status: $ref: '#/components/schemas/SyntheticsTestPauseStatus' steps: - description: For browser test, the steps of the test. + description: The steps of the test if they exist. items: $ref: '#/components/schemas/SyntheticsStep' type: array @@ -17651,6 +17651,52 @@ components: - API - BROWSER - MOBILE + SyntheticsTestDetailsWithoutSteps: + description: Object containing details about your Synthetic test, without test + steps. + properties: + config: + $ref: '#/components/schemas/SyntheticsTestConfig' + creator: + $ref: '#/components/schemas/Creator' + locations: + description: Array of locations used to run the test. + example: + - aws:eu-west-3 + items: + description: A location from which the test was run. + type: string + type: array + message: + description: Notification message associated with the test. + type: string + monitor_id: + description: The associated monitor ID. + format: int64 + readOnly: true + type: integer + name: + description: Name of the test. + type: string + options: + $ref: '#/components/schemas/SyntheticsTestOptions' + public_id: + description: The test public ID. + readOnly: true + type: string + status: + $ref: '#/components/schemas/SyntheticsTestPauseStatus' + subtype: + $ref: '#/components/schemas/SyntheticsTestDetailsSubType' + tags: + description: Array of tags attached to the test. + items: + description: A tag attached to the test. + type: string + type: array + type: + $ref: '#/components/schemas/SyntheticsTestDetailsType' + type: object SyntheticsTestExecutionRule: description: Execution rule for a Synthetic test. enum: @@ -35243,7 +35289,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SyntheticsTestDetails' + $ref: '#/components/schemas/SyntheticsTestDetailsWithoutSteps' description: OK '403': content: diff --git a/examples/v1/synthetics/GetTest.java b/examples/v1/synthetics/GetTest.java index 6696b498884..e03ad6e7e19 100644 --- a/examples/v1/synthetics/GetTest.java +++ b/examples/v1/synthetics/GetTest.java @@ -3,7 +3,7 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; import com.datadog.api.client.v1.api.SyntheticsApi; -import com.datadog.api.client.v1.model.SyntheticsTestDetails; +import com.datadog.api.client.v1.model.SyntheticsTestDetailsWithoutSteps; public class Example { public static void main(String[] args) { @@ -11,7 +11,7 @@ public static void main(String[] args) { SyntheticsApi apiInstance = new SyntheticsApi(defaultClient); try { - SyntheticsTestDetails result = apiInstance.getTest("public_id"); + SyntheticsTestDetailsWithoutSteps result = apiInstance.getTest("public_id"); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SyntheticsApi#getTest"); diff --git a/examples/v1/synthetics/ListTests_1938827783.java b/examples/v1/synthetics/ListTests_1938827783.java index 839ee0f1798..e1a253c144e 100644 --- a/examples/v1/synthetics/ListTests_1938827783.java +++ b/examples/v1/synthetics/ListTests_1938827783.java @@ -5,7 +5,7 @@ import com.datadog.api.client.PaginationIterable; import com.datadog.api.client.v1.api.SyntheticsApi; import com.datadog.api.client.v1.api.SyntheticsApi.ListTestsOptionalParameters; -import com.datadog.api.client.v1.model.SyntheticsTestDetails; +import com.datadog.api.client.v1.model.SyntheticsTestDetailsWithoutSteps; public class Example { public static void main(String[] args) { @@ -13,10 +13,10 @@ public static void main(String[] args) { SyntheticsApi apiInstance = new SyntheticsApi(defaultClient); try { - PaginationIterable iterable = + PaginationIterable iterable = apiInstance.listTestsWithPagination(new ListTestsOptionalParameters().pageSize(2L)); - for (SyntheticsTestDetails item : iterable) { + for (SyntheticsTestDetailsWithoutSteps item : iterable) { System.out.println(item); } } catch (RuntimeException e) { diff --git a/src/main/java/com/datadog/api/client/v1/api/SyntheticsApi.java b/src/main/java/com/datadog/api/client/v1/api/SyntheticsApi.java index c61ec8ef775..ba8982bc078 100644 --- a/src/main/java/com/datadog/api/client/v1/api/SyntheticsApi.java +++ b/src/main/java/com/datadog/api/client/v1/api/SyntheticsApi.java @@ -26,6 +26,7 @@ import com.datadog.api.client.v1.model.SyntheticsPrivateLocation; import com.datadog.api.client.v1.model.SyntheticsPrivateLocationCreationResponse; import com.datadog.api.client.v1.model.SyntheticsTestDetails; +import com.datadog.api.client.v1.model.SyntheticsTestDetailsWithoutSteps; import com.datadog.api.client.v1.model.SyntheticsTestUptime; import com.datadog.api.client.v1.model.SyntheticsTriggerBody; import com.datadog.api.client.v1.model.SyntheticsTriggerCITestsResponse; @@ -3168,10 +3169,10 @@ public ApiResponse> getSyntheticsDefaultLocationsWithHttpInfo() thr *

See {@link #getTestWithHttpInfo}. * * @param publicId The public ID of the test to get details from. (required) - * @return SyntheticsTestDetails + * @return SyntheticsTestDetailsWithoutSteps * @throws ApiException if fails to make API call */ - public SyntheticsTestDetails getTest(String publicId) throws ApiException { + public SyntheticsTestDetailsWithoutSteps getTest(String publicId) throws ApiException { return getTestWithHttpInfo(publicId).getData(); } @@ -3181,9 +3182,9 @@ public SyntheticsTestDetails getTest(String publicId) throws ApiException { *

See {@link #getTestWithHttpInfoAsync}. * * @param publicId The public ID of the test to get details from. (required) - * @return CompletableFuture<SyntheticsTestDetails> + * @return CompletableFuture<SyntheticsTestDetailsWithoutSteps> */ - public CompletableFuture getTestAsync(String publicId) { + public CompletableFuture getTestAsync(String publicId) { return getTestWithHttpInfoAsync(publicId) .thenApply( response -> { @@ -3195,7 +3196,7 @@ public CompletableFuture getTestAsync(String publicId) { * Get the detailed configuration associated with a Synthetic test. * * @param publicId The public ID of the test to get details from. (required) - * @return ApiResponse<SyntheticsTestDetails> + * @return ApiResponse<SyntheticsTestDetailsWithoutSteps> * @throws ApiException if fails to make API call * @http.response.details * @@ -3207,7 +3208,7 @@ public CompletableFuture getTestAsync(String publicId) { * *
429 Too many requests -
*/ - public ApiResponse getTestWithHttpInfo(String publicId) + public ApiResponse getTestWithHttpInfo(String publicId) throws ApiException { Object localVarPostBody = null; @@ -3239,7 +3240,7 @@ public ApiResponse getTestWithHttpInfo(String publicId) localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -3248,15 +3249,16 @@ public ApiResponse getTestWithHttpInfo(String publicId) *

See {@link #getTestWithHttpInfo}. * * @param publicId The public ID of the test to get details from. (required) - * @return CompletableFuture<ApiResponse<SyntheticsTestDetails>> + * @return CompletableFuture<ApiResponse<SyntheticsTestDetailsWithoutSteps>> */ - public CompletableFuture> getTestWithHttpInfoAsync( + public CompletableFuture> getTestWithHttpInfoAsync( String publicId) { Object localVarPostBody = null; // verify the required parameter 'publicId' is set if (publicId == null) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = + new CompletableFuture<>(); result.completeExceptionally( new ApiException(400, "Missing the required parameter 'publicId' when calling getTest")); return result; @@ -3280,7 +3282,8 @@ public CompletableFuture> getTestWithHttpInfo new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); + CompletableFuture> result = + new CompletableFuture<>(); result.completeExceptionally(ex); return result; } @@ -3292,7 +3295,7 @@ public CompletableFuture> getTestWithHttpInfo localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -3609,9 +3612,9 @@ public CompletableFuture listTestsAsync( * *

See {@link #listTestsWithHttpInfo}. * - * @return PaginationIterable<SyntheticsTestDetails> + * @return PaginationIterable<SyntheticsTestDetailsWithoutSteps> */ - public PaginationIterable listTestsWithPagination() { + public PaginationIterable listTestsWithPagination() { ListTestsOptionalParameters parameters = new ListTestsOptionalParameters(); return listTestsWithPagination(parameters); } @@ -3623,7 +3626,7 @@ public PaginationIterable listTestsWithPagination() { * * @return SyntheticsListTestsResponse */ - public PaginationIterable listTestsWithPagination( + public PaginationIterable listTestsWithPagination( ListTestsOptionalParameters parameters) { String resultsPath = "getTests"; String valueGetterPath = ""; diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsListTestsResponse.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsListTestsResponse.java index ec98914df1b..634850d8531 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsListTestsResponse.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsListTestsResponse.java @@ -25,17 +25,17 @@ public class SyntheticsListTestsResponse { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_TESTS = "tests"; - private List tests = null; + private List tests = null; - public SyntheticsListTestsResponse tests(List tests) { + public SyntheticsListTestsResponse tests(List tests) { this.tests = tests; - for (SyntheticsTestDetails item : tests) { + for (SyntheticsTestDetailsWithoutSteps item : tests) { this.unparsed |= item.unparsed; } return this; } - public SyntheticsListTestsResponse addTestsItem(SyntheticsTestDetails testsItem) { + public SyntheticsListTestsResponse addTestsItem(SyntheticsTestDetailsWithoutSteps testsItem) { if (this.tests == null) { this.tests = new ArrayList<>(); } @@ -52,11 +52,11 @@ public SyntheticsListTestsResponse addTestsItem(SyntheticsTestDetails testsItem) @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TESTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTests() { + public List getTests() { return tests; } - public void setTests(List tests) { + public void setTests(List tests) { this.tests = tests; } diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetails.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetails.java index b0b34d52a42..8074491b896 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetails.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetails.java @@ -272,7 +272,7 @@ public SyntheticsTestDetails addStepsItem(SyntheticsStep stepsItem) { } /** - * For browser test, the steps of the test. + * The steps of the test if they exist. * * @return steps */ diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetailsWithoutSteps.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetailsWithoutSteps.java new file mode 100644 index 00000000000..6d6cd33ee60 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsTestDetailsWithoutSteps.java @@ -0,0 +1,457 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v1.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** Object containing details about your Synthetic test, without test steps. */ +@JsonPropertyOrder({ + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_CONFIG, + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_CREATOR, + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_LOCATIONS, + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_MESSAGE, + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_MONITOR_ID, + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_NAME, + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_OPTIONS, + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_PUBLIC_ID, + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_STATUS, + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_SUBTYPE, + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_TAGS, + SyntheticsTestDetailsWithoutSteps.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SyntheticsTestDetailsWithoutSteps { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_CONFIG = "config"; + private SyntheticsTestConfig config; + + public static final String JSON_PROPERTY_CREATOR = "creator"; + private Creator creator; + + public static final String JSON_PROPERTY_LOCATIONS = "locations"; + private List locations = null; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_MONITOR_ID = "monitor_id"; + private Long monitorId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_OPTIONS = "options"; + private SyntheticsTestOptions options; + + public static final String JSON_PROPERTY_PUBLIC_ID = "public_id"; + private String publicId; + + public static final String JSON_PROPERTY_STATUS = "status"; + private SyntheticsTestPauseStatus status; + + public static final String JSON_PROPERTY_SUBTYPE = "subtype"; + private SyntheticsTestDetailsSubType subtype; + + public static final String JSON_PROPERTY_TAGS = "tags"; + private List tags = null; + + public static final String JSON_PROPERTY_TYPE = "type"; + private SyntheticsTestDetailsType type; + + public SyntheticsTestDetailsWithoutSteps config(SyntheticsTestConfig config) { + this.config = config; + this.unparsed |= config.unparsed; + return this; + } + + /** + * Configuration object for a Synthetic test. + * + * @return config + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CONFIG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SyntheticsTestConfig getConfig() { + return config; + } + + public void setConfig(SyntheticsTestConfig config) { + this.config = config; + } + + /** + * Object describing the creator of the shared element. + * + * @return creator + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREATOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Creator getCreator() { + return creator; + } + + public SyntheticsTestDetailsWithoutSteps locations(List locations) { + this.locations = locations; + return this; + } + + public SyntheticsTestDetailsWithoutSteps addLocationsItem(String locationsItem) { + if (this.locations == null) { + this.locations = new ArrayList<>(); + } + this.locations.add(locationsItem); + return this; + } + + /** + * Array of locations used to run the test. + * + * @return locations + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LOCATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getLocations() { + return locations; + } + + public void setLocations(List locations) { + this.locations = locations; + } + + public SyntheticsTestDetailsWithoutSteps message(String message) { + this.message = message; + return this; + } + + /** + * Notification message associated with the test. + * + * @return message + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + /** + * The associated monitor ID. + * + * @return monitorId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MONITOR_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getMonitorId() { + return monitorId; + } + + public SyntheticsTestDetailsWithoutSteps name(String name) { + this.name = name; + return this; + } + + /** + * Name of the test. + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SyntheticsTestDetailsWithoutSteps options(SyntheticsTestOptions options) { + this.options = options; + this.unparsed |= options.unparsed; + return this; + } + + /** + * Object describing the extra options for a Synthetic test. + * + * @return options + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SyntheticsTestOptions getOptions() { + return options; + } + + public void setOptions(SyntheticsTestOptions options) { + this.options = options; + } + + /** + * The test public ID. + * + * @return publicId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PUBLIC_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPublicId() { + return publicId; + } + + public SyntheticsTestDetailsWithoutSteps status(SyntheticsTestPauseStatus status) { + this.status = status; + this.unparsed |= !status.isValid(); + return this; + } + + /** + * Define whether you want to start (live) or pause (paused) a Synthetic + * test. + * + * @return status + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SyntheticsTestPauseStatus getStatus() { + return status; + } + + public void setStatus(SyntheticsTestPauseStatus status) { + if (!status.isValid()) { + this.unparsed = true; + } + this.status = status; + } + + public SyntheticsTestDetailsWithoutSteps subtype(SyntheticsTestDetailsSubType subtype) { + this.subtype = subtype; + this.unparsed |= !subtype.isValid(); + return this; + } + + /** + * The subtype of the Synthetic API test, http, ssl, tcp, + * dns, icmp, udp, websocket, grpc + * or multi. + * + * @return subtype + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SUBTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SyntheticsTestDetailsSubType getSubtype() { + return subtype; + } + + public void setSubtype(SyntheticsTestDetailsSubType subtype) { + if (!subtype.isValid()) { + this.unparsed = true; + } + this.subtype = subtype; + } + + public SyntheticsTestDetailsWithoutSteps tags(List tags) { + this.tags = tags; + return this; + } + + public SyntheticsTestDetailsWithoutSteps addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * Array of tags attached to the test. + * + * @return tags + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public SyntheticsTestDetailsWithoutSteps type(SyntheticsTestDetailsType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Type of the Synthetic test, either api or browser. + * + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SyntheticsTestDetailsType getType() { + return type; + } + + public void setType(SyntheticsTestDetailsType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SyntheticsTestDetailsWithoutSteps + */ + @JsonAnySetter + public SyntheticsTestDetailsWithoutSteps putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SyntheticsTestDetailsWithoutSteps object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SyntheticsTestDetailsWithoutSteps syntheticsTestDetailsWithoutSteps = + (SyntheticsTestDetailsWithoutSteps) o; + return Objects.equals(this.config, syntheticsTestDetailsWithoutSteps.config) + && Objects.equals(this.creator, syntheticsTestDetailsWithoutSteps.creator) + && Objects.equals(this.locations, syntheticsTestDetailsWithoutSteps.locations) + && Objects.equals(this.message, syntheticsTestDetailsWithoutSteps.message) + && Objects.equals(this.monitorId, syntheticsTestDetailsWithoutSteps.monitorId) + && Objects.equals(this.name, syntheticsTestDetailsWithoutSteps.name) + && Objects.equals(this.options, syntheticsTestDetailsWithoutSteps.options) + && Objects.equals(this.publicId, syntheticsTestDetailsWithoutSteps.publicId) + && Objects.equals(this.status, syntheticsTestDetailsWithoutSteps.status) + && Objects.equals(this.subtype, syntheticsTestDetailsWithoutSteps.subtype) + && Objects.equals(this.tags, syntheticsTestDetailsWithoutSteps.tags) + && Objects.equals(this.type, syntheticsTestDetailsWithoutSteps.type) + && Objects.equals( + this.additionalProperties, syntheticsTestDetailsWithoutSteps.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + config, + creator, + locations, + message, + monitorId, + name, + options, + publicId, + status, + subtype, + tags, + type, + additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SyntheticsTestDetailsWithoutSteps {\n"); + sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" locations: ").append(toIndentedString(locations)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" monitorId: ").append(toIndentedString(monitorId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" options: ").append(toIndentedString(options)).append("\n"); + sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +}