diff --git a/CHANGELOG.md b/CHANGELOG.md index b9082371b48..8ef69451869 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.47.0 - 2024-08-20 +### Added +- Support for Fleet Application Management service +- Support for creating maintenance runs using autonomous database software images in the Database service +- Support for Object Storage buckets, Oracle databases, Oracle databases on exascale Infrastructure, autonomous container databases, and autonomous container databases on Cloud at Customer in the Disaster Recovery service +- Support for multiple sharing modes in the OCI Cache service +- Support for extended data retention periods for instances in the Integration Cloud service +- Support for SQL watch and lifecycle management in the Database management service +- Support for identity domains and feature sets in the Analytics Cloud service +- Support for automatically extending the storage space for MySQL DB systems in pre-defined increments in the MySQL Database service + +### Breaking Changes +- Method `public com.oracle.bmc.disasterrecovery.model.DrPlanExecutionType getDrPlanExecutionType()` has been removed from `com.oracle.bmc.disasterrecovery.requests.ListDrPlanExecutionsRequest` in the Disaster Recovery service + ## 3.46.1 - 2024-08-13 ### Added - Support for calling Oracle Cloud Infrastructure services in the `me-abudhabi-4` region diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 67d404a73b5..076aa1d13fb 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 0554ac88727..85982627391 100644 --- a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.46.1 + 3.47.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.46.1 + 3.47.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.46.1 + 3.47.0 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index 0371a00344a..56773cf04f4 100644 --- a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.46.1 + 3.47.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.46.1 + 3.47.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.46.1 + 3.47.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 620634802e4..590daa50457 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.46.1 + 3.47.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 8efc51b9fd2..82f23de00f6 100644 --- a/bmc-addons/bmc-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.46.1 + 3.47.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.46.1 + 3.47.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.46.1 + 3.47.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.46.1 + 3.47.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 31b035c5daa..0dce814f6d6 100644 --- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml +++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.46.1 + 3.47.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml index f2e6bd07578..a3a8b746472 100644 --- a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.46.1 + 3.47.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.46.1 + 3.47.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.46.1 + 3.47.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index abae424c7cc..f30da497edb 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.46.1 + 3.47.0 ../pom.xml @@ -60,7 +60,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index ba02c05cd6e..48f127ccbce 100644 --- a/bmc-addons/bmc-sse-support-jersey3/pom.xml +++ b/bmc-addons/bmc-sse-support-jersey3/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.46.1 + 3.47.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.46.1 + 3.47.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.46.1 + 3.47.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 0a7910a8387..e143a8b4f5d 100644 --- a/bmc-addons/bmc-sse-support/pom.xml +++ b/bmc-addons/bmc-sse-support/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.46.1 + 3.47.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.46.1 + 3.47.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.46.1 + 3.47.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 231311fe3dc..1b949ecbbfb 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index e0d709c0581..9706ad6e7f2 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index f2f5b0ac1f6..382ad4fef30 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-aianomalydetection @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 7be4bbd0986..eca3e440e60 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 07d7765a6b0..fdb110a0dd5 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index cce4e86ce70..d3ecb4bf14e 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 8dd32c71df6..3aac80f5f8c 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 242d273c58c..a53d5790be3 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/Analytics.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/Analytics.java index 7404a5a9a28..d335f02b0c4 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/Analytics.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/Analytics.java @@ -346,6 +346,22 @@ DeletePrivateAccessChannelResponse deletePrivateAccessChannel( */ ScaleAnalyticsInstanceResponse scaleAnalyticsInstance(ScaleAnalyticsInstanceRequest request); + /** + * Set the external service properties of an Analytics instance. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use SetFeatureBundle + * API. + */ + SetFeatureBundleResponse setFeatureBundle(SetFeatureBundleRequest request); + /** * Encrypts the customer data of this Analytics instance using either a customer OCI Vault Key * or Oracle managed default key. diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsync.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsync.java index 5f1d207ecf1..7a4fc54a9e6 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsync.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsync.java @@ -338,6 +338,21 @@ java.util.concurrent.Future scaleAnalyticsInstan ScaleAnalyticsInstanceRequest, ScaleAnalyticsInstanceResponse> handler); + /** + * Set the external service properties of an Analytics instance. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future setFeatureBundle( + SetFeatureBundleRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Encrypts the customer data of this Analytics instance using either a customer OCI Vault Key * or Oracle managed default key. diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsyncClient.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsyncClient.java index 05b82017a2f..a0014fc4243 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsyncClient.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsAsyncClient.java @@ -714,6 +714,43 @@ public java.util.concurrent.Future scaleAnalytic .callAsync(handler); } + @Override + public java.util.concurrent.Future setFeatureBundle( + SetFeatureBundleRequest request, + final com.oracle.bmc.responses.AsyncHandler< + SetFeatureBundleRequest, SetFeatureBundleResponse> + handler) { + + Validate.notBlank( + request.getAnalyticsInstanceId(), "analyticsInstanceId must not be blank"); + Objects.requireNonNull( + request.getSetFeatureBundleDetails(), "setFeatureBundleDetails is required"); + + return clientCall(request, SetFeatureBundleResponse::builder) + .logger(LOG, "setFeatureBundle") + .serviceDetails( + "Analytics", + "SetFeatureBundle", + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/SetFeatureBundle") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SetFeatureBundleRequest::builder) + .basePath("/20190331") + .appendPathParam("analyticsInstances") + .appendPathParam(request.getAnalyticsInstanceId()) + .appendPathParam("actions") + .appendPathParam("setFeatureBundle") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", SetFeatureBundleResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", SetFeatureBundleResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future setKmsKey( SetKmsKeyRequest request, diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsClient.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsClient.java index c408d8db131..25da775314b 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsClient.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/AnalyticsClient.java @@ -692,6 +692,40 @@ public ScaleAnalyticsInstanceResponse scaleAnalyticsInstance( .callSync(); } + @Override + public SetFeatureBundleResponse setFeatureBundle(SetFeatureBundleRequest request) { + + Validate.notBlank( + request.getAnalyticsInstanceId(), "analyticsInstanceId must not be blank"); + Objects.requireNonNull( + request.getSetFeatureBundleDetails(), "setFeatureBundleDetails is required"); + + return clientCall(request, SetFeatureBundleResponse::builder) + .logger(LOG, "setFeatureBundle") + .serviceDetails( + "Analytics", + "SetFeatureBundle", + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/SetFeatureBundle") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SetFeatureBundleRequest::builder) + .basePath("/20190331") + .appendPathParam("analyticsInstances") + .appendPathParam(request.getAnalyticsInstanceId()) + .appendPathParam("actions") + .appendPathParam("setFeatureBundle") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", SetFeatureBundleResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", SetFeatureBundleResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public SetKmsKeyResponse setKmsKey(SetKmsKeyRequest request) { diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstance.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstance.java index 66f963d35f7..31eacbfc18d 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstance.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstance.java @@ -39,9 +39,12 @@ public final class AnalyticsInstance "serviceUrl", "definedTags", "freeformTags", + "systemTags", "kmsKeyId", "timeCreated", - "timeUpdated" + "timeUpdated", + "featureBundle", + "domainId" }) public AnalyticsInstance( String id, @@ -59,9 +62,12 @@ public AnalyticsInstance( String serviceUrl, java.util.Map> definedTags, java.util.Map freeformTags, + java.util.Map> systemTags, String kmsKeyId, java.util.Date timeCreated, - java.util.Date timeUpdated) { + java.util.Date timeUpdated, + FeatureBundle featureBundle, + String domainId) { super(); this.id = id; this.name = name; @@ -78,9 +84,12 @@ public AnalyticsInstance( this.serviceUrl = serviceUrl; this.definedTags = definedTags; this.freeformTags = freeformTags; + this.systemTags = systemTags; this.kmsKeyId = kmsKeyId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; + this.featureBundle = featureBundle; + this.domainId = domainId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -329,17 +338,34 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * OCI Vault Key encrypting the customer data stored in this Analytics instance. A null - * value indicates Oracle managed default encryption. + * System tags for this resource. These predefined keys are scoped to namespaces. Example: + * {@code {"orcl-cloud": {"key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. These predefined keys are scoped to namespaces. Example: + * {@code {"orcl-cloud": {"key": "value"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. + * A null value indicates Oracle managed default encryption. */ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private String kmsKeyId; /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * OCI Vault Key encrypting the customer data stored in this Analytics instance. A null - * value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. + * A null value indicates Oracle managed default encryption. * * @param kmsKeyId the value to set * @return this builder @@ -389,6 +415,36 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } + /** The feature set of an Analytics instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("featureBundle") + private FeatureBundle featureBundle; + + /** + * The feature set of an Analytics instance. + * + * @param featureBundle the value to set + * @return this builder + */ + public Builder featureBundle(FeatureBundle featureBundle) { + this.featureBundle = featureBundle; + this.__explicitlySet__.add("featureBundle"); + return this; + } + /** Identity domain OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainId") + private String domainId; + + /** + * Identity domain OCID. + * + * @param domainId the value to set + * @return this builder + */ + public Builder domainId(String domainId) { + this.domainId = domainId; + this.__explicitlySet__.add("domainId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -411,9 +467,12 @@ public AnalyticsInstance build() { this.serviceUrl, this.definedTags, this.freeformTags, + this.systemTags, this.kmsKeyId, this.timeCreated, - this.timeUpdated); + this.timeUpdated, + this.featureBundle, + this.domainId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -467,6 +526,9 @@ public Builder copy(AnalyticsInstance model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } @@ -476,6 +538,12 @@ public Builder copy(AnalyticsInstance model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("featureBundle")) { + this.featureBundle(model.getFeatureBundle()); + } + if (model.wasPropertyExplicitlySet("domainId")) { + this.domainId(model.getDomainId()); + } return this; } } @@ -701,17 +769,32 @@ public java.util.Map getFreeformTags() { } /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the OCI - * Vault Key encrypting the customer data stored in this Analytics instance. A null value - * indicates Oracle managed default encryption. + * System tags for this resource. These predefined keys are scoped to namespaces. Example: + * {@code {"orcl-cloud": {"key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. These predefined keys are scoped to namespaces. Example: + * {@code {"orcl-cloud": {"key": "value"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A + * null value indicates Oracle managed default encryption. */ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private final String kmsKeyId; /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the OCI - * Vault Key encrypting the customer data stored in this Analytics instance. A null value - * indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A + * null value indicates Oracle managed default encryption. * * @return the value */ @@ -755,6 +838,32 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } + /** The feature set of an Analytics instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("featureBundle") + private final FeatureBundle featureBundle; + + /** + * The feature set of an Analytics instance. + * + * @return the value + */ + public FeatureBundle getFeatureBundle() { + return featureBundle; + } + + /** Identity domain OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainId") + private final String domainId; + + /** + * Identity domain OCID. + * + * @return the value + */ + public String getDomainId() { + return domainId; + } + @Override public String toString() { return this.toString(true); @@ -785,9 +894,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", serviceUrl=").append(String.valueOf(this.serviceUrl)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", featureBundle=").append(String.valueOf(this.featureBundle)); + sb.append(", domainId=").append(String.valueOf(this.domainId)); sb.append(")"); return sb.toString(); } @@ -818,9 +930,12 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.serviceUrl, other.serviceUrl) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.featureBundle, other.featureBundle) + && java.util.Objects.equals(this.domainId, other.domainId) && super.equals(other); } @@ -859,9 +974,14 @@ public int hashCode() { result = (result * PRIME) + (this.serviceUrl == null ? 43 : this.serviceUrl.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.featureBundle == null ? 43 : this.featureBundle.hashCode()); + result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceSummary.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceSummary.java index 892e6b0077b..47ec4cd68ee 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceSummary.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/AnalyticsInstanceSummary.java @@ -35,6 +35,9 @@ public final class AnalyticsInstanceSummary "emailNotification", "networkEndpointDetails", "serviceUrl", + "definedTags", + "freeformTags", + "systemTags", "timeCreated", "timeUpdated" }) @@ -50,6 +53,9 @@ public AnalyticsInstanceSummary( String emailNotification, NetworkEndpointDetails networkEndpointDetails, String serviceUrl, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags, java.util.Date timeCreated, java.util.Date timeUpdated) { super(); @@ -64,6 +70,9 @@ public AnalyticsInstanceSummary( this.emailNotification = emailNotification; this.networkEndpointDetails = networkEndpointDetails; this.serviceUrl = serviceUrl; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + this.systemTags = systemTags; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; } @@ -227,6 +236,76 @@ public Builder serviceUrl(String serviceUrl) { this.__explicitlySet__.add("serviceUrl"); return this; } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * System tags for this resource. These predefined keys are scoped to namespaces. Example: + * {@code {"orcl-cloud": {"key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. These predefined keys are scoped to namespaces. Example: + * {@code {"orcl-cloud": {"key": "value"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } /** * The date and time the instance was created, in the format defined by RFC3339. * @@ -285,6 +364,9 @@ public AnalyticsInstanceSummary build() { this.emailNotification, this.networkEndpointDetails, this.serviceUrl, + this.definedTags, + this.freeformTags, + this.systemTags, this.timeCreated, this.timeUpdated); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -328,6 +410,15 @@ public Builder copy(AnalyticsInstanceSummary model) { if (model.wasPropertyExplicitlySet("serviceUrl")) { this.serviceUrl(model.getServiceUrl()); } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -482,6 +573,69 @@ public String getServiceUrl() { return serviceUrl; } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Operations": {"CostCenter": "42"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see [Resource + * Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Department": "Finance"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * System tags for this resource. These predefined keys are scoped to namespaces. Example: + * {@code {"orcl-cloud": {"key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. These predefined keys are scoped to namespaces. Example: + * {@code {"orcl-cloud": {"key": "value"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + /** * The date and time the instance was created, in the format defined by RFC3339. * @@ -544,6 +698,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", emailNotification=").append(String.valueOf(this.emailNotification)); sb.append(", networkEndpointDetails=").append(String.valueOf(this.networkEndpointDetails)); sb.append(", serviceUrl=").append(String.valueOf(this.serviceUrl)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(")"); @@ -572,6 +729,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.networkEndpointDetails, other.networkEndpointDetails) && java.util.Objects.equals(this.serviceUrl, other.serviceUrl) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && super.equals(other); @@ -602,6 +762,9 @@ public int hashCode() { ? 43 : this.networkEndpointDetails.hashCode()); result = (result * PRIME) + (this.serviceUrl == null ? 43 : this.serviceUrl.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/Capacity.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/Capacity.java index d5e83c50fc9..826b385c8d0 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/Capacity.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/Capacity.java @@ -30,12 +30,12 @@ public Capacity(CapacityType capacityType, Integer capacityValue) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The capacity model to use. */ + /** The capacity model to use. Accepted values are: OLPU_COUNT, USER_COUNT */ @com.fasterxml.jackson.annotation.JsonProperty("capacityType") private CapacityType capacityType; /** - * The capacity model to use. + * The capacity model to use. Accepted values are: OLPU_COUNT, USER_COUNT * * @param capacityType the value to set * @return this builder @@ -46,17 +46,17 @@ public Builder capacityType(CapacityType capacityType) { return this; } /** - * The capacity value selected (OLPU count, number of users, ...etc...). This parameter - * affects the number of CPUs, amount of memory or other resources allocated to the - * instance. + * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of + * users (USER_COUNT). This parameter affects the number of OCPUs, amount of memory, and + * other resources allocated to the instance. */ @com.fasterxml.jackson.annotation.JsonProperty("capacityValue") private Integer capacityValue; /** - * The capacity value selected (OLPU count, number of users, ...etc...). This parameter - * affects the number of CPUs, amount of memory or other resources allocated to the - * instance. + * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of + * users (USER_COUNT). This parameter affects the number of OCPUs, amount of memory, and + * other resources allocated to the instance. * * @param capacityValue the value to set * @return this builder @@ -99,12 +99,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The capacity model to use. */ + /** The capacity model to use. Accepted values are: OLPU_COUNT, USER_COUNT */ @com.fasterxml.jackson.annotation.JsonProperty("capacityType") private final CapacityType capacityType; /** - * The capacity model to use. + * The capacity model to use. Accepted values are: OLPU_COUNT, USER_COUNT * * @return the value */ @@ -113,15 +113,17 @@ public CapacityType getCapacityType() { } /** - * The capacity value selected (OLPU count, number of users, ...etc...). This parameter affects - * the number of CPUs, amount of memory or other resources allocated to the instance. + * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users + * (USER_COUNT). This parameter affects the number of OCPUs, amount of memory, and other + * resources allocated to the instance. */ @com.fasterxml.jackson.annotation.JsonProperty("capacityValue") private final Integer capacityValue; /** - * The capacity value selected (OLPU count, number of users, ...etc...). This parameter affects - * the number of CPUs, amount of memory or other resources allocated to the instance. + * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users + * (USER_COUNT). This parameter affects the number of OCPUs, amount of memory, and other + * resources allocated to the instance. * * @return the value */ diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateAnalyticsInstanceDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateAnalyticsInstanceDetails.java index d86adc7a5fc..085b5aaca5f 100644 --- a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateAnalyticsInstanceDetails.java +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/CreateAnalyticsInstanceDetails.java @@ -35,7 +35,10 @@ public final class CreateAnalyticsInstanceDetails "idcsAccessToken", "definedTags", "freeformTags", - "kmsKeyId" + "kmsKeyId", + "domainId", + "adminUser", + "featureBundle" }) public CreateAnalyticsInstanceDetails( String name, @@ -49,7 +52,10 @@ public CreateAnalyticsInstanceDetails( String idcsAccessToken, java.util.Map> definedTags, java.util.Map freeformTags, - String kmsKeyId) { + String kmsKeyId, + String domainId, + String adminUser, + FeatureBundle featureBundle) { super(); this.name = name; this.description = description; @@ -63,6 +69,9 @@ public CreateAnalyticsInstanceDetails( this.definedTags = definedTags; this.freeformTags = freeformTags; this.kmsKeyId = kmsKeyId; + this.domainId = domainId; + this.adminUser = adminUser; + this.featureBundle = featureBundle; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -246,17 +255,15 @@ public Builder freeformTags(java.util.Map freeformTags) { return this; } /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * OCI Vault Key encrypting the customer data stored in this Analytics instance. A null - * value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. + * A null value indicates Oracle managed default encryption. */ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private String kmsKeyId; /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * OCI Vault Key encrypting the customer data stored in this Analytics instance. A null - * value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. + * A null value indicates Oracle managed default encryption. * * @param kmsKeyId the value to set * @return this builder @@ -266,6 +273,51 @@ public Builder kmsKeyId(String kmsKeyId) { this.__explicitlySet__.add("kmsKeyId"); return this; } + /** domain id for which the user is authorized. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainId") + private String domainId; + + /** + * domain id for which the user is authorized. + * + * @param domainId the value to set + * @return this builder + */ + public Builder domainId(String domainId) { + this.domainId = domainId; + this.__explicitlySet__.add("domainId"); + return this; + } + /** user name of the authorized user. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminUser") + private String adminUser; + + /** + * user name of the authorized user. + * + * @param adminUser the value to set + * @return this builder + */ + public Builder adminUser(String adminUser) { + this.adminUser = adminUser; + this.__explicitlySet__.add("adminUser"); + return this; + } + /** The feature set of an Analytics instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("featureBundle") + private FeatureBundle featureBundle; + + /** + * The feature set of an Analytics instance. + * + * @param featureBundle the value to set + * @return this builder + */ + public Builder featureBundle(FeatureBundle featureBundle) { + this.featureBundle = featureBundle; + this.__explicitlySet__.add("featureBundle"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -284,7 +336,10 @@ public CreateAnalyticsInstanceDetails build() { this.idcsAccessToken, this.definedTags, this.freeformTags, - this.kmsKeyId); + this.kmsKeyId, + this.domainId, + this.adminUser, + this.featureBundle); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -329,6 +384,15 @@ public Builder copy(CreateAnalyticsInstanceDetails model) { if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } + if (model.wasPropertyExplicitlySet("domainId")) { + this.domainId(model.getDomainId()); + } + if (model.wasPropertyExplicitlySet("adminUser")) { + this.adminUser(model.getAdminUser()); + } + if (model.wasPropertyExplicitlySet("featureBundle")) { + this.featureBundle(model.getFeatureBundle()); + } return this; } } @@ -498,17 +562,15 @@ public java.util.Map getFreeformTags() { } /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the OCI - * Vault Key encrypting the customer data stored in this Analytics instance. A null value - * indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A + * null value indicates Oracle managed default encryption. */ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") private final String kmsKeyId; /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the OCI - * Vault Key encrypting the customer data stored in this Analytics instance. A null value - * indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A + * null value indicates Oracle managed default encryption. * * @return the value */ @@ -516,6 +578,45 @@ public String getKmsKeyId() { return kmsKeyId; } + /** domain id for which the user is authorized. */ + @com.fasterxml.jackson.annotation.JsonProperty("domainId") + private final String domainId; + + /** + * domain id for which the user is authorized. + * + * @return the value + */ + public String getDomainId() { + return domainId; + } + + /** user name of the authorized user. */ + @com.fasterxml.jackson.annotation.JsonProperty("adminUser") + private final String adminUser; + + /** + * user name of the authorized user. + * + * @return the value + */ + public String getAdminUser() { + return adminUser; + } + + /** The feature set of an Analytics instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("featureBundle") + private final FeatureBundle featureBundle; + + /** + * The feature set of an Analytics instance. + * + * @return the value + */ + public FeatureBundle getFeatureBundle() { + return featureBundle; + } + @Override public String toString() { return this.toString(true); @@ -543,6 +644,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", domainId=").append(String.valueOf(this.domainId)); + sb.append(", adminUser=").append(String.valueOf(this.adminUser)); + sb.append(", featureBundle=").append(String.valueOf(this.featureBundle)); sb.append(")"); return sb.toString(); } @@ -570,6 +674,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.domainId, other.domainId) + && java.util.Objects.equals(this.adminUser, other.adminUser) + && java.util.Objects.equals(this.featureBundle, other.featureBundle) && super.equals(other); } @@ -599,6 +706,11 @@ public int hashCode() { result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); + result = (result * PRIME) + (this.adminUser == null ? 43 : this.adminUser.hashCode()); + result = + (result * PRIME) + + (this.featureBundle == null ? 43 : this.featureBundle.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/FeatureBundle.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/FeatureBundle.java new file mode 100644 index 00000000000..3dba6d608de --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/FeatureBundle.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.analytics.model; + +/** Feature Bundle Enum. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public enum FeatureBundle implements com.oracle.bmc.http.internal.BmcEnum { + FawPaid("FAW_PAID"), + FawFree("FAW_FREE"), + EeEmbedded("EE_EMBEDDED"), + SeEmbedded("SE_EMBEDDED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FeatureBundle.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FeatureBundle v : FeatureBundle.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + FeatureBundle(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FeatureBundle create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'FeatureBundle', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/SetFeatureBundleDetails.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/SetFeatureBundleDetails.java new file mode 100644 index 00000000000..ec3ad4edfdb --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/model/SetFeatureBundleDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.analytics.model; + +/** + * Input payload for the feature set of an Analytics instance.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SetFeatureBundleDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SetFeatureBundleDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"featureBundle"}) + public SetFeatureBundleDetails(FeatureBundle featureBundle) { + super(); + this.featureBundle = featureBundle; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The feature set of an Analytics instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("featureBundle") + private FeatureBundle featureBundle; + + /** + * The feature set of an Analytics instance. + * + * @param featureBundle the value to set + * @return this builder + */ + public Builder featureBundle(FeatureBundle featureBundle) { + this.featureBundle = featureBundle; + this.__explicitlySet__.add("featureBundle"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SetFeatureBundleDetails build() { + SetFeatureBundleDetails model = new SetFeatureBundleDetails(this.featureBundle); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SetFeatureBundleDetails model) { + if (model.wasPropertyExplicitlySet("featureBundle")) { + this.featureBundle(model.getFeatureBundle()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The feature set of an Analytics instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("featureBundle") + private final FeatureBundle featureBundle; + + /** + * The feature set of an Analytics instance. + * + * @return the value + */ + public FeatureBundle getFeatureBundle() { + return featureBundle; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SetFeatureBundleDetails("); + sb.append("super=").append(super.toString()); + sb.append("featureBundle=").append(String.valueOf(this.featureBundle)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SetFeatureBundleDetails)) { + return false; + } + + SetFeatureBundleDetails other = (SetFeatureBundleDetails) o; + return java.util.Objects.equals(this.featureBundle, other.featureBundle) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.featureBundle == null ? 43 : this.featureBundle.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/SetFeatureBundleRequest.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/SetFeatureBundleRequest.java new file mode 100644 index 00000000000..59a8b8ad28a --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/requests/SetFeatureBundleRequest.java @@ -0,0 +1,363 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.analytics.requests; + +import com.oracle.bmc.analytics.model.*; +/** + * Example: Click here to see how to use SetFeatureBundleRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class SetFeatureBundleRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.analytics.model.SetFeatureBundleDetails> { + + /** The OCID of the AnalyticsInstance. */ + private String analyticsInstanceId; + + /** The OCID of the AnalyticsInstance. */ + public String getAnalyticsInstanceId() { + return analyticsInstanceId; + } + /** Input payload for the feature set of an Analytics instance. */ + private com.oracle.bmc.analytics.model.SetFeatureBundleDetails setFeatureBundleDetails; + + /** Input payload for the feature set of an Analytics instance. */ + public com.oracle.bmc.analytics.model.SetFeatureBundleDetails getSetFeatureBundleDetails() { + return setFeatureBundleDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.analytics.model.SetFeatureBundleDetails getBody$() { + return setFeatureBundleDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SetFeatureBundleRequest, + com.oracle.bmc.analytics.model.SetFeatureBundleDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the AnalyticsInstance. */ + private String analyticsInstanceId = null; + + /** + * The OCID of the AnalyticsInstance. + * + * @param analyticsInstanceId the value to set + * @return this builder instance + */ + public Builder analyticsInstanceId(String analyticsInstanceId) { + this.analyticsInstanceId = analyticsInstanceId; + return this; + } + + /** Input payload for the feature set of an Analytics instance. */ + private com.oracle.bmc.analytics.model.SetFeatureBundleDetails setFeatureBundleDetails = + null; + + /** + * Input payload for the feature set of an Analytics instance. + * + * @param setFeatureBundleDetails the value to set + * @return this builder instance + */ + public Builder setFeatureBundleDetails( + com.oracle.bmc.analytics.model.SetFeatureBundleDetails setFeatureBundleDetails) { + this.setFeatureBundleDetails = setFeatureBundleDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(SetFeatureBundleRequest o) { + analyticsInstanceId(o.getAnalyticsInstanceId()); + setFeatureBundleDetails(o.getSetFeatureBundleDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SetFeatureBundleRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of SetFeatureBundleRequest + */ + public SetFeatureBundleRequest build() { + SetFeatureBundleRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.analytics.model.SetFeatureBundleDetails body) { + setFeatureBundleDetails(body); + return this; + } + + /** + * Build the instance of SetFeatureBundleRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of SetFeatureBundleRequest + */ + public SetFeatureBundleRequest buildWithoutInvocationCallback() { + SetFeatureBundleRequest request = new SetFeatureBundleRequest(); + request.analyticsInstanceId = analyticsInstanceId; + request.setFeatureBundleDetails = setFeatureBundleDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new SetFeatureBundleRequest(analyticsInstanceId, setFeatureBundleDetails, ifMatch, + // opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .analyticsInstanceId(analyticsInstanceId) + .setFeatureBundleDetails(setFeatureBundleDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",analyticsInstanceId=").append(String.valueOf(this.analyticsInstanceId)); + sb.append(",setFeatureBundleDetails=").append(String.valueOf(this.setFeatureBundleDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SetFeatureBundleRequest)) { + return false; + } + + SetFeatureBundleRequest other = (SetFeatureBundleRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.analyticsInstanceId, other.analyticsInstanceId) + && java.util.Objects.equals( + this.setFeatureBundleDetails, other.setFeatureBundleDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.analyticsInstanceId == null + ? 43 + : this.analyticsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.setFeatureBundleDetails == null + ? 43 + : this.setFeatureBundleDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/SetFeatureBundleResponse.java b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/SetFeatureBundleResponse.java new file mode 100644 index 00000000000..5c798002ede --- /dev/null +++ b/bmc-analytics/src/main/java/com/oracle/bmc/analytics/responses/SetFeatureBundleResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.analytics.responses; + +import com.oracle.bmc.analytics.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") +public class SetFeatureBundleResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this ID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private SetFeatureBundleResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this ID to track the status of the request. + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) + * getWorkRequest} with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(SetFeatureBundleResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public SetFeatureBundleResponse build() { + return new SetFeatureBundleResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SetFeatureBundleResponse)) { + return false; + } + + SetFeatureBundleResponse other = (SetFeatureBundleResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-analytics/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-analytics/reflect-config.json b/bmc-analytics/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-analytics/reflect-config.json index 42b98ce432b..add5fcd041e 100644 --- a/bmc-analytics/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-analytics/reflect-config.json +++ b/bmc-analytics/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-analytics/reflect-config.json @@ -129,6 +129,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.analytics.model.FeatureBundle", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.analytics.model.FeatureSet", @@ -238,6 +244,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.analytics.model.SetFeatureBundleDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.analytics.model.SetFeatureBundleDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.analytics.model.SetKmsKeyDetails", diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index dc9594fee5a..46f4d5443ea 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index b38e5fd2fee..055c0875587 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 5e77ca4ff1d..056b9da5efc 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 546473760dd..f337a829d7b 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 03d03fe87c9..b24de930fc0 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 3a2e718e03c..0927edc2263 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 18878fdab22..00d55b92a85 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 69f4a14c011..1708f9387c1 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 8730b0a6e64..1c073cf79ae 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 85a576e158f..5435d860ad6 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 81cba49aafd..90a362fe747 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index f165e929196..d35bf5a4c23 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 33349daf8e0..42df2d54aaa 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index bc6c93fb4a7..3f5ebb2ba3e 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.46.1 + 3.47.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,933 +38,939 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-dts - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-globallydistributeddatabase - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.46.1 + 3.47.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.46.1 + 3.47.0 + false + + + com.oracle.oci.sdk + oci-java-sdk-fleetappsmanagement + 3.47.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 401508c0859..9dadbd39299 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index b0428b26de7..84f443a57df 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 6cee2c52a6c..ec4107a1801 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 7d484fe1a94..a9b42a3da46 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 13fef4314fb..87f4c31a216 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 010a859d6fb..ef420abc85d 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 7eb8abe7446..486036576c3 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 7871ca6ba2d..e92fa642fa1 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 65bcd5a7ea1..b6a66432801 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index f056d8c31ad..196fe7a60b9 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index daaa727ea8d..a65e156fbea 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.46.1 + 3.47.0 ../pom.xml @@ -68,7 +68,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.46.1 + 3.47.0 @@ -77,7 +77,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.46.1 + 3.47.0 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index a786473198b..f521469d30a 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.46.1 + 3.47.0 ../pom.xml @@ -70,7 +70,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.46.1 + 3.47.0 @@ -79,7 +79,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.46.1 + 3.47.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index 98448973cc1..fe53f45aa47 100644 --- a/bmc-common-httpclient-choices/pom.xml +++ b/bmc-common-httpclient-choices/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index 9e831f46e56..10971414eac 100644 --- a/bmc-common-httpclient/pom.xml +++ b/bmc-common-httpclient/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 4da9a122de2..3ddae3619d0 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml @@ -67,18 +67,18 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.46.1 + 3.47.0 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 21cc0ba6b4c..a84e9d2b037 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index b83f2e14e7e..745b530dc3a 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index fcb1bee5c1e..609090d35eb 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index 09b91a9eaa8..7cadff4b6e9 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 6eae0685cd4..9e2eab7b11f 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.46.1 + 3.47.0 diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index f05b4f8841b..bf421714390 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index b7a79705789..52d24e21d43 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.46.1 + 3.47.0 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSoftwareImage.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSoftwareImage.java index 907328dcff8..dc41ea92f0a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSoftwareImage.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSoftwareImage.java @@ -35,7 +35,8 @@ public final class AutonomousDatabaseSoftwareImage "freeformTags", "definedTags", "autonomousDsiOneOffPatches", - "imageShapeFamily" + "imageShapeFamily", + "dstFileVersion" }) public AutonomousDatabaseSoftwareImage( String id, @@ -49,7 +50,8 @@ public AutonomousDatabaseSoftwareImage( java.util.Map freeformTags, java.util.Map> definedTags, java.util.List autonomousDsiOneOffPatches, - ImageShapeFamily imageShapeFamily) { + ImageShapeFamily imageShapeFamily, + String dstFileVersion) { super(); this.id = id; this.compartmentId = compartmentId; @@ -63,6 +65,7 @@ public AutonomousDatabaseSoftwareImage( this.definedTags = definedTags; this.autonomousDsiOneOffPatches = autonomousDsiOneOffPatches; this.imageShapeFamily = imageShapeFamily; + this.dstFileVersion = dstFileVersion; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -279,6 +282,21 @@ public Builder imageShapeFamily(ImageShapeFamily imageShapeFamily) { this.__explicitlySet__.add("imageShapeFamily"); return this; } + /** DST Time-Zone File version of the Autonomous Container Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dstFileVersion") + private String dstFileVersion; + + /** + * DST Time-Zone File version of the Autonomous Container Database. + * + * @param dstFileVersion the value to set + * @return this builder + */ + public Builder dstFileVersion(String dstFileVersion) { + this.dstFileVersion = dstFileVersion; + this.__explicitlySet__.add("dstFileVersion"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -297,7 +315,8 @@ public AutonomousDatabaseSoftwareImage build() { this.freeformTags, this.definedTags, this.autonomousDsiOneOffPatches, - this.imageShapeFamily); + this.imageShapeFamily, + this.dstFileVersion); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -342,6 +361,9 @@ public Builder copy(AutonomousDatabaseSoftwareImage model) { if (model.wasPropertyExplicitlySet("imageShapeFamily")) { this.imageShapeFamily(model.getImageShapeFamily()); } + if (model.wasPropertyExplicitlySet("dstFileVersion")) { + this.dstFileVersion(model.getDstFileVersion()); + } return this; } } @@ -636,6 +658,19 @@ public ImageShapeFamily getImageShapeFamily() { return imageShapeFamily; } + /** DST Time-Zone File version of the Autonomous Container Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dstFileVersion") + private final String dstFileVersion; + + /** + * DST Time-Zone File version of the Autonomous Container Database. + * + * @return the value + */ + public String getDstFileVersion() { + return dstFileVersion; + } + @Override public String toString() { return this.toString(true); @@ -664,6 +699,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", autonomousDsiOneOffPatches=") .append(String.valueOf(this.autonomousDsiOneOffPatches)); sb.append(", imageShapeFamily=").append(String.valueOf(this.imageShapeFamily)); + sb.append(", dstFileVersion=").append(String.valueOf(this.dstFileVersion)); sb.append(")"); return sb.toString(); } @@ -691,6 +727,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.autonomousDsiOneOffPatches, other.autonomousDsiOneOffPatches) && java.util.Objects.equals(this.imageShapeFamily, other.imageShapeFamily) + && java.util.Objects.equals(this.dstFileVersion, other.dstFileVersion) && super.equals(other); } @@ -726,6 +763,9 @@ public int hashCode() { result = (result * PRIME) + (this.imageShapeFamily == null ? 43 : this.imageShapeFamily.hashCode()); + result = + (result * PRIME) + + (this.dstFileVersion == null ? 43 : this.dstFileVersion.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSoftwareImageSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSoftwareImageSummary.java index 9f63d301948..fdd929794b4 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSoftwareImageSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSoftwareImageSummary.java @@ -36,7 +36,8 @@ public final class AutonomousDatabaseSoftwareImageSummary "freeformTags", "definedTags", "autonomousDsiOneOffPatches", - "imageShapeFamily" + "imageShapeFamily", + "dstFileVersion" }) public AutonomousDatabaseSoftwareImageSummary( String id, @@ -50,7 +51,8 @@ public AutonomousDatabaseSoftwareImageSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.List autonomousDsiOneOffPatches, - AutonomousDatabaseSoftwareImage.ImageShapeFamily imageShapeFamily) { + AutonomousDatabaseSoftwareImage.ImageShapeFamily imageShapeFamily, + String dstFileVersion) { super(); this.id = id; this.compartmentId = compartmentId; @@ -64,6 +66,7 @@ public AutonomousDatabaseSoftwareImageSummary( this.definedTags = definedTags; this.autonomousDsiOneOffPatches = autonomousDsiOneOffPatches; this.imageShapeFamily = imageShapeFamily; + this.dstFileVersion = dstFileVersion; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -282,6 +285,21 @@ public Builder imageShapeFamily( this.__explicitlySet__.add("imageShapeFamily"); return this; } + /** DST Time-Zone File version of the Autonomous Container Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dstFileVersion") + private String dstFileVersion; + + /** + * DST Time-Zone File version of the Autonomous Container Database. + * + * @param dstFileVersion the value to set + * @return this builder + */ + public Builder dstFileVersion(String dstFileVersion) { + this.dstFileVersion = dstFileVersion; + this.__explicitlySet__.add("dstFileVersion"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -300,7 +318,8 @@ public AutonomousDatabaseSoftwareImageSummary build() { this.freeformTags, this.definedTags, this.autonomousDsiOneOffPatches, - this.imageShapeFamily); + this.imageShapeFamily, + this.dstFileVersion); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -345,6 +364,9 @@ public Builder copy(AutonomousDatabaseSoftwareImageSummary model) { if (model.wasPropertyExplicitlySet("imageShapeFamily")) { this.imageShapeFamily(model.getImageShapeFamily()); } + if (model.wasPropertyExplicitlySet("dstFileVersion")) { + this.dstFileVersion(model.getDstFileVersion()); + } return this; } } @@ -542,6 +564,19 @@ public AutonomousDatabaseSoftwareImage.ImageShapeFamily getImageShapeFamily() { return imageShapeFamily; } + /** DST Time-Zone File version of the Autonomous Container Database. */ + @com.fasterxml.jackson.annotation.JsonProperty("dstFileVersion") + private final String dstFileVersion; + + /** + * DST Time-Zone File version of the Autonomous Container Database. + * + * @return the value + */ + public String getDstFileVersion() { + return dstFileVersion; + } + @Override public String toString() { return this.toString(true); @@ -570,6 +605,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", autonomousDsiOneOffPatches=") .append(String.valueOf(this.autonomousDsiOneOffPatches)); sb.append(", imageShapeFamily=").append(String.valueOf(this.imageShapeFamily)); + sb.append(", dstFileVersion=").append(String.valueOf(this.dstFileVersion)); sb.append(")"); return sb.toString(); } @@ -597,6 +633,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.autonomousDsiOneOffPatches, other.autonomousDsiOneOffPatches) && java.util.Objects.equals(this.imageShapeFamily, other.imageShapeFamily) + && java.util.Objects.equals(this.dstFileVersion, other.dstFileVersion) && super.equals(other); } @@ -632,6 +669,9 @@ public int hashCode() { result = (result * PRIME) + (this.imageShapeFamily == null ? 43 : this.imageShapeFamily.hashCode()); + result = + (result * PRIME) + + (this.dstFileVersion == null ? 43 : this.dstFileVersion.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateMaintenanceRunDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateMaintenanceRunDetails.java index f51a6a001fa..648de658e53 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateMaintenanceRunDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateMaintenanceRunDetails.java @@ -30,7 +30,8 @@ public final class CreateMaintenanceRunDetails "timeScheduled", "patchingMode", "patchType", - "compartmentId" + "compartmentId", + "databaseSoftwareImageId" }) public CreateMaintenanceRunDetails( String targetResourceId, @@ -38,7 +39,8 @@ public CreateMaintenanceRunDetails( java.util.Date timeScheduled, PatchingMode patchingMode, PatchType patchType, - String compartmentId) { + String compartmentId, + String databaseSoftwareImageId) { super(); this.targetResourceId = targetResourceId; this.isDstFileUpdateEnabled = isDstFileUpdateEnabled; @@ -46,6 +48,7 @@ public CreateMaintenanceRunDetails( this.patchingMode = patchingMode; this.patchType = patchType; this.compartmentId = compartmentId; + this.databaseSoftwareImageId = databaseSoftwareImageId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -130,12 +133,12 @@ public Builder patchingMode(PatchingMode patchingMode) { this.__explicitlySet__.add("patchingMode"); return this; } - /** Patch type, either "QUARTERLY" or "TIMEZONE". */ + /** Patch type, either "QUARTERLY", "TIMEZONE" or "CUSTOM_DATABASE_SOFTWARE_IMAGE". */ @com.fasterxml.jackson.annotation.JsonProperty("patchType") private PatchType patchType; /** - * Patch type, either "QUARTERLY" or "TIMEZONE". + * Patch type, either "QUARTERLY", "TIMEZONE" or "CUSTOM_DATABASE_SOFTWARE_IMAGE". * * @param patchType the value to set * @return this builder @@ -164,6 +167,25 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSoftwareImageId") + private String databaseSoftwareImageId; + + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + * + * @param databaseSoftwareImageId the value to set + * @return this builder + */ + public Builder databaseSoftwareImageId(String databaseSoftwareImageId) { + this.databaseSoftwareImageId = databaseSoftwareImageId; + this.__explicitlySet__.add("databaseSoftwareImageId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -176,7 +198,8 @@ public CreateMaintenanceRunDetails build() { this.timeScheduled, this.patchingMode, this.patchType, - this.compartmentId); + this.compartmentId, + this.databaseSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -203,6 +226,9 @@ public Builder copy(CreateMaintenanceRunDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("databaseSoftwareImageId")) { + this.databaseSoftwareImageId(model.getDatabaseSoftwareImageId()); + } return this; } } @@ -329,10 +355,11 @@ public PatchingMode getPatchingMode() { return patchingMode; } - /** Patch type, either "QUARTERLY" or "TIMEZONE". */ + /** Patch type, either "QUARTERLY", "TIMEZONE" or "CUSTOM_DATABASE_SOFTWARE_IMAGE". */ public enum PatchType implements com.oracle.bmc.http.internal.BmcEnum { Quarterly("QUARTERLY"), Timezone("TIMEZONE"), + CustomDatabaseSoftwareImage("CUSTOM_DATABASE_SOFTWARE_IMAGE"), ; private final String value; @@ -362,12 +389,12 @@ public static PatchType create(String key) { throw new IllegalArgumentException("Invalid PatchType: " + key); } }; - /** Patch type, either "QUARTERLY" or "TIMEZONE". */ + /** Patch type, either "QUARTERLY", "TIMEZONE" or "CUSTOM_DATABASE_SOFTWARE_IMAGE". */ @com.fasterxml.jackson.annotation.JsonProperty("patchType") private final PatchType patchType; /** - * Patch type, either "QUARTERLY" or "TIMEZONE". + * Patch type, either "QUARTERLY", "TIMEZONE" or "CUSTOM_DATABASE_SOFTWARE_IMAGE". * * @return the value */ @@ -392,6 +419,23 @@ public String getCompartmentId() { return compartmentId; } + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSoftwareImageId") + private final String databaseSoftwareImageId; + + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + * + * @return the value + */ + public String getDatabaseSoftwareImageId() { + return databaseSoftwareImageId; + } + @Override public String toString() { return this.toString(true); @@ -413,6 +457,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", patchingMode=").append(String.valueOf(this.patchingMode)); sb.append(", patchType=").append(String.valueOf(this.patchType)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", databaseSoftwareImageId=") + .append(String.valueOf(this.databaseSoftwareImageId)); sb.append(")"); return sb.toString(); } @@ -434,6 +480,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.patchingMode, other.patchingMode) && java.util.Objects.equals(this.patchType, other.patchType) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.databaseSoftwareImageId, other.databaseSoftwareImageId) && super.equals(other); } @@ -457,6 +505,11 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.databaseSoftwareImageId == null + ? 43 + : this.databaseSoftwareImageId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java index d5106ba0cdb..928388ac2e1 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java @@ -51,7 +51,8 @@ public final class MaintenanceRun "patchingEndTime", "estimatedPatchingTime", "currentPatchingComponent", - "estimatedComponentPatchingStartTime" + "estimatedComponentPatchingStartTime", + "databaseSoftwareImageId" }) public MaintenanceRun( String id, @@ -82,7 +83,8 @@ public MaintenanceRun( java.util.Date patchingEndTime, EstimatedPatchingTime estimatedPatchingTime, String currentPatchingComponent, - java.util.Date estimatedComponentPatchingStartTime) { + java.util.Date estimatedComponentPatchingStartTime, + String databaseSoftwareImageId) { super(); this.id = id; this.compartmentId = compartmentId; @@ -113,6 +115,7 @@ public MaintenanceRun( this.estimatedPatchingTime = estimatedPatchingTime; this.currentPatchingComponent = currentPatchingComponent; this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.databaseSoftwareImageId = databaseSoftwareImageId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -595,6 +598,25 @@ public Builder estimatedComponentPatchingStartTime( this.__explicitlySet__.add("estimatedComponentPatchingStartTime"); return this; } + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSoftwareImageId") + private String databaseSoftwareImageId; + + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + * + * @param databaseSoftwareImageId the value to set + * @return this builder + */ + public Builder databaseSoftwareImageId(String databaseSoftwareImageId) { + this.databaseSoftwareImageId = databaseSoftwareImageId; + this.__explicitlySet__.add("databaseSoftwareImageId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -630,7 +652,8 @@ public MaintenanceRun build() { this.patchingEndTime, this.estimatedPatchingTime, this.currentPatchingComponent, - this.estimatedComponentPatchingStartTime); + this.estimatedComponentPatchingStartTime, + this.databaseSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -727,6 +750,9 @@ public Builder copy(MaintenanceRun model) { this.estimatedComponentPatchingStartTime( model.getEstimatedComponentPatchingStartTime()); } + if (model.wasPropertyExplicitlySet("databaseSoftwareImageId")) { + this.databaseSoftwareImageId(model.getDatabaseSoftwareImageId()); + } return this; } } @@ -1085,6 +1111,7 @@ public enum MaintenanceSubtype implements com.oracle.bmc.http.internal.BmcEnum { Oneoff("ONEOFF"), SecurityMonthly("SECURITY_MONTHLY"), Timezone("TIMEZONE"), + CustomDatabaseSoftwareImage("CUSTOM_DATABASE_SOFTWARE_IMAGE"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -1466,6 +1493,23 @@ public java.util.Date getEstimatedComponentPatchingStartTime() { return estimatedComponentPatchingStartTime; } + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSoftwareImageId") + private final String databaseSoftwareImageId; + + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + * + * @return the value + */ + public String getDatabaseSoftwareImageId() { + return databaseSoftwareImageId; + } + @Override public String toString() { return this.toString(true); @@ -1516,6 +1560,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.currentPatchingComponent)); sb.append(", estimatedComponentPatchingStartTime=") .append(String.valueOf(this.estimatedComponentPatchingStartTime)); + sb.append(", databaseSoftwareImageId=") + .append(String.valueOf(this.databaseSoftwareImageId)); sb.append(")"); return sb.toString(); } @@ -1568,6 +1614,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.estimatedComponentPatchingStartTime, other.estimatedComponentPatchingStartTime) + && java.util.Objects.equals( + this.databaseSoftwareImageId, other.databaseSoftwareImageId) && super.equals(other); } @@ -1672,6 +1720,11 @@ public int hashCode() { + (this.estimatedComponentPatchingStartTime == null ? 43 : this.estimatedComponentPatchingStartTime.hashCode()); + result = + (result * PRIME) + + (this.databaseSoftwareImageId == null + ? 43 + : this.databaseSoftwareImageId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java index fea51bcc2f2..f07e0b5cc50 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java @@ -52,7 +52,8 @@ public final class MaintenanceRunSummary "patchingEndTime", "estimatedPatchingTime", "currentPatchingComponent", - "estimatedComponentPatchingStartTime" + "estimatedComponentPatchingStartTime", + "databaseSoftwareImageId" }) public MaintenanceRunSummary( String id, @@ -83,7 +84,8 @@ public MaintenanceRunSummary( java.util.Date patchingEndTime, EstimatedPatchingTime estimatedPatchingTime, String currentPatchingComponent, - java.util.Date estimatedComponentPatchingStartTime) { + java.util.Date estimatedComponentPatchingStartTime, + String databaseSoftwareImageId) { super(); this.id = id; this.compartmentId = compartmentId; @@ -114,6 +116,7 @@ public MaintenanceRunSummary( this.estimatedPatchingTime = estimatedPatchingTime; this.currentPatchingComponent = currentPatchingComponent; this.estimatedComponentPatchingStartTime = estimatedComponentPatchingStartTime; + this.databaseSoftwareImageId = databaseSoftwareImageId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -596,6 +599,25 @@ public Builder estimatedComponentPatchingStartTime( this.__explicitlySet__.add("estimatedComponentPatchingStartTime"); return this; } + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSoftwareImageId") + private String databaseSoftwareImageId; + + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + * + * @param databaseSoftwareImageId the value to set + * @return this builder + */ + public Builder databaseSoftwareImageId(String databaseSoftwareImageId) { + this.databaseSoftwareImageId = databaseSoftwareImageId; + this.__explicitlySet__.add("databaseSoftwareImageId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -631,7 +653,8 @@ public MaintenanceRunSummary build() { this.patchingEndTime, this.estimatedPatchingTime, this.currentPatchingComponent, - this.estimatedComponentPatchingStartTime); + this.estimatedComponentPatchingStartTime, + this.databaseSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -728,6 +751,9 @@ public Builder copy(MaintenanceRunSummary model) { this.estimatedComponentPatchingStartTime( model.getEstimatedComponentPatchingStartTime()); } + if (model.wasPropertyExplicitlySet("databaseSoftwareImageId")) { + this.databaseSoftwareImageId(model.getDatabaseSoftwareImageId()); + } return this; } } @@ -1086,6 +1112,7 @@ public enum MaintenanceSubtype implements com.oracle.bmc.http.internal.BmcEnum { Oneoff("ONEOFF"), SecurityMonthly("SECURITY_MONTHLY"), Timezone("TIMEZONE"), + CustomDatabaseSoftwareImage("CUSTOM_DATABASE_SOFTWARE_IMAGE"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -1467,6 +1494,23 @@ public java.util.Date getEstimatedComponentPatchingStartTime() { return estimatedComponentPatchingStartTime; } + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSoftwareImageId") + private final String databaseSoftwareImageId; + + /** + * The Autonomous Database Software Image + * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + * + * @return the value + */ + public String getDatabaseSoftwareImageId() { + return databaseSoftwareImageId; + } + @Override public String toString() { return this.toString(true); @@ -1517,6 +1561,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.currentPatchingComponent)); sb.append(", estimatedComponentPatchingStartTime=") .append(String.valueOf(this.estimatedComponentPatchingStartTime)); + sb.append(", databaseSoftwareImageId=") + .append(String.valueOf(this.databaseSoftwareImageId)); sb.append(")"); return sb.toString(); } @@ -1569,6 +1615,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.estimatedComponentPatchingStartTime, other.estimatedComponentPatchingStartTime) + && java.util.Objects.equals( + this.databaseSoftwareImageId, other.databaseSoftwareImageId) && super.equals(other); } @@ -1673,6 +1721,11 @@ public int hashCode() { + (this.estimatedComponentPatchingStartTime == null ? 43 : this.estimatedComponentPatchingStartTime.hashCode()); + result = + (result * PRIME) + + (this.databaseSoftwareImageId == null + ? 43 + : this.databaseSoftwareImageId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 841afcbd494..54a016109d3 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicDatabaseConnectionStringDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicDatabaseConnectionStringDetails.java index b706be688b7..a120a932f1b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicDatabaseConnectionStringDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicDatabaseConnectionStringDetails.java @@ -148,7 +148,15 @@ public Integer getPort() { public enum Protocol implements com.oracle.bmc.http.internal.BmcEnum { Tcp("TCP"), Tcps("TCPS"), - ; + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Protocol.class); private final String value; private static java.util.Map map; @@ -156,7 +164,9 @@ public enum Protocol implements com.oracle.bmc.http.internal.BmcEnum { static { map = new java.util.HashMap<>(); for (Protocol v : Protocol.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -174,7 +184,10 @@ public static Protocol create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid Protocol: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'Protocol', returning UnknownEnumValue", + key); + return UnknownEnumValue; } }; /** The protocol used to connect to the database. */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java index 6fda711caea..3d8c1f64782 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java @@ -89,7 +89,15 @@ public enum ConnectorType implements com.oracle.bmc.http.internal.BmcEnum { Pe("PE"), Macs("MACS"), External("EXTERNAL"), - ; + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ConnectorType.class); private final String value; private static java.util.Map map; @@ -97,7 +105,9 @@ public enum ConnectorType implements com.oracle.bmc.http.internal.BmcEnum { static { map = new java.util.HashMap<>(); for (ConnectorType v : ConnectorType.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -115,7 +125,10 @@ public static ConnectorType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid ConnectorType: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'ConnectorType', returning UnknownEnumValue", + key); + return UnknownEnumValue; } }; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionCredentials.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionCredentials.java index a0dd6478b9e..b67fedd38b3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionCredentials.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionCredentials.java @@ -23,6 +23,9 @@ property = "credentialType", defaultImpl = DatabaseConnectionCredentials.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseNamedCredentialConnectionDetails.class, + name = "NAMED_CREDENTIAL"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DatabaseConnectionCredentailsByName.class, name = "NAME_REFERENCE"), @@ -88,6 +91,7 @@ public enum CredentialType implements com.oracle.bmc.http.internal.BmcEnum { NameReference("NAME_REFERENCE"), Details("DETAILS"), SslDetails("SSL_DETAILS"), + NamedCredentials("NAMED_CREDENTIALS"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionStringDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionStringDetails.java index 94cedc34998..458f1f5f3c8 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionStringDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionStringDetails.java @@ -79,7 +79,15 @@ public int hashCode() { /** The list of supported connection types: - BASIC: Basic connection details */ public enum ConnectionType implements com.oracle.bmc.http.internal.BmcEnum { Basic("BASIC"), - ; + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ConnectionType.class); private final String value; private static java.util.Map map; @@ -87,7 +95,9 @@ public enum ConnectionType implements com.oracle.bmc.http.internal.BmcEnum { static { map = new java.util.HashMap<>(); for (ConnectionType v : ConnectionType.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -105,7 +115,10 @@ public static ConnectionType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid ConnectionType: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'ConnectionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; } }; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureConfiguration.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureConfiguration.java index 5a9c41a7992..dfb0715767d 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureConfiguration.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureConfiguration.java @@ -128,7 +128,15 @@ public DatabaseDiagnosticsAndManagementFeatureConfiguration( public enum LicenseModel implements com.oracle.bmc.http.internal.BmcEnum { LicenseIncluded("LICENSE_INCLUDED"), BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), - ; + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LicenseModel.class); private final String value; private static java.util.Map map; @@ -136,7 +144,9 @@ public enum LicenseModel implements com.oracle.bmc.http.internal.BmcEnum { static { map = new java.util.HashMap<>(); for (LicenseModel v : LicenseModel.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -154,7 +164,10 @@ public static LicenseModel create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid LicenseModel: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'LicenseModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; } }; /** The Oracle license model that applies to the external database. */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureConfiguration.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureConfiguration.java index da7f52ac488..0bb823a8f01 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureConfiguration.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureConfiguration.java @@ -24,7 +24,13 @@ @com.fasterxml.jackson.annotation.JsonSubTypes({ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DatabaseDiagnosticsAndManagementFeatureConfiguration.class, - name = "DIAGNOSTICS_AND_MANAGEMENT") + name = "DIAGNOSTICS_AND_MANAGEMENT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseLifecycleFeatureConfiguration.class, + name = "DB_LIFECYCLE_MANAGEMENT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseSqlWatchFeatureConfiguration.class, + name = "SQLWATCH") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -58,7 +64,15 @@ public enum FeatureStatus implements com.oracle.bmc.http.internal.BmcEnum { PendingDisable("PENDING_DISABLE"), Enabling("ENABLING"), Disabling("DISABLING"), - ; + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FeatureStatus.class); private final String value; private static java.util.Map map; @@ -66,7 +80,9 @@ public enum FeatureStatus implements com.oracle.bmc.http.internal.BmcEnum { static { map = new java.util.HashMap<>(); for (FeatureStatus v : FeatureStatus.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -84,7 +100,10 @@ public static FeatureStatus create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid FeatureStatus: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'FeatureStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; } }; /** The list of statuses for Database Management features. */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureDetails.java index 0c16f5d08e0..09193a8a560 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureDetails.java @@ -24,7 +24,13 @@ @com.fasterxml.jackson.annotation.JsonSubTypes({ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DatabaseDiagnosticsAndManagementFeatureDetails.class, - name = "DIAGNOSTICS_AND_MANAGEMENT") + name = "DIAGNOSTICS_AND_MANAGEMENT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseLifecycleManagementFeatureDetails.class, + name = "DB_LIFECYCLE_MANAGEMENT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseSqlWatchFeatureDetails.class, + name = "SQLWATCH") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseLifecycleFeatureConfiguration.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseLifecycleFeatureConfiguration.java new file mode 100644 index 00000000000..03ddda5bff9 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseLifecycleFeatureConfiguration.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the Database Lifecycle Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseLifecycleFeatureConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseLifecycleFeatureConfiguration extends DatabaseFeatureConfiguration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("featureStatus") + private FeatureStatus featureStatus; + + public Builder featureStatus(FeatureStatus featureStatus) { + this.featureStatus = featureStatus; + this.__explicitlySet__.add("featureStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionDetails") + private DatabaseConnectionDetails databaseConnectionDetails; + + public Builder databaseConnectionDetails( + DatabaseConnectionDetails databaseConnectionDetails) { + this.databaseConnectionDetails = databaseConnectionDetails; + this.__explicitlySet__.add("databaseConnectionDetails"); + return this; + } + /** The Oracle license model that applies to the external database. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the external database. + * + * @param licenseModel the value to set + * @return this builder + */ + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseLifecycleFeatureConfiguration build() { + DatabaseLifecycleFeatureConfiguration model = + new DatabaseLifecycleFeatureConfiguration( + this.featureStatus, + this.connectorDetails, + this.databaseConnectionDetails, + this.licenseModel); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseLifecycleFeatureConfiguration model) { + if (model.wasPropertyExplicitlySet("featureStatus")) { + this.featureStatus(model.getFeatureStatus()); + } + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + if (model.wasPropertyExplicitlySet("databaseConnectionDetails")) { + this.databaseConnectionDetails(model.getDatabaseConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseLifecycleFeatureConfiguration( + FeatureStatus featureStatus, + ConnectorDetails connectorDetails, + DatabaseConnectionDetails databaseConnectionDetails, + LicenseModel licenseModel) { + super(featureStatus, connectorDetails, databaseConnectionDetails); + this.licenseModel = licenseModel; + } + + /** The Oracle license model that applies to the external database. */ + public enum LicenseModel implements com.oracle.bmc.http.internal.BmcEnum { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LicenseModel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LicenseModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The Oracle license model that applies to the external database. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the external database. + * + * @return the value + */ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseLifecycleFeatureConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseLifecycleFeatureConfiguration)) { + return false; + } + + DatabaseLifecycleFeatureConfiguration other = (DatabaseLifecycleFeatureConfiguration) o; + return java.util.Objects.equals(this.licenseModel, other.licenseModel) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseLifecycleManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseLifecycleManagementFeatureDetails.java new file mode 100644 index 00000000000..f08293a1e93 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseLifecycleManagementFeatureDetails.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the Database Lifecycle Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseLifecycleManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseLifecycleManagementFeatureDetails extends DatabaseFeatureDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionDetails") + private DatabaseConnectionDetails databaseConnectionDetails; + + public Builder databaseConnectionDetails( + DatabaseConnectionDetails databaseConnectionDetails) { + this.databaseConnectionDetails = databaseConnectionDetails; + this.__explicitlySet__.add("databaseConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseLifecycleManagementFeatureDetails build() { + DatabaseLifecycleManagementFeatureDetails model = + new DatabaseLifecycleManagementFeatureDetails( + this.databaseConnectionDetails, this.connectorDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseLifecycleManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("databaseConnectionDetails")) { + this.databaseConnectionDetails(model.getDatabaseConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseLifecycleManagementFeatureDetails( + DatabaseConnectionDetails databaseConnectionDetails, + ConnectorDetails connectorDetails) { + super(databaseConnectionDetails, connectorDetails); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseLifecycleManagementFeatureDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseLifecycleManagementFeatureDetails)) { + return false; + } + + DatabaseLifecycleManagementFeatureDetails other = + (DatabaseLifecycleManagementFeatureDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseNamedCredentialConnectionDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseNamedCredentialConnectionDetails.java new file mode 100644 index 00000000000..754ce58b86b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseNamedCredentialConnectionDetails.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * User provides a named credential OCID, which will be used to retrieve the password to connect to + * the database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseNamedCredentialConnectionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseNamedCredentialConnectionDetails extends DatabaseConnectionCredentials { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential where the database password metadata is stored. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential where the database password metadata is stored. + * + * @param namedCredentialId the value to set + * @return this builder + */ + public Builder namedCredentialId(String namedCredentialId) { + this.namedCredentialId = namedCredentialId; + this.__explicitlySet__.add("namedCredentialId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseNamedCredentialConnectionDetails build() { + DatabaseNamedCredentialConnectionDetails model = + new DatabaseNamedCredentialConnectionDetails(this.namedCredentialId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseNamedCredentialConnectionDetails model) { + if (model.wasPropertyExplicitlySet("namedCredentialId")) { + this.namedCredentialId(model.getNamedCredentialId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseNamedCredentialConnectionDetails(String namedCredentialId) { + super(); + this.namedCredentialId = namedCredentialId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential where the database password metadata is stored. + */ + @com.fasterxml.jackson.annotation.JsonProperty("namedCredentialId") + private final String namedCredentialId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Named Credential where the database password metadata is stored. + * + * @return the value + */ + public String getNamedCredentialId() { + return namedCredentialId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseNamedCredentialConnectionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", namedCredentialId=").append(String.valueOf(this.namedCredentialId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseNamedCredentialConnectionDetails)) { + return false; + } + + DatabaseNamedCredentialConnectionDetails other = + (DatabaseNamedCredentialConnectionDetails) o; + return java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namedCredentialId == null ? 43 : this.namedCredentialId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSqlWatchFeatureConfiguration.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSqlWatchFeatureConfiguration.java new file mode 100644 index 00000000000..fafc503f642 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSqlWatchFeatureConfiguration.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the SQL Watch feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseSqlWatchFeatureConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseSqlWatchFeatureConfiguration extends DatabaseFeatureConfiguration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("featureStatus") + private FeatureStatus featureStatus; + + public Builder featureStatus(FeatureStatus featureStatus) { + this.featureStatus = featureStatus; + this.__explicitlySet__.add("featureStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionDetails") + private DatabaseConnectionDetails databaseConnectionDetails; + + public Builder databaseConnectionDetails( + DatabaseConnectionDetails databaseConnectionDetails) { + this.databaseConnectionDetails = databaseConnectionDetails; + this.__explicitlySet__.add("databaseConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseSqlWatchFeatureConfiguration build() { + DatabaseSqlWatchFeatureConfiguration model = + new DatabaseSqlWatchFeatureConfiguration( + this.featureStatus, + this.connectorDetails, + this.databaseConnectionDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseSqlWatchFeatureConfiguration model) { + if (model.wasPropertyExplicitlySet("featureStatus")) { + this.featureStatus(model.getFeatureStatus()); + } + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + if (model.wasPropertyExplicitlySet("databaseConnectionDetails")) { + this.databaseConnectionDetails(model.getDatabaseConnectionDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseSqlWatchFeatureConfiguration( + FeatureStatus featureStatus, + ConnectorDetails connectorDetails, + DatabaseConnectionDetails databaseConnectionDetails) { + super(featureStatus, connectorDetails, databaseConnectionDetails); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseSqlWatchFeatureConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseSqlWatchFeatureConfiguration)) { + return false; + } + + DatabaseSqlWatchFeatureConfiguration other = (DatabaseSqlWatchFeatureConfiguration) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSqlWatchFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSqlWatchFeatureDetails.java new file mode 100644 index 00000000000..ada4cd82059 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseSqlWatchFeatureDetails.java @@ -0,0 +1,128 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the SQL Watch feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseSqlWatchFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseSqlWatchFeatureDetails extends DatabaseFeatureDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionDetails") + private DatabaseConnectionDetails databaseConnectionDetails; + + public Builder databaseConnectionDetails( + DatabaseConnectionDetails databaseConnectionDetails) { + this.databaseConnectionDetails = databaseConnectionDetails; + this.__explicitlySet__.add("databaseConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseSqlWatchFeatureDetails build() { + DatabaseSqlWatchFeatureDetails model = + new DatabaseSqlWatchFeatureDetails( + this.databaseConnectionDetails, this.connectorDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseSqlWatchFeatureDetails model) { + if (model.wasPropertyExplicitlySet("databaseConnectionDetails")) { + this.databaseConnectionDetails(model.getDatabaseConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseSqlWatchFeatureDetails( + DatabaseConnectionDetails databaseConnectionDetails, + ConnectorDetails connectorDetails) { + super(databaseConnectionDetails, connectorDetails); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseSqlWatchFeatureDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseSqlWatchFeatureDetails)) { + return false; + } + + DatabaseSqlWatchFeatureDetails other = (DatabaseSqlWatchFeatureDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementFeature.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementFeature.java index 9f6c6d5742b..0d6e036ee4a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementFeature.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementFeature.java @@ -12,7 +12,17 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public enum DbManagementFeature implements com.oracle.bmc.http.internal.BmcEnum { DiagnosticsAndManagement("DIAGNOSTICS_AND_MANAGEMENT"), - ; + DbLifecycleManagement("DB_LIFECYCLE_MANAGEMENT"), + Sqlwatch("SQLWATCH"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DbManagementFeature.class); private final String value; private static java.util.Map map; @@ -20,7 +30,9 @@ public enum DbManagementFeature implements com.oracle.bmc.http.internal.BmcEnum static { map = new java.util.HashMap<>(); for (DbManagementFeature v : DbManagementFeature.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -38,6 +50,9 @@ public static DbManagementFeature create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid DbManagementFeature: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'DbManagementFeature', returning UnknownEnumValue", + key); + return UnknownEnumValue; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseFeatureDetails.java index a1c23ba74c5..80e67e3eeb6 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseFeatureDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseFeatureDetails.java @@ -22,6 +22,12 @@ property = "feature", defaultImpl = ExternalDatabaseFeatureDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalDatabaseLifecycleManagementFeatureDetails.class, + name = "DB_LIFECYCLE_MANAGEMENT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalDatabaseSqlWatchFeatureDetails.class, + name = "SQLWATCH"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ExternalDatabaseDiagnosticsAndManagementFeatureDetails.class, name = "DIAGNOSTICS_AND_MANAGEMENT") diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseLifecycleManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseLifecycleManagementFeatureDetails.java new file mode 100644 index 00000000000..7dc200a749a --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseLifecycleManagementFeatureDetails.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the Database Lifecycle Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalDatabaseLifecycleManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalDatabaseLifecycleManagementFeatureDetails + extends ExternalDatabaseFeatureDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + /** The Oracle license model that applies to the external database. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the external database. + * + * @param licenseModel the value to set + * @return this builder + */ + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalDatabaseLifecycleManagementFeatureDetails build() { + ExternalDatabaseLifecycleManagementFeatureDetails model = + new ExternalDatabaseLifecycleManagementFeatureDetails( + this.connectorDetails, this.licenseModel); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalDatabaseLifecycleManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExternalDatabaseLifecycleManagementFeatureDetails( + ConnectorDetails connectorDetails, LicenseModel licenseModel) { + super(connectorDetails); + this.licenseModel = licenseModel; + } + + /** The Oracle license model that applies to the external database. */ + public enum LicenseModel implements com.oracle.bmc.http.internal.BmcEnum { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + map.put(v.getValue(), v); + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LicenseModel: " + key); + } + }; + /** The Oracle license model that applies to the external database. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the external database. + * + * @return the value + */ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalDatabaseLifecycleManagementFeatureDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalDatabaseLifecycleManagementFeatureDetails)) { + return false; + } + + ExternalDatabaseLifecycleManagementFeatureDetails other = + (ExternalDatabaseLifecycleManagementFeatureDetails) o; + return java.util.Objects.equals(this.licenseModel, other.licenseModel) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseSqlWatchFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseSqlWatchFeatureDetails.java new file mode 100644 index 00000000000..ed271f9fcf0 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseSqlWatchFeatureDetails.java @@ -0,0 +1,112 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the SQL Watch feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalDatabaseSqlWatchFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalDatabaseSqlWatchFeatureDetails extends ExternalDatabaseFeatureDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalDatabaseSqlWatchFeatureDetails build() { + ExternalDatabaseSqlWatchFeatureDetails model = + new ExternalDatabaseSqlWatchFeatureDetails(this.connectorDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalDatabaseSqlWatchFeatureDetails model) { + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExternalDatabaseSqlWatchFeatureDetails(ConnectorDetails connectorDetails) { + super(connectorDetails); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalDatabaseSqlWatchFeatureDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalDatabaseSqlWatchFeatureDetails)) { + return false; + } + + ExternalDatabaseSqlWatchFeatureDetails other = (ExternalDatabaseSqlWatchFeatureDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseSummary.java index 9d2820925b7..f485e4b2326 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseSummary.java @@ -39,7 +39,10 @@ public final class ExternalDatabaseSummary "timeCreated", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "dbmgmtFeatureConfigs", + "databaseVersion", + "databasePlatformName" }) public ExternalDatabaseSummary( String id, @@ -57,7 +60,10 @@ public ExternalDatabaseSummary( java.util.Date timeCreated, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.List dbmgmtFeatureConfigs, + String databaseVersion, + String databasePlatformName) { super(); this.id = id; this.displayName = displayName; @@ -75,6 +81,9 @@ public ExternalDatabaseSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.dbmgmtFeatureConfigs = dbmgmtFeatureConfigs; + this.databaseVersion = databaseVersion; + this.databasePlatformName = databasePlatformName; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -356,6 +365,52 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** The list of feature configurations */ + @com.fasterxml.jackson.annotation.JsonProperty("dbmgmtFeatureConfigs") + private java.util.List dbmgmtFeatureConfigs; + + /** + * The list of feature configurations + * + * @param dbmgmtFeatureConfigs the value to set + * @return this builder + */ + public Builder dbmgmtFeatureConfigs( + java.util.List dbmgmtFeatureConfigs) { + this.dbmgmtFeatureConfigs = dbmgmtFeatureConfigs; + this.__explicitlySet__.add("dbmgmtFeatureConfigs"); + return this; + } + /** The Oracle database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + /** + * The Oracle database version. + * + * @param databaseVersion the value to set + * @return this builder + */ + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + /** The operating system of database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databasePlatformName") + private String databasePlatformName; + + /** + * The operating system of database. + * + * @param databasePlatformName the value to set + * @return this builder + */ + public Builder databasePlatformName(String databasePlatformName) { + this.databasePlatformName = databasePlatformName; + this.__explicitlySet__.add("databasePlatformName"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -378,7 +433,10 @@ public ExternalDatabaseSummary build() { this.timeCreated, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.dbmgmtFeatureConfigs, + this.databaseVersion, + this.databasePlatformName); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -435,6 +493,15 @@ public Builder copy(ExternalDatabaseSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("dbmgmtFeatureConfigs")) { + this.dbmgmtFeatureConfigs(model.getDbmgmtFeatureConfigs()); + } + if (model.wasPropertyExplicitlySet("databaseVersion")) { + this.databaseVersion(model.getDatabaseVersion()); + } + if (model.wasPropertyExplicitlySet("databasePlatformName")) { + this.databasePlatformName(model.getDatabasePlatformName()); + } return this; } } @@ -743,6 +810,45 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** The list of feature configurations */ + @com.fasterxml.jackson.annotation.JsonProperty("dbmgmtFeatureConfigs") + private final java.util.List dbmgmtFeatureConfigs; + + /** + * The list of feature configurations + * + * @return the value + */ + public java.util.List getDbmgmtFeatureConfigs() { + return dbmgmtFeatureConfigs; + } + + /** The Oracle database version. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private final String databaseVersion; + + /** + * The Oracle database version. + * + * @return the value + */ + public String getDatabaseVersion() { + return databaseVersion; + } + + /** The operating system of database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databasePlatformName") + private final String databasePlatformName; + + /** + * The operating system of database. + * + * @return the value + */ + public String getDatabasePlatformName() { + return databasePlatformName; + } + @Override public String toString() { return this.toString(true); @@ -775,6 +881,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", dbmgmtFeatureConfigs=").append(String.valueOf(this.dbmgmtFeatureConfigs)); + sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); + sb.append(", databasePlatformName=").append(String.valueOf(this.databasePlatformName)); sb.append(")"); return sb.toString(); } @@ -806,6 +915,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.dbmgmtFeatureConfigs, other.dbmgmtFeatureConfigs) + && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) + && java.util.Objects.equals(this.databasePlatformName, other.databasePlatformName) && super.equals(other); } @@ -847,6 +959,19 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.dbmgmtFeatureConfigs == null + ? 43 + : this.dbmgmtFeatureConfigs.hashCode()); + result = + (result * PRIME) + + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); + result = + (result * PRIME) + + (this.databasePlatformName == null + ? 43 + : this.databasePlatformName.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseFeatureDetails.java index 47a5f09e687..db7b7ff1478 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseFeatureDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseFeatureDetails.java @@ -24,7 +24,13 @@ @com.fasterxml.jackson.annotation.JsonSubTypes({ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.class, - name = "DIAGNOSTICS_AND_MANAGEMENT") + name = "DIAGNOSTICS_AND_MANAGEMENT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalPluggableDatabaseLifecycleManagementFeatureDetails.class, + name = "DB_LIFECYCLE_MANAGEMENT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalPluggableDatabaseSqlWatchFeatureDetails.class, + name = "SQLWATCH") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseLifecycleManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseLifecycleManagementFeatureDetails.java new file mode 100644 index 00000000000..45e058292a5 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseLifecycleManagementFeatureDetails.java @@ -0,0 +1,116 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the Database Lifecycle Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalPluggableDatabaseLifecycleManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalPluggableDatabaseLifecycleManagementFeatureDetails + extends ExternalPluggableDatabaseFeatureDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalPluggableDatabaseLifecycleManagementFeatureDetails build() { + ExternalPluggableDatabaseLifecycleManagementFeatureDetails model = + new ExternalPluggableDatabaseLifecycleManagementFeatureDetails( + this.connectorDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalPluggableDatabaseLifecycleManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExternalPluggableDatabaseLifecycleManagementFeatureDetails( + ConnectorDetails connectorDetails) { + super(connectorDetails); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalPluggableDatabaseLifecycleManagementFeatureDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalPluggableDatabaseLifecycleManagementFeatureDetails)) { + return false; + } + + ExternalPluggableDatabaseLifecycleManagementFeatureDetails other = + (ExternalPluggableDatabaseLifecycleManagementFeatureDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseSqlWatchFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseSqlWatchFeatureDetails.java new file mode 100644 index 00000000000..0c7d9f140a5 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseSqlWatchFeatureDetails.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the SQL watch feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalPluggableDatabaseSqlWatchFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalPluggableDatabaseSqlWatchFeatureDetails + extends ExternalPluggableDatabaseFeatureDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalPluggableDatabaseSqlWatchFeatureDetails build() { + ExternalPluggableDatabaseSqlWatchFeatureDetails model = + new ExternalPluggableDatabaseSqlWatchFeatureDetails(this.connectorDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalPluggableDatabaseSqlWatchFeatureDetails model) { + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExternalPluggableDatabaseSqlWatchFeatureDetails(ConnectorDetails connectorDetails) { + super(connectorDetails); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalPluggableDatabaseSqlWatchFeatureDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalPluggableDatabaseSqlWatchFeatureDetails)) { + return false; + } + + ExternalPluggableDatabaseSqlWatchFeatureDetails other = + (ExternalPluggableDatabaseSqlWatchFeatureDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabase.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabase.java index b9203912a65..d8832cee290 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabase.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabase.java @@ -48,7 +48,9 @@ public final class ManagedDatabase "additionalDetails", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "dbmgmtFeatureConfigs", + "databasePlatformName" }) public ManagedDatabase( String id, @@ -76,7 +78,9 @@ public ManagedDatabase( java.util.Map additionalDetails, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.List dbmgmtFeatureConfigs, + String databasePlatformName) { super(); this.id = id; this.compartmentId = compartmentId; @@ -104,6 +108,8 @@ public ManagedDatabase( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.dbmgmtFeatureConfigs = dbmgmtFeatureConfigs; + this.databasePlatformName = databasePlatformName; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -567,6 +573,37 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** The list of feature configurations */ + @com.fasterxml.jackson.annotation.JsonProperty("dbmgmtFeatureConfigs") + private java.util.List dbmgmtFeatureConfigs; + + /** + * The list of feature configurations + * + * @param dbmgmtFeatureConfigs the value to set + * @return this builder + */ + public Builder dbmgmtFeatureConfigs( + java.util.List dbmgmtFeatureConfigs) { + this.dbmgmtFeatureConfigs = dbmgmtFeatureConfigs; + this.__explicitlySet__.add("dbmgmtFeatureConfigs"); + return this; + } + /** The operating system of database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databasePlatformName") + private String databasePlatformName; + + /** + * The operating system of database. + * + * @param databasePlatformName the value to set + * @return this builder + */ + public Builder databasePlatformName(String databasePlatformName) { + this.databasePlatformName = databasePlatformName; + this.__explicitlySet__.add("databasePlatformName"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -599,7 +636,9 @@ public ManagedDatabase build() { this.additionalDetails, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.dbmgmtFeatureConfigs, + this.databasePlatformName); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -686,6 +725,12 @@ public Builder copy(ManagedDatabase model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("dbmgmtFeatureConfigs")) { + this.dbmgmtFeatureConfigs(model.getDbmgmtFeatureConfigs()); + } + if (model.wasPropertyExplicitlySet("databasePlatformName")) { + this.databasePlatformName(model.getDatabasePlatformName()); + } return this; } } @@ -1105,6 +1150,32 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** The list of feature configurations */ + @com.fasterxml.jackson.annotation.JsonProperty("dbmgmtFeatureConfigs") + private final java.util.List dbmgmtFeatureConfigs; + + /** + * The list of feature configurations + * + * @return the value + */ + public java.util.List getDbmgmtFeatureConfigs() { + return dbmgmtFeatureConfigs; + } + + /** The operating system of database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databasePlatformName") + private final String databasePlatformName; + + /** + * The operating system of database. + * + * @return the value + */ + public String getDatabasePlatformName() { + return databasePlatformName; + } + @Override public String toString() { return this.toString(true); @@ -1147,6 +1218,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", dbmgmtFeatureConfigs=").append(String.valueOf(this.dbmgmtFeatureConfigs)); + sb.append(", databasePlatformName=").append(String.valueOf(this.databasePlatformName)); sb.append(")"); return sb.toString(); } @@ -1188,6 +1261,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.dbmgmtFeatureConfigs, other.dbmgmtFeatureConfigs) + && java.util.Objects.equals(this.databasePlatformName, other.databasePlatformName) && super.equals(other); } @@ -1255,6 +1330,16 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.dbmgmtFeatureConfigs == null + ? 43 + : this.dbmgmtFeatureConfigs.hashCode()); + result = + (result * PRIME) + + (this.databasePlatformName == null + ? 43 + : this.databasePlatformName.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseSummary.java index eb113af1c4c..3914f90837a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseSummary.java @@ -40,7 +40,9 @@ public final class ManagedDatabaseSummary "databaseVersion", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "dbmgmtFeatureConfigs", + "databasePlatformName" }) public ManagedDatabaseSummary( String id, @@ -59,7 +61,9 @@ public ManagedDatabaseSummary( String databaseVersion, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.List dbmgmtFeatureConfigs, + String databasePlatformName) { super(); this.id = id; this.compartmentId = compartmentId; @@ -78,6 +82,8 @@ public ManagedDatabaseSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.dbmgmtFeatureConfigs = dbmgmtFeatureConfigs; + this.databasePlatformName = databasePlatformName; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -392,6 +398,37 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** The list of feature configurations */ + @com.fasterxml.jackson.annotation.JsonProperty("dbmgmtFeatureConfigs") + private java.util.List dbmgmtFeatureConfigs; + + /** + * The list of feature configurations + * + * @param dbmgmtFeatureConfigs the value to set + * @return this builder + */ + public Builder dbmgmtFeatureConfigs( + java.util.List dbmgmtFeatureConfigs) { + this.dbmgmtFeatureConfigs = dbmgmtFeatureConfigs; + this.__explicitlySet__.add("dbmgmtFeatureConfigs"); + return this; + } + /** The operating system of database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databasePlatformName") + private String databasePlatformName; + + /** + * The operating system of database. + * + * @param databasePlatformName the value to set + * @return this builder + */ + public Builder databasePlatformName(String databasePlatformName) { + this.databasePlatformName = databasePlatformName; + this.__explicitlySet__.add("databasePlatformName"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -415,7 +452,9 @@ public ManagedDatabaseSummary build() { this.databaseVersion, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.dbmgmtFeatureConfigs, + this.databasePlatformName); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -475,6 +514,12 @@ public Builder copy(ManagedDatabaseSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("dbmgmtFeatureConfigs")) { + this.dbmgmtFeatureConfigs(model.getDbmgmtFeatureConfigs()); + } + if (model.wasPropertyExplicitlySet("databasePlatformName")) { + this.databasePlatformName(model.getDatabasePlatformName()); + } return this; } } @@ -763,6 +808,32 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** The list of feature configurations */ + @com.fasterxml.jackson.annotation.JsonProperty("dbmgmtFeatureConfigs") + private final java.util.List dbmgmtFeatureConfigs; + + /** + * The list of feature configurations + * + * @return the value + */ + public java.util.List getDbmgmtFeatureConfigs() { + return dbmgmtFeatureConfigs; + } + + /** The operating system of database. */ + @com.fasterxml.jackson.annotation.JsonProperty("databasePlatformName") + private final String databasePlatformName; + + /** + * The operating system of database. + * + * @return the value + */ + public String getDatabasePlatformName() { + return databasePlatformName; + } + @Override public String toString() { return this.toString(true); @@ -795,6 +866,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", dbmgmtFeatureConfigs=").append(String.valueOf(this.dbmgmtFeatureConfigs)); + sb.append(", databasePlatformName=").append(String.valueOf(this.databasePlatformName)); sb.append(")"); return sb.toString(); } @@ -826,6 +899,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.dbmgmtFeatureConfigs, other.dbmgmtFeatureConfigs) + && java.util.Objects.equals(this.databasePlatformName, other.databasePlatformName) && super.equals(other); } @@ -864,6 +939,16 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.dbmgmtFeatureConfigs == null + ? 43 + : this.dbmgmtFeatureConfigs.hashCode()); + result = + (result * PRIME) + + (this.databasePlatformName == null + ? 43 + : this.databasePlatformName.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json b/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json index fb89a81b13d..f43e712f7dc 100644 --- a/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json +++ b/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json @@ -1729,6 +1729,40 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseLifecycleFeatureConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseLifecycleFeatureConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseLifecycleFeatureConfiguration$LicenseModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseLifecycleManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseLifecycleManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseManagementConfig", @@ -1755,6 +1789,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseNamedCredentialConnectionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseNamedCredentialConnectionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseNamedCredentialDetails", @@ -1921,6 +1969,34 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseSqlWatchFeatureConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseSqlWatchFeatureConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseSqlWatchFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseSqlWatchFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseSslConnectionCredentials", @@ -3185,6 +3261,40 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseLifecycleManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseLifecycleManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseLifecycleManagementFeatureDetails$LicenseModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseSqlWatchFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseSqlWatchFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseSummary", @@ -4028,6 +4138,34 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalPluggableDatabaseLifecycleManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalPluggableDatabaseLifecycleManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalPluggableDatabaseSqlWatchFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalPluggableDatabaseSqlWatchFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ExternalServicedAsm", diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index b23bc3a784b..1174b5b326f 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 897599e33e9..ea6b692d15d 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index e8e89a65bc9..95767fb3cf8 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index e2957857576..610d9aefed4 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index e75328139c1..dcc1a5a7449 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 5a449f96d74..5eb54da05e5 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 5f86eac9177..70595f41bf7 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 82132a33eac..1b24dc5dac4 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index b7c9e8a1691..131f830b549 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index b06505f5950..29292a4c51b 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 105ca864fb4..57c76d58f20 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index d26420ab6b8..a7c37025cf8 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index bd106389de1..f012430ebcd 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/DisasterRecoveryAsyncClient.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/DisasterRecoveryAsyncClient.java index 32c7b1d922e..0ec4779e0c3 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/DisasterRecoveryAsyncClient.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/DisasterRecoveryAsyncClient.java @@ -671,7 +671,6 @@ public java.util.concurrent.Future listDrPlanExecu .appendQueryParam("drProtectionGroupId", request.getDrProtectionGroupId()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("drPlanExecutionId", request.getDrPlanExecutionId()) - .appendEnumQueryParam("drPlanExecutionType", request.getDrPlanExecutionType()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/DisasterRecoveryClient.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/DisasterRecoveryClient.java index 9e66017a994..5276c6f798b 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/DisasterRecoveryClient.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/DisasterRecoveryClient.java @@ -652,7 +652,6 @@ public ListDrPlanExecutionsResponse listDrPlanExecutions(ListDrPlanExecutionsReq .appendQueryParam("drProtectionGroupId", request.getDrProtectionGroupId()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("drPlanExecutionId", request.getDrPlanExecutionId()) - .appendEnumQueryParam("drPlanExecutionType", request.getDrPlanExecutionType()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/AutonomousContainerDatabaseSnapshotStandbyConnectionStringType.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/AutonomousContainerDatabaseSnapshotStandbyConnectionStringType.java new file mode 100644 index 00000000000..743df7fd778 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/AutonomousContainerDatabaseSnapshotStandbyConnectionStringType.java @@ -0,0 +1,66 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * The type of connection strings used to connect to an Autonomous Container Database snapshot + * standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. - SNAPSHOT_SERVICE - Connect to the snapshot standby using + * new services that are active only in snapshot standby mode. - PRIMARY_SERVICE - Connect to the + * snapshot standby database using the same services as the primary database. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +public enum AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + implements com.oracle.bmc.http.internal.BmcEnum { + SnapshotService("SNAPSHOT_SERVICE"), + PrimaryService("PRIMARY_SERVICE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + AutonomousContainerDatabaseSnapshotStandbyConnectionStringType.class); + + private final String value; + private static java.util.Map< + String, AutonomousContainerDatabaseSnapshotStandbyConnectionStringType> + map; + + static { + map = new java.util.HashMap<>(); + for (AutonomousContainerDatabaseSnapshotStandbyConnectionStringType v : + AutonomousContainerDatabaseSnapshotStandbyConnectionStringType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AutonomousContainerDatabaseSnapshotStandbyConnectionStringType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutonomousContainerDatabaseSnapshotStandbyConnectionStringType create( + String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AutonomousContainerDatabaseSnapshotStandbyConnectionStringType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/AutonomousDatabaseStandbyTypeForDrDrills.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/AutonomousDatabaseStandbyTypeForDrDrills.java new file mode 100644 index 00000000000..a9128ad7a5c --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/AutonomousDatabaseStandbyTypeForDrDrills.java @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * This specifies the mechanism used to create a temporary Autonomous Database instance for DR + * Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. - FULL_CLONE - Creates a full clone of the source + * Autonomous Database with read-write access for DR Drill operations. - REFRESHABLE_CLONE - Creates + * a full clone of the source Autonomous Database with read-only access for DR Drill operations. - + * SNAPSHOT_STANDBY - Converts the existing standby Autonomous Database to a snapshot standby for DR + * Drill operations. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +public enum AutonomousDatabaseStandbyTypeForDrDrills + implements com.oracle.bmc.http.internal.BmcEnum { + FullClone("FULL_CLONE"), + RefreshableClone("REFRESHABLE_CLONE"), + SnapshotStandby("SNAPSHOT_STANDBY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AutonomousDatabaseStandbyTypeForDrDrills.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutonomousDatabaseStandbyTypeForDrDrills v : + AutonomousDatabaseStandbyTypeForDrDrills.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AutonomousDatabaseStandbyTypeForDrDrills(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutonomousDatabaseStandbyTypeForDrDrills create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AutonomousDatabaseStandbyTypeForDrDrills', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.java new file mode 100644 index 00000000000..26d2d4bbac2 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Create properties for an Autonomous Container Database member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "memberType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails + extends CreateDrProtectionGroupMemberDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private String memberId; + + public Builder memberId(String memberId) { + this.memberId = memberId; + this.__explicitlySet__.add("memberId"); + return this; + } + /** + * The type of connection strings used to connect to an Autonomous Container Database + * snapshot standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStringType") + private AutonomousContainerDatabaseSnapshotStandbyConnectionStringType connectionStringType; + + /** + * The type of connection strings used to connect to an Autonomous Container Database + * snapshot standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + * + * @param connectionStringType the value to set + * @return this builder + */ + public Builder connectionStringType( + AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + connectionStringType) { + this.connectionStringType = connectionStringType; + this.__explicitlySet__.add("connectionStringType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails build() { + CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails model = + new CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails( + this.memberId, this.connectionStringType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("memberId")) { + this.memberId(model.getMemberId()); + } + if (model.wasPropertyExplicitlySet("connectionStringType")) { + this.connectionStringType(model.getConnectionStringType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails( + String memberId, + AutonomousContainerDatabaseSnapshotStandbyConnectionStringType connectionStringType) { + super(memberId); + this.connectionStringType = connectionStringType; + } + + /** + * The type of connection strings used to connect to an Autonomous Container Database snapshot + * standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStringType") + private final AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + connectionStringType; + + /** + * The type of connection strings used to connect to an Autonomous Container Database snapshot + * standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + * + * @return the value + */ + public AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + getConnectionStringType() { + return connectionStringType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", connectionStringType=").append(String.valueOf(this.connectionStringType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails)) { + return false; + } + + CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails other = + (CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails) o; + return java.util.Objects.equals(this.connectionStringType, other.connectionStringType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.connectionStringType == null + ? 43 + : this.connectionStringType.hashCode()); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberAutonomousDatabaseDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberAutonomousDatabaseDetails.java index 2bbce8b6c5f..9595b199a11 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberAutonomousDatabaseDetails.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberAutonomousDatabaseDetails.java @@ -36,13 +36,68 @@ public Builder memberId(String memberId) { this.__explicitlySet__.add("memberId"); return this; } + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for + * DR Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseStandbyTypeForDrDrills") + private AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills; + + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for + * DR Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + * + * @param autonomousDatabaseStandbyTypeForDrDrills the value to set + * @return this builder + */ + public Builder autonomousDatabaseStandbyTypeForDrDrills( + AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills) { + this.autonomousDatabaseStandbyTypeForDrDrills = + autonomousDatabaseStandbyTypeForDrDrills; + this.__explicitlySet__.add("autonomousDatabaseStandbyTypeForDrDrills"); + return this; + } + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password + * is required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordVaultSecretId") + private String passwordVaultSecretId; + + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password + * is required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + * + * @param passwordVaultSecretId the value to set + * @return this builder + */ + public Builder passwordVaultSecretId(String passwordVaultSecretId) { + this.passwordVaultSecretId = passwordVaultSecretId; + this.__explicitlySet__.add("passwordVaultSecretId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public CreateDrProtectionGroupMemberAutonomousDatabaseDetails build() { CreateDrProtectionGroupMemberAutonomousDatabaseDetails model = - new CreateDrProtectionGroupMemberAutonomousDatabaseDetails(this.memberId); + new CreateDrProtectionGroupMemberAutonomousDatabaseDetails( + this.memberId, + this.autonomousDatabaseStandbyTypeForDrDrills, + this.passwordVaultSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -54,6 +109,13 @@ public Builder copy(CreateDrProtectionGroupMemberAutonomousDatabaseDetails model if (model.wasPropertyExplicitlySet("memberId")) { this.memberId(model.getMemberId()); } + if (model.wasPropertyExplicitlySet("autonomousDatabaseStandbyTypeForDrDrills")) { + this.autonomousDatabaseStandbyTypeForDrDrills( + model.getAutonomousDatabaseStandbyTypeForDrDrills()); + } + if (model.wasPropertyExplicitlySet("passwordVaultSecretId")) { + this.passwordVaultSecretId(model.getPasswordVaultSecretId()); + } return this; } } @@ -68,8 +130,59 @@ public Builder toBuilder() { } @Deprecated - public CreateDrProtectionGroupMemberAutonomousDatabaseDetails(String memberId) { + public CreateDrProtectionGroupMemberAutonomousDatabaseDetails( + String memberId, + AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills, + String passwordVaultSecretId) { super(memberId); + this.autonomousDatabaseStandbyTypeForDrDrills = autonomousDatabaseStandbyTypeForDrDrills; + this.passwordVaultSecretId = passwordVaultSecretId; + } + + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for DR + * Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseStandbyTypeForDrDrills") + private final AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills; + + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for DR + * Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + * + * @return the value + */ + public AutonomousDatabaseStandbyTypeForDrDrills getAutonomousDatabaseStandbyTypeForDrDrills() { + return autonomousDatabaseStandbyTypeForDrDrills; + } + + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password is + * required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordVaultSecretId") + private final String passwordVaultSecretId; + + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password is + * required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + * + * @return the value + */ + public String getPasswordVaultSecretId() { + return passwordVaultSecretId; } @Override @@ -87,6 +200,9 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateDrProtectionGroupMemberAutonomousDatabaseDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", autonomousDatabaseStandbyTypeForDrDrills=") + .append(String.valueOf(this.autonomousDatabaseStandbyTypeForDrDrills)); + sb.append(", passwordVaultSecretId=").append(String.valueOf(this.passwordVaultSecretId)); sb.append(")"); return sb.toString(); } @@ -102,13 +218,27 @@ public boolean equals(Object o) { CreateDrProtectionGroupMemberAutonomousDatabaseDetails other = (CreateDrProtectionGroupMemberAutonomousDatabaseDetails) o; - return super.equals(other); + return java.util.Objects.equals( + this.autonomousDatabaseStandbyTypeForDrDrills, + other.autonomousDatabaseStandbyTypeForDrDrills) + && java.util.Objects.equals(this.passwordVaultSecretId, other.passwordVaultSecretId) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousDatabaseStandbyTypeForDrDrills == null + ? 43 + : this.autonomousDatabaseStandbyTypeForDrDrills.hashCode()); + result = + (result * PRIME) + + (this.passwordVaultSecretId == null + ? 43 + : this.passwordVaultSecretId.hashCode()); return result; } } diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberDetails.java index 01bc58085aa..2e1a24f17d8 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberDetails.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberDetails.java @@ -25,6 +25,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateDrProtectionGroupMemberComputeInstanceMovableDetails.class, name = "COMPUTE_INSTANCE_MOVABLE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.class, + name = "AUTONOMOUS_CONTAINER_DATABASE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateDrProtectionGroupMemberComputeInstanceNonMovableDetails.class, name = "COMPUTE_INSTANCE_NON_MOVABLE"), @@ -46,6 +49,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateDrProtectionGroupMemberFileSystemDetails.class, name = "FILE_SYSTEM"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDrProtectionGroupMemberObjectStorageBucketDetails.class, + name = "OBJECT_STORAGE_BUCKET"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateDrProtectionGroupMemberLoadBalancerDetails.class, name = "LOAD_BALANCER") diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberObjectStorageBucketDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberObjectStorageBucketDetails.java new file mode 100644 index 00000000000..fd21f251712 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/CreateDrProtectionGroupMemberObjectStorageBucketDetails.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Create properties for a object storage bucket member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDrProtectionGroupMemberObjectStorageBucketDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "memberType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateDrProtectionGroupMemberObjectStorageBucketDetails + extends CreateDrProtectionGroupMemberDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private String memberId; + + public Builder memberId(String memberId) { + this.memberId = memberId; + this.__explicitlySet__.add("memberId"); + return this; + } + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private String namespaceName; + + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + * + * @param namespaceName the value to set + * @return this builder + */ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + this.__explicitlySet__.add("namespaceName"); + return this; + } + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + * + * @param bucketName the value to set + * @return this builder + */ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDrProtectionGroupMemberObjectStorageBucketDetails build() { + CreateDrProtectionGroupMemberObjectStorageBucketDetails model = + new CreateDrProtectionGroupMemberObjectStorageBucketDetails( + this.memberId, this.namespaceName, this.bucketName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDrProtectionGroupMemberObjectStorageBucketDetails model) { + if (model.wasPropertyExplicitlySet("memberId")) { + this.memberId(model.getMemberId()); + } + if (model.wasPropertyExplicitlySet("namespaceName")) { + this.namespaceName(model.getNamespaceName()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateDrProtectionGroupMemberObjectStorageBucketDetails( + String memberId, String namespaceName, String bucketName) { + super(memberId); + this.namespaceName = namespaceName; + this.bucketName = bucketName; + } + + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private final String namespaceName; + + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + * + * @return the value + */ + public String getNamespaceName() { + return namespaceName; + } + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + * + * @return the value + */ + public String getBucketName() { + return bucketName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDrProtectionGroupMemberObjectStorageBucketDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDrProtectionGroupMemberObjectStorageBucketDetails)) { + return false; + } + + CreateDrProtectionGroupMemberObjectStorageBucketDetails other = + (CreateDrProtectionGroupMemberObjectStorageBucketDetails) o; + return java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrPlanStepType.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrPlanStepType.java index a8ef40b0400..271928626e8 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrPlanStepType.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrPlanStepType.java @@ -17,6 +17,35 @@ public enum DrPlanStepType implements com.oracle.bmc.http.internal.BmcEnum { DatabaseFailoverPrecheck("DATABASE_FAILOVER_PRECHECK"), AutonomousDatabaseSwitchoverPrecheck("AUTONOMOUS_DATABASE_SWITCHOVER_PRECHECK"), AutonomousDatabaseFailoverPrecheck("AUTONOMOUS_DATABASE_FAILOVER_PRECHECK"), + AutonomousContainerDatabaseSwitchoverPrecheck( + "AUTONOMOUS_CONTAINER_DATABASE_SWITCHOVER_PRECHECK"), + AutonomousContainerDatabaseFailoverPrecheck("AUTONOMOUS_CONTAINER_DATABASE_FAILOVER_PRECHECK"), + AutonomousContainerDatabaseStartDrillConvertToSnapshotStandbyPrecheck( + "AUTONOMOUS_CONTAINER_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY_PRECHECK"), + AutonomousContainerDatabaseStopDrillConvertToPhysicalStandbyPrecheck( + "AUTONOMOUS_CONTAINER_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY_PRECHECK"), + AutonomousContainerDatabaseSwitchover("AUTONOMOUS_CONTAINER_DATABASE_SWITCHOVER"), + AutonomousContainerDatabaseFailover("AUTONOMOUS_CONTAINER_DATABASE_FAILOVER"), + AutonomousContainerDatabaseStartDrillConvertToSnapshotStandby( + "AUTONOMOUS_CONTAINER_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY"), + AutonomousContainerDatabaseStopDrillConvertToPhysicalStandby( + "AUTONOMOUS_CONTAINER_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY"), + AutonomousDatabaseStartDrillCreateCloneStandbyPrecheck( + "AUTONOMOUS_DATABASE_START_DRILL_CREATE_CLONE_STANDBY_PRECHECK"), + AutonomousDatabaseStopDrillDeleteCloneStandbyPrecheck( + "AUTONOMOUS_DATABASE_STOP_DRILL_DELETE_CLONE_STANDBY_PRECHECK"), + AutonomousDatabaseStartDrillConvertToSnapshotStandbyPrecheck( + "AUTONOMOUS_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY_PRECHECK"), + AutonomousDatabaseStopDrillConvertToPhysicalStandbyPrecheck( + "AUTONOMOUS_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY_PRECHECK"), + AutonomousDatabaseStartDrillCreateCloneStandby( + "AUTONOMOUS_DATABASE_START_DRILL_CREATE_CLONE_STANDBY"), + AutonomousDatabaseStopDrillDeleteCloneStandby( + "AUTONOMOUS_DATABASE_STOP_DRILL_DELETE_CLONE_STANDBY"), + AutonomousDatabaseStartDrillConvertToSnapshotStandby( + "AUTONOMOUS_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY"), + AutonomousDatabaseStopDrillConvertToPhysicalStandby( + "AUTONOMOUS_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY"), UserDefinedPrecheck("USER_DEFINED_PRECHECK"), ComputeInstanceLaunch("COMPUTE_INSTANCE_LAUNCH"), ComputeInstanceStop("COMPUTE_INSTANCE_STOP"), @@ -82,6 +111,22 @@ public enum DrPlanStepType implements com.oracle.bmc.http.internal.BmcEnum { ComputeCapacityAvailabilitySwitchoverPrecheck( "COMPUTE_CAPACITY_AVAILABILITY_SWITCHOVER_PRECHECK"), ComputeCapacityAvailabilityFailoverPrecheck("COMPUTE_CAPACITY_AVAILABILITY_FAILOVER_PRECHECK"), + ObjectStorageBucketSwitchoverDeleteReplicationPrimaryPrecheck( + "OBJECT_STORAGE_BUCKET_SWITCHOVER_DELETE_REPLICATION_PRIMARY_PRECHECK"), + ObjectStorageBucketSwitchoverSetupReverseReplicationStandbyPrecheck( + "OBJECT_STORAGE_BUCKET_SWITCHOVER_SETUP_REVERSE_REPLICATION_STANDBY_PRECHECK"), + ObjectStorageBucketFailoverDeleteReplicationStandbyPrecheck( + "OBJECT_STORAGE_BUCKET_FAILOVER_DELETE_REPLICATION_STANDBY_PRECHECK"), + ObjectStorageBucketFailoverSetupReverseReplicationStandbyPrecheck( + "OBJECT_STORAGE_BUCKET_FAILOVER_SETUP_REVERSE_REPLICATION_STANDBY_PRECHECK"), + ObjectStorageBucketSwitchoverDeleteReplicationPrimary( + "OBJECT_STORAGE_BUCKET_SWITCHOVER_DELETE_REPLICATION_PRIMARY"), + ObjectStorageBucketSwitchoverSetupReverseReplicationStandby( + "OBJECT_STORAGE_BUCKET_SWITCHOVER_SETUP_REVERSE_REPLICATION_STANDBY"), + ObjectStorageBucketFailoverDeleteReplicationStandby( + "OBJECT_STORAGE_BUCKET_FAILOVER_DELETE_REPLICATION_STANDBY"), + ObjectStorageBucketFailoverSetupReverseReplicationStandby( + "OBJECT_STORAGE_BUCKET_FAILOVER_SETUP_REVERSE_REPLICATION_STANDBY"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMember.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMember.java index 998ff26c57b..c91854ce06a 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMember.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMember.java @@ -28,6 +28,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DrProtectionGroupMemberNetworkLoadBalancer.class, name = "NETWORK_LOAD_BALANCER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DrProtectionGroupMemberObjectStorageBucket.class, + name = "OBJECT_STORAGE_BUCKET"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DrProtectionGroupMemberFileSystem.class, name = "FILE_SYSTEM"), @@ -46,6 +49,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DrProtectionGroupMemberComputeInstanceNonMovable.class, name = "COMPUTE_INSTANCE_NON_MOVABLE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DrProtectionGroupMemberAutonomousContainerDatabase.class, + name = "AUTONOMOUS_CONTAINER_DATABASE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = DrProtectionGroupMemberDatabase.class, name = "DATABASE") diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberAutonomousContainerDatabase.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberAutonomousContainerDatabase.java new file mode 100644 index 00000000000..b1f66ed5b6d --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberAutonomousContainerDatabase.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * The properties for an Autonomous Container Database member of a DR protection group.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DrProtectionGroupMemberAutonomousContainerDatabase.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "memberType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DrProtectionGroupMemberAutonomousContainerDatabase + extends DrProtectionGroupMember { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private String memberId; + + public Builder memberId(String memberId) { + this.memberId = memberId; + this.__explicitlySet__.add("memberId"); + return this; + } + /** + * The type of connection strings used to connect to an Autonomous Container Database + * snapshot standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStringType") + private AutonomousContainerDatabaseSnapshotStandbyConnectionStringType connectionStringType; + + /** + * The type of connection strings used to connect to an Autonomous Container Database + * snapshot standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + * + * @param connectionStringType the value to set + * @return this builder + */ + public Builder connectionStringType( + AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + connectionStringType) { + this.connectionStringType = connectionStringType; + this.__explicitlySet__.add("connectionStringType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DrProtectionGroupMemberAutonomousContainerDatabase build() { + DrProtectionGroupMemberAutonomousContainerDatabase model = + new DrProtectionGroupMemberAutonomousContainerDatabase( + this.memberId, this.connectionStringType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DrProtectionGroupMemberAutonomousContainerDatabase model) { + if (model.wasPropertyExplicitlySet("memberId")) { + this.memberId(model.getMemberId()); + } + if (model.wasPropertyExplicitlySet("connectionStringType")) { + this.connectionStringType(model.getConnectionStringType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DrProtectionGroupMemberAutonomousContainerDatabase( + String memberId, + AutonomousContainerDatabaseSnapshotStandbyConnectionStringType connectionStringType) { + super(memberId); + this.connectionStringType = connectionStringType; + } + + /** + * The type of connection strings used to connect to an Autonomous Container Database snapshot + * standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStringType") + private final AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + connectionStringType; + + /** + * The type of connection strings used to connect to an Autonomous Container Database snapshot + * standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + * + * @return the value + */ + public AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + getConnectionStringType() { + return connectionStringType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DrProtectionGroupMemberAutonomousContainerDatabase("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", connectionStringType=").append(String.valueOf(this.connectionStringType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DrProtectionGroupMemberAutonomousContainerDatabase)) { + return false; + } + + DrProtectionGroupMemberAutonomousContainerDatabase other = + (DrProtectionGroupMemberAutonomousContainerDatabase) o; + return java.util.Objects.equals(this.connectionStringType, other.connectionStringType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.connectionStringType == null + ? 43 + : this.connectionStringType.hashCode()); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberAutonomousDatabase.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberAutonomousDatabase.java index f02eb5f9be3..093c0c439be 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberAutonomousDatabase.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberAutonomousDatabase.java @@ -35,13 +35,68 @@ public Builder memberId(String memberId) { this.__explicitlySet__.add("memberId"); return this; } + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for + * DR Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseStandbyTypeForDrDrills") + private AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills; + + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for + * DR Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + * + * @param autonomousDatabaseStandbyTypeForDrDrills the value to set + * @return this builder + */ + public Builder autonomousDatabaseStandbyTypeForDrDrills( + AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills) { + this.autonomousDatabaseStandbyTypeForDrDrills = + autonomousDatabaseStandbyTypeForDrDrills; + this.__explicitlySet__.add("autonomousDatabaseStandbyTypeForDrDrills"); + return this; + } + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password + * is required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordVaultSecretId") + private String passwordVaultSecretId; + + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password + * is required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + * + * @param passwordVaultSecretId the value to set + * @return this builder + */ + public Builder passwordVaultSecretId(String passwordVaultSecretId) { + this.passwordVaultSecretId = passwordVaultSecretId; + this.__explicitlySet__.add("passwordVaultSecretId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DrProtectionGroupMemberAutonomousDatabase build() { DrProtectionGroupMemberAutonomousDatabase model = - new DrProtectionGroupMemberAutonomousDatabase(this.memberId); + new DrProtectionGroupMemberAutonomousDatabase( + this.memberId, + this.autonomousDatabaseStandbyTypeForDrDrills, + this.passwordVaultSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -53,6 +108,13 @@ public Builder copy(DrProtectionGroupMemberAutonomousDatabase model) { if (model.wasPropertyExplicitlySet("memberId")) { this.memberId(model.getMemberId()); } + if (model.wasPropertyExplicitlySet("autonomousDatabaseStandbyTypeForDrDrills")) { + this.autonomousDatabaseStandbyTypeForDrDrills( + model.getAutonomousDatabaseStandbyTypeForDrDrills()); + } + if (model.wasPropertyExplicitlySet("passwordVaultSecretId")) { + this.passwordVaultSecretId(model.getPasswordVaultSecretId()); + } return this; } } @@ -67,8 +129,59 @@ public Builder toBuilder() { } @Deprecated - public DrProtectionGroupMemberAutonomousDatabase(String memberId) { + public DrProtectionGroupMemberAutonomousDatabase( + String memberId, + AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills, + String passwordVaultSecretId) { super(memberId); + this.autonomousDatabaseStandbyTypeForDrDrills = autonomousDatabaseStandbyTypeForDrDrills; + this.passwordVaultSecretId = passwordVaultSecretId; + } + + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for DR + * Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseStandbyTypeForDrDrills") + private final AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills; + + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for DR + * Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + * + * @return the value + */ + public AutonomousDatabaseStandbyTypeForDrDrills getAutonomousDatabaseStandbyTypeForDrDrills() { + return autonomousDatabaseStandbyTypeForDrDrills; + } + + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password is + * required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordVaultSecretId") + private final String passwordVaultSecretId; + + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password is + * required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + * + * @return the value + */ + public String getPasswordVaultSecretId() { + return passwordVaultSecretId; } @Override @@ -86,6 +199,9 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("DrProtectionGroupMemberAutonomousDatabase("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", autonomousDatabaseStandbyTypeForDrDrills=") + .append(String.valueOf(this.autonomousDatabaseStandbyTypeForDrDrills)); + sb.append(", passwordVaultSecretId=").append(String.valueOf(this.passwordVaultSecretId)); sb.append(")"); return sb.toString(); } @@ -101,13 +217,27 @@ public boolean equals(Object o) { DrProtectionGroupMemberAutonomousDatabase other = (DrProtectionGroupMemberAutonomousDatabase) o; - return super.equals(other); + return java.util.Objects.equals( + this.autonomousDatabaseStandbyTypeForDrDrills, + other.autonomousDatabaseStandbyTypeForDrDrills) + && java.util.Objects.equals(this.passwordVaultSecretId, other.passwordVaultSecretId) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousDatabaseStandbyTypeForDrDrills == null + ? 43 + : this.autonomousDatabaseStandbyTypeForDrDrills.hashCode()); + result = + (result * PRIME) + + (this.passwordVaultSecretId == null + ? 43 + : this.passwordVaultSecretId.hashCode()); return result; } } diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberObjectStorageBucket.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberObjectStorageBucket.java new file mode 100644 index 00000000000..c2012273218 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberObjectStorageBucket.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * The properties for a object storage bucket member of a DR protection group.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DrProtectionGroupMemberObjectStorageBucket.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "memberType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DrProtectionGroupMemberObjectStorageBucket extends DrProtectionGroupMember { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private String memberId; + + public Builder memberId(String memberId) { + this.memberId = memberId; + this.__explicitlySet__.add("memberId"); + return this; + } + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private String namespaceName; + + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + * + * @param namespaceName the value to set + * @return this builder + */ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + this.__explicitlySet__.add("namespaceName"); + return this; + } + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + * + * @param bucketName the value to set + * @return this builder + */ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DrProtectionGroupMemberObjectStorageBucket build() { + DrProtectionGroupMemberObjectStorageBucket model = + new DrProtectionGroupMemberObjectStorageBucket( + this.memberId, this.namespaceName, this.bucketName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DrProtectionGroupMemberObjectStorageBucket model) { + if (model.wasPropertyExplicitlySet("memberId")) { + this.memberId(model.getMemberId()); + } + if (model.wasPropertyExplicitlySet("namespaceName")) { + this.namespaceName(model.getNamespaceName()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DrProtectionGroupMemberObjectStorageBucket( + String memberId, String namespaceName, String bucketName) { + super(memberId); + this.namespaceName = namespaceName; + this.bucketName = bucketName; + } + + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private final String namespaceName; + + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + * + * @return the value + */ + public String getNamespaceName() { + return namespaceName; + } + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + * + * @return the value + */ + public String getBucketName() { + return bucketName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DrProtectionGroupMemberObjectStorageBucket("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DrProtectionGroupMemberObjectStorageBucket)) { + return false; + } + + DrProtectionGroupMemberObjectStorageBucket other = + (DrProtectionGroupMemberObjectStorageBucket) o; + return java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberType.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberType.java index 9f9d19f4d1f..bfeedb661f3 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberType.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/DrProtectionGroupMemberType.java @@ -11,8 +11,9 @@ * COMPUTE_INSTANCE_NON_MOVABLE - A compute instance that does not move across regions or ADs during * DR. - VOLUME_GROUP - A volume group. - DATABASE - An Oracle Database instance from Base Database * service, or Exadata Database service. - AUTONOMOUS_DATABASE - An Oracle Autonomous Database - * Serverless. - LOAD_BALANCER - A load balancer. - NETWORK_LOAD_BALANCER - A network load balancer. - * - FILE_SYSTEM - A file system. + * Serverless. - AUTONOMOUS_CONTAINER_DATABASE - An Oracle Autonomous Container Database. - + * LOAD_BALANCER - A load balancer. - NETWORK_LOAD_BALANCER - A network load balancer. - FILE_SYSTEM + * - A file system. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") public enum DrProtectionGroupMemberType implements com.oracle.bmc.http.internal.BmcEnum { @@ -22,9 +23,11 @@ public enum DrProtectionGroupMemberType implements com.oracle.bmc.http.internal. VolumeGroup("VOLUME_GROUP"), Database("DATABASE"), AutonomousDatabase("AUTONOMOUS_DATABASE"), + AutonomousContainerDatabase("AUTONOMOUS_CONTAINER_DATABASE"), LoadBalancer("LOAD_BALANCER"), NetworkLoadBalancer("NETWORK_LOAD_BALANCER"), FileSystem("FILE_SYSTEM"), + ObjectStorageBucket("OBJECT_STORAGE_BUCKET"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.java new file mode 100644 index 00000000000..2946255fcf9 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Update properties for an Autonomous Container Database member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "memberType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails + extends UpdateDrProtectionGroupMemberDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private String memberId; + + public Builder memberId(String memberId) { + this.memberId = memberId; + this.__explicitlySet__.add("memberId"); + return this; + } + /** + * The type of connection strings used to connect to an Autonomous Container Database + * snapshot standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStringType") + private AutonomousContainerDatabaseSnapshotStandbyConnectionStringType connectionStringType; + + /** + * The type of connection strings used to connect to an Autonomous Container Database + * snapshot standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + * + * @param connectionStringType the value to set + * @return this builder + */ + public Builder connectionStringType( + AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + connectionStringType) { + this.connectionStringType = connectionStringType; + this.__explicitlySet__.add("connectionStringType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails build() { + UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails model = + new UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails( + this.memberId, this.connectionStringType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("memberId")) { + this.memberId(model.getMemberId()); + } + if (model.wasPropertyExplicitlySet("connectionStringType")) { + this.connectionStringType(model.getConnectionStringType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails( + String memberId, + AutonomousContainerDatabaseSnapshotStandbyConnectionStringType connectionStringType) { + super(memberId); + this.connectionStringType = connectionStringType; + } + + /** + * The type of connection strings used to connect to an Autonomous Container Database snapshot + * standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStringType") + private final AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + connectionStringType; + + /** + * The type of connection strings used to connect to an Autonomous Container Database snapshot + * standby created during a DR Drill operation. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for + * information about these service types. + * + * @return the value + */ + public AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + getConnectionStringType() { + return connectionStringType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", connectionStringType=").append(String.valueOf(this.connectionStringType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails)) { + return false; + } + + UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails other = + (UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails) o; + return java.util.Objects.equals(this.connectionStringType, other.connectionStringType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.connectionStringType == null + ? 43 + : this.connectionStringType.hashCode()); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberAutonomousDatabaseDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberAutonomousDatabaseDetails.java index 98652284ba7..d89b831cd69 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberAutonomousDatabaseDetails.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberAutonomousDatabaseDetails.java @@ -36,13 +36,68 @@ public Builder memberId(String memberId) { this.__explicitlySet__.add("memberId"); return this; } + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for + * DR Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseStandbyTypeForDrDrills") + private AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills; + + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for + * DR Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + * + * @param autonomousDatabaseStandbyTypeForDrDrills the value to set + * @return this builder + */ + public Builder autonomousDatabaseStandbyTypeForDrDrills( + AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills) { + this.autonomousDatabaseStandbyTypeForDrDrills = + autonomousDatabaseStandbyTypeForDrDrills; + this.__explicitlySet__.add("autonomousDatabaseStandbyTypeForDrDrills"); + return this; + } + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password + * is required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordVaultSecretId") + private String passwordVaultSecretId; + + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password + * is required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + * + * @param passwordVaultSecretId the value to set + * @return this builder + */ + public Builder passwordVaultSecretId(String passwordVaultSecretId) { + this.passwordVaultSecretId = passwordVaultSecretId; + this.__explicitlySet__.add("passwordVaultSecretId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateDrProtectionGroupMemberAutonomousDatabaseDetails build() { UpdateDrProtectionGroupMemberAutonomousDatabaseDetails model = - new UpdateDrProtectionGroupMemberAutonomousDatabaseDetails(this.memberId); + new UpdateDrProtectionGroupMemberAutonomousDatabaseDetails( + this.memberId, + this.autonomousDatabaseStandbyTypeForDrDrills, + this.passwordVaultSecretId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -54,6 +109,13 @@ public Builder copy(UpdateDrProtectionGroupMemberAutonomousDatabaseDetails model if (model.wasPropertyExplicitlySet("memberId")) { this.memberId(model.getMemberId()); } + if (model.wasPropertyExplicitlySet("autonomousDatabaseStandbyTypeForDrDrills")) { + this.autonomousDatabaseStandbyTypeForDrDrills( + model.getAutonomousDatabaseStandbyTypeForDrDrills()); + } + if (model.wasPropertyExplicitlySet("passwordVaultSecretId")) { + this.passwordVaultSecretId(model.getPasswordVaultSecretId()); + } return this; } } @@ -68,8 +130,59 @@ public Builder toBuilder() { } @Deprecated - public UpdateDrProtectionGroupMemberAutonomousDatabaseDetails(String memberId) { + public UpdateDrProtectionGroupMemberAutonomousDatabaseDetails( + String memberId, + AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills, + String passwordVaultSecretId) { super(memberId); + this.autonomousDatabaseStandbyTypeForDrDrills = autonomousDatabaseStandbyTypeForDrDrills; + this.passwordVaultSecretId = passwordVaultSecretId; + } + + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for DR + * Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + */ + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseStandbyTypeForDrDrills") + private final AutonomousDatabaseStandbyTypeForDrDrills autonomousDatabaseStandbyTypeForDrDrills; + + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for DR + * Drills. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html + * for information about these clone types. See + * https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html + * for information about snapshot standby. + * + * @return the value + */ + public AutonomousDatabaseStandbyTypeForDrDrills getAutonomousDatabaseStandbyTypeForDrDrills() { + return autonomousDatabaseStandbyTypeForDrDrills; + } + + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password is + * required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + */ + @com.fasterxml.jackson.annotation.JsonProperty("passwordVaultSecretId") + private final String passwordVaultSecretId; + + /** + * The OCID of the vault secret where the database SYSDBA password is stored. This password is + * required and used for performing database DR Drill operations when using full clone. + * + *

Example: {@code ocid1.vaultsecret.oc1..uniqueID} + * + * @return the value + */ + public String getPasswordVaultSecretId() { + return passwordVaultSecretId; } @Override @@ -87,6 +200,9 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateDrProtectionGroupMemberAutonomousDatabaseDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", autonomousDatabaseStandbyTypeForDrDrills=") + .append(String.valueOf(this.autonomousDatabaseStandbyTypeForDrDrills)); + sb.append(", passwordVaultSecretId=").append(String.valueOf(this.passwordVaultSecretId)); sb.append(")"); return sb.toString(); } @@ -102,13 +218,27 @@ public boolean equals(Object o) { UpdateDrProtectionGroupMemberAutonomousDatabaseDetails other = (UpdateDrProtectionGroupMemberAutonomousDatabaseDetails) o; - return super.equals(other); + return java.util.Objects.equals( + this.autonomousDatabaseStandbyTypeForDrDrills, + other.autonomousDatabaseStandbyTypeForDrDrills) + && java.util.Objects.equals(this.passwordVaultSecretId, other.passwordVaultSecretId) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousDatabaseStandbyTypeForDrDrills == null + ? 43 + : this.autonomousDatabaseStandbyTypeForDrDrills.hashCode()); + result = + (result * PRIME) + + (this.passwordVaultSecretId == null + ? 43 + : this.passwordVaultSecretId.hashCode()); return result; } } diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberDetails.java index fd8e8279761..443daa5aedc 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberDetails.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberDetails.java @@ -40,9 +40,15 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateDrProtectionGroupMemberComputeInstanceNonMovableDetails.class, name = "COMPUTE_INSTANCE_NON_MOVABLE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.class, + name = "AUTONOMOUS_CONTAINER_DATABASE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateDrProtectionGroupMemberLoadBalancerDetails.class, name = "LOAD_BALANCER"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateDrProtectionGroupMemberObjectStorageBucketDetails.class, + name = "OBJECT_STORAGE_BUCKET"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateDrProtectionGroupMemberComputeInstanceMovableDetails.class, name = "COMPUTE_INSTANCE_MOVABLE"), diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberObjectStorageBucketDetails.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberObjectStorageBucketDetails.java new file mode 100644 index 00000000000..41e800b96e5 --- /dev/null +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/model/UpdateDrProtectionGroupMemberObjectStorageBucketDetails.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.disasterrecovery.model; + +/** + * Update properties for a object storage bucket member.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDrProtectionGroupMemberObjectStorageBucketDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "memberType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDrProtectionGroupMemberObjectStorageBucketDetails + extends UpdateDrProtectionGroupMemberDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("memberId") + private String memberId; + + public Builder memberId(String memberId) { + this.memberId = memberId; + this.__explicitlySet__.add("memberId"); + return this; + } + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private String namespaceName; + + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + * + * @param namespaceName the value to set + * @return this builder + */ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + this.__explicitlySet__.add("namespaceName"); + return this; + } + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + * + * @param bucketName the value to set + * @return this builder + */ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDrProtectionGroupMemberObjectStorageBucketDetails build() { + UpdateDrProtectionGroupMemberObjectStorageBucketDetails model = + new UpdateDrProtectionGroupMemberObjectStorageBucketDetails( + this.memberId, this.namespaceName, this.bucketName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDrProtectionGroupMemberObjectStorageBucketDetails model) { + if (model.wasPropertyExplicitlySet("memberId")) { + this.memberId(model.getMemberId()); + } + if (model.wasPropertyExplicitlySet("namespaceName")) { + this.namespaceName(model.getNamespaceName()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateDrProtectionGroupMemberObjectStorageBucketDetails( + String memberId, String namespaceName, String bucketName) { + super(memberId); + this.namespaceName = namespaceName; + this.bucketName = bucketName; + } + + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private final String namespaceName; + + /** + * The namespace in object storage (Note - this is usually the tenancy name). + * + *

Example: {@code myocitenancy} + * + * @return the value + */ + public String getNamespaceName() { + return namespaceName; + } + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * The bucket name inside the object storage namespace. + * + *

Example: {@code bucket_name} + * + * @return the value + */ + public String getBucketName() { + return bucketName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDrProtectionGroupMemberObjectStorageBucketDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDrProtectionGroupMemberObjectStorageBucketDetails)) { + return false; + } + + UpdateDrProtectionGroupMemberObjectStorageBucketDetails other = + (UpdateDrProtectionGroupMemberObjectStorageBucketDetails) o; + return java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + return result; + } +} diff --git a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/requests/ListDrPlanExecutionsRequest.java b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/requests/ListDrPlanExecutionsRequest.java index cc8e2e9eac4..8e16159d290 100644 --- a/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/requests/ListDrPlanExecutionsRequest.java +++ b/bmc-disasterrecovery/src/main/java/com/oracle/bmc/disasterrecovery/requests/ListDrPlanExecutionsRequest.java @@ -51,13 +51,6 @@ public com.oracle.bmc.disasterrecovery.model.DrPlanExecutionLifecycleState getLi public String getDrPlanExecutionId() { return drPlanExecutionId; } - /** The DR plan execution type. */ - private com.oracle.bmc.disasterrecovery.model.DrPlanExecutionType drPlanExecutionType; - - /** The DR plan execution type. */ - public com.oracle.bmc.disasterrecovery.model.DrPlanExecutionType getDrPlanExecutionType() { - return drPlanExecutionType; - } /** * A filter to return only resources that match the given display name. * @@ -252,22 +245,6 @@ public Builder drPlanExecutionId(String drPlanExecutionId) { return this; } - /** The DR plan execution type. */ - private com.oracle.bmc.disasterrecovery.model.DrPlanExecutionType drPlanExecutionType = - null; - - /** - * The DR plan execution type. - * - * @param drPlanExecutionType the value to set - * @return this builder instance - */ - public Builder drPlanExecutionType( - com.oracle.bmc.disasterrecovery.model.DrPlanExecutionType drPlanExecutionType) { - this.drPlanExecutionType = drPlanExecutionType; - return this; - } - /** * A filter to return only resources that match the given display name. * @@ -425,7 +402,6 @@ public Builder copy(ListDrPlanExecutionsRequest o) { drProtectionGroupId(o.getDrProtectionGroupId()); lifecycleState(o.getLifecycleState()); drPlanExecutionId(o.getDrPlanExecutionId()); - drPlanExecutionType(o.getDrPlanExecutionType()); displayName(o.getDisplayName()); limit(o.getLimit()); page(o.getPage()); @@ -469,7 +445,6 @@ public ListDrPlanExecutionsRequest buildWithoutInvocationCallback() { request.drProtectionGroupId = drProtectionGroupId; request.lifecycleState = lifecycleState; request.drPlanExecutionId = drPlanExecutionId; - request.drPlanExecutionType = drPlanExecutionType; request.displayName = displayName; request.limit = limit; request.page = page; @@ -478,8 +453,7 @@ public ListDrPlanExecutionsRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; return request; // new ListDrPlanExecutionsRequest(drProtectionGroupId, lifecycleState, - // drPlanExecutionId, drPlanExecutionType, displayName, limit, page, sortOrder, sortBy, - // opcRequestId); + // drPlanExecutionId, displayName, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -493,7 +467,6 @@ public Builder toBuilder() { .drProtectionGroupId(drProtectionGroupId) .lifecycleState(lifecycleState) .drPlanExecutionId(drPlanExecutionId) - .drPlanExecutionType(drPlanExecutionType) .displayName(displayName) .limit(limit) .page(page) @@ -519,7 +492,6 @@ public String toString() { sb.append(",drProtectionGroupId=").append(String.valueOf(this.drProtectionGroupId)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",drPlanExecutionId=").append(String.valueOf(this.drPlanExecutionId)); - sb.append(",drPlanExecutionType=").append(String.valueOf(this.drPlanExecutionType)); sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); @@ -544,7 +516,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.drProtectionGroupId, other.drProtectionGroupId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.drPlanExecutionId, other.drPlanExecutionId) - && java.util.Objects.equals(this.drPlanExecutionType, other.drPlanExecutionType) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) @@ -568,11 +539,6 @@ public int hashCode() { result = (result * PRIME) + (this.drPlanExecutionId == null ? 43 : this.drPlanExecutionId.hashCode()); - result = - (result * PRIME) - + (this.drPlanExecutionType == null - ? 43 - : this.drPlanExecutionType.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); diff --git a/bmc-disasterrecovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-disasterrecovery/reflect-config.json b/bmc-disasterrecovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-disasterrecovery/reflect-config.json index a020f22e97e..f68d736317a 100644 --- a/bmc-disasterrecovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-disasterrecovery/reflect-config.json +++ b/bmc-disasterrecovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-disasterrecovery/reflect-config.json @@ -19,6 +19,18 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.AutonomousContainerDatabaseSnapshotStandbyConnectionStringType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.AutonomousDatabaseStandbyTypeForDrDrills", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.BlockVolumeAttachmentDetails", @@ -285,6 +297,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.CreateDrProtectionGroupMemberAutonomousDatabaseDetails", @@ -404,6 +430,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateDrProtectionGroupMemberObjectStorageBucketDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.CreateDrProtectionGroupMemberObjectStorageBucketDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.CreateDrProtectionGroupMemberVolumeGroupDetails", @@ -780,6 +820,20 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.DrProtectionGroupMemberAutonomousContainerDatabase", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.DrProtectionGroupMemberAutonomousContainerDatabase$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.DrProtectionGroupMemberAutonomousDatabase", @@ -892,6 +946,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.DrProtectionGroupMemberObjectStorageBucket", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.DrProtectionGroupMemberObjectStorageBucket$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.DrProtectionGroupMemberType", @@ -1607,6 +1675,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.UpdateDrProtectionGroupMemberAutonomousDatabaseDetails", @@ -1726,6 +1808,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateDrProtectionGroupMemberObjectStorageBucketDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.disasterrecovery.model.UpdateDrProtectionGroupMemberObjectStorageBucketDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.disasterrecovery.model.UpdateDrProtectionGroupMemberVolumeGroupDetails", diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index a187a78fdd4..2fff1519cba 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.46.1 + 3.47.0 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index 4b523aa0a8b..a7901617d0f 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index c6132bac4c7..d56126b60fe 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index 9858fec5257..ded3bd12dc1 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index c53f8ddbdda..1eb645b626f 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 130056ea020..20d9a3c602a 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.46.1 + 3.47.0 com.fasterxml.jackson.core @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.46.1 + 3.47.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 406319ca807..b70d5f45906 100644 --- a/bmc-enforcer-rules/pom.xml +++ b/bmc-enforcer-rules/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 38a19b7d81d..96947bdf9f2 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 62529c7ef96..437a4434b0f 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.46.1 + 3.47.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.46.1 + 3.47.0 pom import @@ -710,5 +710,9 @@ org.slf4j slf4j-simple + + com.oracle.oci.sdk + oci-java-sdk-fleetappsmanagement + \ No newline at end of file diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index bade4a86744..4e63c137558 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml new file mode 100644 index 00000000000..d8ef5d321ad --- /dev/null +++ b/bmc-fleetappsmanagement/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 3.47.0 + ../pom.xml + + oci-java-sdk-fleetappsmanagement + Oracle Cloud Infrastructure SDK - Fleet Apps Management + This project contains the SDK used for Oracle Cloud Infrastructure Fleet Apps Management + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 3.47.0 + + + \ No newline at end of file diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagement.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagement.java new file mode 100644 index 00000000000..2e3e568b7c7 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagement.java @@ -0,0 +1,641 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Fleet Application Management Service API. Use this API to for all FAMS related activities. To + * manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * + *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by + * default if no circuit breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public interface FleetAppsManagement extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this Region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Check if FAMS tags can be added for the resources + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * CheckResourceTagging API. + */ + CheckResourceTaggingResponse checkResourceTagging(CheckResourceTaggingRequest request); + + /** + * Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by + * FAMS + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ConfirmTargets API. + */ + ConfirmTargetsResponse confirmTargets(ConfirmTargetsRequest request); + + /** + * Creates a new fleet instance that includes fleet resources and properties. For more + * information, please see the documentation. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use CreateFleet API. + */ + CreateFleetResponse createFleet(CreateFleetRequest request); + + /** + * Creates a new FleetCredential. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * CreateFleetCredential API. + */ + CreateFleetCredentialResponse createFleetCredential(CreateFleetCredentialRequest request); + + /** + * Creates a new FleetProperty. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use CreateFleetProperty + * API. + */ + CreateFleetPropertyResponse createFleetProperty(CreateFleetPropertyRequest request); + + /** + * Creates a new FleetResource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use CreateFleetResource + * API. + */ + CreateFleetResourceResponse createFleetResource(CreateFleetResourceRequest request); + + /** + * Deletes a Fleet resource by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use DeleteFleet API. + */ + DeleteFleetResponse deleteFleet(DeleteFleetRequest request); + + /** + * Deletes a FleetCredential resource by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * DeleteFleetCredential API. + */ + DeleteFleetCredentialResponse deleteFleetCredential(DeleteFleetCredentialRequest request); + + /** + * Deletes a FleetProperty resource by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use DeleteFleetProperty + * API. + */ + DeleteFleetPropertyResponse deleteFleetProperty(DeleteFleetPropertyRequest request); + + /** + * Deletes a FleetResource resource by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use DeleteFleetResource + * API. + */ + DeleteFleetResourceResponse deleteFleetResource(DeleteFleetResourceRequest request); + + /** + * Request to generate compliance report for a Fleet + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * GenerateComplianceReport API. + */ + GenerateComplianceReportResponse generateComplianceReport( + GenerateComplianceReportRequest request); + + /** + * Retrieve compiane report for a Fleet + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetComplianceReport + * API. + */ + GetComplianceReportResponse getComplianceReport(GetComplianceReportRequest request); + + /** + * Gets a Fleet by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetFleet API. + */ + GetFleetResponse getFleet(GetFleetRequest request); + + /** + * Gets a FleetCredential by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetFleetCredential + * API. + */ + GetFleetCredentialResponse getFleetCredential(GetFleetCredentialRequest request); + + /** + * Gets a FleetProperty by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetFleetProperty + * API. + */ + GetFleetPropertyResponse getFleetProperty(GetFleetPropertyRequest request); + + /** + * Gets a FleetResource by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetFleetResource + * API. + */ + GetFleetResourceResponse getFleetResource(GetFleetResourceRequest request); + + /** + * Gets details of the work request with the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetWorkRequest API. + */ + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + + /** + * Return a list of AnnouncementSummary items + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListAnnouncements + * API. + */ + ListAnnouncementsResponse listAnnouncements(ListAnnouncementsRequest request); + + /** + * Returns a list of FleetCredentials. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListFleetCredentials API. + */ + ListFleetCredentialsResponse listFleetCredentials(ListFleetCredentialsRequest request); + + /** + * Returns a list of FleetProducts. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListFleetProducts + * API. + */ + ListFleetProductsResponse listFleetProducts(ListFleetProductsRequest request); + + /** + * Returns a list of FleetProperties. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListFleetProperties + * API. + */ + ListFleetPropertiesResponse listFleetProperties(ListFleetPropertiesRequest request); + + /** + * Returns a list of FleetResources. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListFleetResources + * API. + */ + ListFleetResourcesResponse listFleetResources(ListFleetResourcesRequest request); + + /** + * Returns a list of FleetTargets. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListFleetTargets + * API. + */ + ListFleetTargetsResponse listFleetTargets(ListFleetTargetsRequest request); + + /** + * Returns a list of Fleets in the specified Tenancy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListFleets API. + */ + ListFleetsResponse listFleets(ListFleetsRequest request); + + /** + * Returns a list of InventoryResources. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListInventoryResources API. + */ + ListInventoryResourcesResponse listInventoryResources(ListInventoryResourcesRequest request); + + /** + * Returns a list of FleetTargets. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListTargets API. + */ + ListTargetsResponse listTargets(ListTargetsRequest request); + + /** + * Returns a (paginated) list of errors for the work request with the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListWorkRequestErrors API. + */ + ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); + + /** + * Returns a (paginated) list of logs for the work request with the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListWorkRequestLogs + * API. + */ + ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListWorkRequests + * API. + */ + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + + /** + * Request validation for resources with in a fleet + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * RequestResourceValidation API. + */ + RequestResourceValidationResponse requestResourceValidation( + RequestResourceValidationRequest request); + + /** + * Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by + * FAMS + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * RequestTargetDiscovery API. + */ + RequestTargetDiscoveryResponse requestTargetDiscovery(RequestTargetDiscoveryRequest request); + + /** + * Updates the Fleet + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use UpdateFleet API. + */ + UpdateFleetResponse updateFleet(UpdateFleetRequest request); + + /** + * Updates the FleetCredential + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * UpdateFleetCredential API. + */ + UpdateFleetCredentialResponse updateFleetCredential(UpdateFleetCredentialRequest request); + + /** + * Updates the FleetProperty + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use UpdateFleetProperty + * API. + */ + UpdateFleetPropertyResponse updateFleetProperty(UpdateFleetPropertyRequest request); + + /** + * Updates the FleetResource + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use UpdateFleetResource + * API. + */ + UpdateFleetResourceResponse updateFleetResource(UpdateFleetResourceRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + FleetAppsManagementWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * interface so that service responses, or resources/records, can be iterated through without + * having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + FleetAppsManagementPaginators getPaginators(); +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdmin.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdmin.java new file mode 100644 index 00000000000..ae44c092229 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdmin.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Fleet Application Management Service API. Use this API to for all FAMS related activities. To + * manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * + *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by + * default if no circuit breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public interface FleetAppsManagementAdmin extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this Region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Onboard a tenant to Fleet Application Management Service + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use CreateOnboarding + * API. + */ + CreateOnboardingResponse createOnboarding(CreateOnboardingRequest request); + + /** + * Creates a new Property. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use CreateProperty API. + */ + CreatePropertyResponse createProperty(CreatePropertyRequest request); + + /** + * Deletes a Property resource by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use DeleteProperty API. + */ + DeletePropertyResponse deleteProperty(DeletePropertyRequest request); + + /** + * Gets a Property by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetProperty API. + */ + GetPropertyResponse getProperty(GetPropertyRequest request); + + /** + * Returns a list of onboarding policy information for FAMS. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListOnboardingPolicies API. + */ + ListOnboardingPoliciesResponse listOnboardingPolicies(ListOnboardingPoliciesRequest request); + + /** + * Returns a list of onboarding information for the Tenancy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListOnboardings + * API. + */ + ListOnboardingsResponse listOnboardings(ListOnboardingsRequest request); + + /** + * Returns a list of Properties for Tenancy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListProperties API. + */ + ListPropertiesResponse listProperties(ListPropertiesRequest request); + + /** + * Updates the Property + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use UpdateProperty API. + */ + UpdatePropertyResponse updateProperty(UpdatePropertyRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + FleetAppsManagementAdminWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * interface so that service responses, or resources/records, can be iterated through without + * having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + FleetAppsManagementAdminPaginators getPaginators(); +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminAsync.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminAsync.java new file mode 100644 index 00000000000..c51ae68479e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminAsync.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Fleet Application Management Service API. Use this API to for all FAMS related activities. To + * manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public interface FleetAppsManagementAdminAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Onboard a tenant to Fleet Application Management Service + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createOnboarding( + CreateOnboardingRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new Property. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createProperty( + CreatePropertyRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a Property resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteProperty( + DeletePropertyRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a Property by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getProperty( + GetPropertyRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Returns a list of onboarding policy information for FAMS. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listOnboardingPolicies( + ListOnboardingPoliciesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListOnboardingPoliciesRequest, ListOnboardingPoliciesResponse> + handler); + + /** + * Returns a list of onboarding information for the Tenancy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listOnboardings( + ListOnboardingsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of Properties for Tenancy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listProperties( + ListPropertiesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates the Property + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateProperty( + UpdatePropertyRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminAsyncClient.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminAsyncClient.java new file mode 100644 index 00000000000..71621f4618c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminAsyncClient.java @@ -0,0 +1,502 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for FleetAppsManagementAdmin service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementAdminAsyncClient + extends com.oracle.bmc.http.internal.BaseAsyncClient + implements FleetAppsManagementAdminAsync { + /** Service instance for FleetAppsManagementAdmin. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("FLEETAPPSMANAGEMENTADMIN") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://fams.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FleetAppsManagementAdminAsyncClient.class); + + FleetAppsManagementAdminAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, FleetAppsManagementAdminAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "fleetappsmanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public FleetAppsManagementAdminAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new FleetAppsManagementAdminAsyncClient(this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future createOnboarding( + CreateOnboardingRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateOnboardingRequest, CreateOnboardingResponse> + handler) { + Objects.requireNonNull( + request.getCreateOnboardingDetails(), "createOnboardingDetails is required"); + + return clientCall(request, CreateOnboardingResponse::builder) + .logger(LOG, "createOnboarding") + .serviceDetails("FleetAppsManagementAdmin", "CreateOnboarding", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOnboardingRequest::builder) + .basePath("/20230831") + .appendPathParam("Onboardings") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Onboarding.class, + CreateOnboardingResponse.Builder::onboarding) + .handleResponseHeaderString("location", CreateOnboardingResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateOnboardingResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateOnboardingResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", CreateOnboardingResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateOnboardingResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createProperty( + CreatePropertyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreatePropertyRequest, CreatePropertyResponse> + handler) { + Objects.requireNonNull( + request.getCreatePropertyDetails(), "createPropertyDetails is required"); + + return clientCall(request, CreatePropertyResponse::builder) + .logger(LOG, "createProperty") + .serviceDetails("FleetAppsManagementAdmin", "CreateProperty", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreatePropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("properties") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Property.class, + CreatePropertyResponse.Builder::property) + .handleResponseHeaderString("etag", CreatePropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreatePropertyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteProperty( + DeletePropertyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeletePropertyRequest, DeletePropertyResponse> + handler) { + + Validate.notBlank(request.getPropertyId(), "propertyId must not be blank"); + + return clientCall(request, DeletePropertyResponse::builder) + .logger(LOG, "deleteProperty") + .serviceDetails("FleetAppsManagementAdmin", "DeleteProperty", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeletePropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("properties") + .appendPathParam(request.getPropertyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeletePropertyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getProperty( + GetPropertyRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getPropertyId(), "propertyId must not be blank"); + + return clientCall(request, GetPropertyResponse::builder) + .logger(LOG, "getProperty") + .serviceDetails("FleetAppsManagementAdmin", "GetProperty", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetPropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("properties") + .appendPathParam(request.getPropertyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Property.class, + GetPropertyResponse.Builder::property) + .handleResponseHeaderString("etag", GetPropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetPropertyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listOnboardingPolicies( + ListOnboardingPoliciesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOnboardingPoliciesRequest, ListOnboardingPoliciesResponse> + handler) { + + return clientCall(request, ListOnboardingPoliciesResponse::builder) + .logger(LOG, "listOnboardingPolicies") + .serviceDetails("FleetAppsManagementAdmin", "ListOnboardingPolicies", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOnboardingPoliciesRequest::builder) + .basePath("/20230831") + .appendPathParam("OnboardingPolicies") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicyCollection.class, + ListOnboardingPoliciesResponse.Builder::onboardingPolicyCollection) + .handleResponseHeaderString( + "opc-request-id", ListOnboardingPoliciesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOnboardingPoliciesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listOnboardings( + ListOnboardingsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListOnboardingsRequest, ListOnboardingsResponse> + handler) { + + return clientCall(request, ListOnboardingsResponse::builder) + .logger(LOG, "listOnboardings") + .serviceDetails("FleetAppsManagementAdmin", "ListOnboardings", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOnboardingsRequest::builder) + .basePath("/20230831") + .appendPathParam("Onboardings") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.OnboardingCollection.class, + ListOnboardingsResponse.Builder::onboardingCollection) + .handleResponseHeaderString( + "opc-request-id", ListOnboardingsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOnboardingsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listProperties( + ListPropertiesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListPropertiesRequest, ListPropertiesResponse> + handler) { + + return clientCall(request, ListPropertiesResponse::builder) + .logger(LOG, "listProperties") + .serviceDetails("FleetAppsManagementAdmin", "ListProperties", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPropertiesRequest::builder) + .basePath("/20230831") + .appendPathParam("properties") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendEnumQueryParam("scope", request.getScope()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.PropertyCollection.class, + ListPropertiesResponse.Builder::propertyCollection) + .handleResponseHeaderString( + "opc-request-id", ListPropertiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPropertiesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateProperty( + UpdatePropertyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdatePropertyRequest, UpdatePropertyResponse> + handler) { + + Validate.notBlank(request.getPropertyId(), "propertyId must not be blank"); + Objects.requireNonNull( + request.getUpdatePropertyDetails(), "updatePropertyDetails is required"); + + return clientCall(request, UpdatePropertyResponse::builder) + .logger(LOG, "updateProperty") + .serviceDetails("FleetAppsManagementAdmin", "UpdateProperty", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdatePropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("properties") + .appendPathParam(request.getPropertyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Property.class, + UpdatePropertyResponse.Builder::property) + .handleResponseHeaderString("etag", UpdatePropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdatePropertyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminClient.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminClient.java new file mode 100644 index 00000000000..34996315a15 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminClient.java @@ -0,0 +1,563 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementAdminClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements FleetAppsManagementAdmin { + /** Service instance for FleetAppsManagementAdmin. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("FLEETAPPSMANAGEMENTADMIN") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://fams.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FleetAppsManagementAdminClient.class); + + private final FleetAppsManagementAdminWaiters waiters; + + private final FleetAppsManagementAdminPaginators paginators; + + FleetAppsManagementAdminClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("FleetAppsManagementAdmin-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new FleetAppsManagementAdminWaiters(executorService, this); + + this.paginators = new FleetAppsManagementAdminPaginators(this); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, FleetAppsManagementAdminClient> { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "fleetappsmanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public FleetAppsManagementAdminClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new FleetAppsManagementAdminClient( + this, authenticationDetailsProvider, executorService); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public CreateOnboardingResponse createOnboarding(CreateOnboardingRequest request) { + Objects.requireNonNull( + request.getCreateOnboardingDetails(), "createOnboardingDetails is required"); + + return clientCall(request, CreateOnboardingResponse::builder) + .logger(LOG, "createOnboarding") + .serviceDetails("FleetAppsManagementAdmin", "CreateOnboarding", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateOnboardingRequest::builder) + .basePath("/20230831") + .appendPathParam("Onboardings") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Onboarding.class, + CreateOnboardingResponse.Builder::onboarding) + .handleResponseHeaderString("location", CreateOnboardingResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateOnboardingResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateOnboardingResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", CreateOnboardingResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateOnboardingResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreatePropertyResponse createProperty(CreatePropertyRequest request) { + Objects.requireNonNull( + request.getCreatePropertyDetails(), "createPropertyDetails is required"); + + return clientCall(request, CreatePropertyResponse::builder) + .logger(LOG, "createProperty") + .serviceDetails("FleetAppsManagementAdmin", "CreateProperty", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreatePropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("properties") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Property.class, + CreatePropertyResponse.Builder::property) + .handleResponseHeaderString("etag", CreatePropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreatePropertyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeletePropertyResponse deleteProperty(DeletePropertyRequest request) { + + Validate.notBlank(request.getPropertyId(), "propertyId must not be blank"); + + return clientCall(request, DeletePropertyResponse::builder) + .logger(LOG, "deleteProperty") + .serviceDetails("FleetAppsManagementAdmin", "DeleteProperty", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeletePropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("properties") + .appendPathParam(request.getPropertyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeletePropertyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetPropertyResponse getProperty(GetPropertyRequest request) { + + Validate.notBlank(request.getPropertyId(), "propertyId must not be blank"); + + return clientCall(request, GetPropertyResponse::builder) + .logger(LOG, "getProperty") + .serviceDetails("FleetAppsManagementAdmin", "GetProperty", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetPropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("properties") + .appendPathParam(request.getPropertyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Property.class, + GetPropertyResponse.Builder::property) + .handleResponseHeaderString("etag", GetPropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetPropertyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListOnboardingPoliciesResponse listOnboardingPolicies( + ListOnboardingPoliciesRequest request) { + + return clientCall(request, ListOnboardingPoliciesResponse::builder) + .logger(LOG, "listOnboardingPolicies") + .serviceDetails("FleetAppsManagementAdmin", "ListOnboardingPolicies", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOnboardingPoliciesRequest::builder) + .basePath("/20230831") + .appendPathParam("OnboardingPolicies") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicyCollection.class, + ListOnboardingPoliciesResponse.Builder::onboardingPolicyCollection) + .handleResponseHeaderString( + "opc-request-id", ListOnboardingPoliciesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOnboardingPoliciesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListOnboardingsResponse listOnboardings(ListOnboardingsRequest request) { + + return clientCall(request, ListOnboardingsResponse::builder) + .logger(LOG, "listOnboardings") + .serviceDetails("FleetAppsManagementAdmin", "ListOnboardings", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListOnboardingsRequest::builder) + .basePath("/20230831") + .appendPathParam("Onboardings") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.OnboardingCollection.class, + ListOnboardingsResponse.Builder::onboardingCollection) + .handleResponseHeaderString( + "opc-request-id", ListOnboardingsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListOnboardingsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListPropertiesResponse listProperties(ListPropertiesRequest request) { + + return clientCall(request, ListPropertiesResponse::builder) + .logger(LOG, "listProperties") + .serviceDetails("FleetAppsManagementAdmin", "ListProperties", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPropertiesRequest::builder) + .basePath("/20230831") + .appendPathParam("properties") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendEnumQueryParam("scope", request.getScope()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.PropertyCollection.class, + ListPropertiesResponse.Builder::propertyCollection) + .handleResponseHeaderString( + "opc-request-id", ListPropertiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPropertiesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public UpdatePropertyResponse updateProperty(UpdatePropertyRequest request) { + + Validate.notBlank(request.getPropertyId(), "propertyId must not be blank"); + Objects.requireNonNull( + request.getUpdatePropertyDetails(), "updatePropertyDetails is required"); + + return clientCall(request, UpdatePropertyResponse::builder) + .logger(LOG, "updateProperty") + .serviceDetails("FleetAppsManagementAdmin", "UpdateProperty", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdatePropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("properties") + .appendPathParam(request.getPropertyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Property.class, + UpdatePropertyResponse.Builder::property) + .handleResponseHeaderString("etag", UpdatePropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdatePropertyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public FleetAppsManagementAdminWaiters getWaiters() { + return waiters; + } + + @Override + public FleetAppsManagementAdminPaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAdminClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminPaginators.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminPaginators.java new file mode 100644 index 00000000000..2d0f4787af1 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminPaginators.java @@ -0,0 +1,401 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of FleetAppsManagementAdmin where multiple pages of data may be fetched. + * Two styles of iteration are supported: + * + *

+ * + * These iterables abstract away the need to write code to manually handle pagination via looping + * and using the page tokens. They will automatically fetch more data from the service when + * required. + * + *

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementAdminPaginators { + private final FleetAppsManagementAdmin client; + + public FleetAppsManagementAdminPaginators(FleetAppsManagementAdmin client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listOnboardingPolicies operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listOnboardingPoliciesResponseIterator( + final ListOnboardingPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOnboardingPoliciesRequest.Builder, + ListOnboardingPoliciesRequest, + ListOnboardingPoliciesResponse>( + new java.util.function.Supplier() { + @Override + public ListOnboardingPoliciesRequest.Builder get() { + return ListOnboardingPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOnboardingPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOnboardingPoliciesRequest.Builder>, + ListOnboardingPoliciesRequest>() { + @Override + public ListOnboardingPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOnboardingPoliciesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListOnboardingPoliciesRequest, ListOnboardingPoliciesResponse>() { + @Override + public ListOnboardingPoliciesResponse apply( + ListOnboardingPoliciesRequest request) { + return client.listOnboardingPolicies(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicySummary} objects contained in + * responses from the listOnboardingPolicies operation. This iterable will fetch more data from + * the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicySummary} objects contained in + * responses received from the service. + */ + public Iterable + listOnboardingPoliciesRecordIterator(final ListOnboardingPoliciesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOnboardingPoliciesRequest.Builder, + ListOnboardingPoliciesRequest, + ListOnboardingPoliciesResponse, + com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicySummary>( + new java.util.function.Supplier() { + @Override + public ListOnboardingPoliciesRequest.Builder get() { + return ListOnboardingPoliciesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOnboardingPoliciesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOnboardingPoliciesRequest.Builder>, + ListOnboardingPoliciesRequest>() { + @Override + public ListOnboardingPoliciesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOnboardingPoliciesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListOnboardingPoliciesRequest, ListOnboardingPoliciesResponse>() { + @Override + public ListOnboardingPoliciesResponse apply( + ListOnboardingPoliciesRequest request) { + return client.listOnboardingPolicies(request); + } + }, + new java.util.function.Function< + ListOnboardingPoliciesResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model + .OnboardingPolicySummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model + .OnboardingPolicySummary> + apply(ListOnboardingPoliciesResponse response) { + return response.getOnboardingPolicyCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listOnboardings operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listOnboardingsResponseIterator( + final ListOnboardingsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListOnboardingsRequest.Builder, ListOnboardingsRequest, ListOnboardingsResponse>( + new java.util.function.Supplier() { + @Override + public ListOnboardingsRequest.Builder get() { + return ListOnboardingsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOnboardingsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOnboardingsRequest.Builder>, + ListOnboardingsRequest>() { + @Override + public ListOnboardingsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOnboardingsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListOnboardingsResponse apply(ListOnboardingsRequest request) { + return client.listOnboardings(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.OnboardingSummary} objects contained in responses + * from the listOnboardings operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.OnboardingSummary} objects contained in + * responses received from the service. + */ + public Iterable + listOnboardingsRecordIterator(final ListOnboardingsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListOnboardingsRequest.Builder, + ListOnboardingsRequest, + ListOnboardingsResponse, + com.oracle.bmc.fleetappsmanagement.model.OnboardingSummary>( + new java.util.function.Supplier() { + @Override + public ListOnboardingsRequest.Builder get() { + return ListOnboardingsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListOnboardingsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOnboardingsRequest.Builder>, + ListOnboardingsRequest>() { + @Override + public ListOnboardingsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListOnboardingsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListOnboardingsResponse apply(ListOnboardingsRequest request) { + return client.listOnboardings(request); + } + }, + new java.util.function.Function< + ListOnboardingsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.OnboardingSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.OnboardingSummary> + apply(ListOnboardingsResponse response) { + return response.getOnboardingCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listProperties + * operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listPropertiesResponseIterator( + final ListPropertiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListPropertiesRequest.Builder, ListPropertiesRequest, ListPropertiesResponse>( + new java.util.function.Supplier() { + @Override + public ListPropertiesRequest.Builder get() { + return ListPropertiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPropertiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPropertiesRequest.Builder>, + ListPropertiesRequest>() { + @Override + public ListPropertiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPropertiesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListPropertiesResponse apply(ListPropertiesRequest request) { + return client.listProperties(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.PropertySummary} objects contained in responses from + * the listProperties operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.PropertySummary} objects contained in responses + * received from the service. + */ + public Iterable + listPropertiesRecordIterator(final ListPropertiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListPropertiesRequest.Builder, + ListPropertiesRequest, + ListPropertiesResponse, + com.oracle.bmc.fleetappsmanagement.model.PropertySummary>( + new java.util.function.Supplier() { + @Override + public ListPropertiesRequest.Builder get() { + return ListPropertiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPropertiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPropertiesRequest.Builder>, + ListPropertiesRequest>() { + @Override + public ListPropertiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPropertiesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListPropertiesResponse apply(ListPropertiesRequest request) { + return client.listProperties(request); + } + }, + new java.util.function.Function< + ListPropertiesResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.PropertySummary>>() { + @Override + public java.util.List + apply(ListPropertiesResponse response) { + return response.getPropertyCollection().getItems(); + } + }); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminWaiters.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminWaiters.java new file mode 100644 index 00000000000..ce31a4d0ed6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAdminWaiters.java @@ -0,0 +1,128 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of FleetAppsManagementAdmin. + * + *

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementAdminWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final FleetAppsManagementAdmin client; + + public FleetAppsManagementAdminWaiters( + java.util.concurrent.ExecutorService executorService, FleetAppsManagementAdmin client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forProperty( + GetPropertyRequest request, + com.oracle.bmc.fleetappsmanagement.model.Property.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forProperty( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forProperty( + GetPropertyRequest request, + com.oracle.bmc.fleetappsmanagement.model.Property.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forProperty( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forProperty( + GetPropertyRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fleetappsmanagement.model.Property.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forProperty( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Property. + private com.oracle.bmc.waiter.Waiter forProperty( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetPropertyRequest request, + final com.oracle.bmc.fleetappsmanagement.model.Property.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function() { + @Override + public GetPropertyResponse apply(GetPropertyRequest request) { + return client.getProperty(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetPropertyResponse response) { + return targetStatesSet.contains( + response.getProperty().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.fleetappsmanagement.model.Property.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAsync.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAsync.java new file mode 100644 index 00000000000..047d0e6d4d4 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAsync.java @@ -0,0 +1,609 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Fleet Application Management Service API. Use this API to for all FAMS related activities. To + * manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public interface FleetAppsManagementAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Check if FAMS tags can be added for the resources + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future checkResourceTagging( + CheckResourceTaggingRequest request, + com.oracle.bmc.responses.AsyncHandler< + CheckResourceTaggingRequest, CheckResourceTaggingResponse> + handler); + + /** + * Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by + * FAMS + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future confirmTargets( + ConfirmTargetsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new fleet instance that includes fleet resources and properties. For more + * information, please see the documentation. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createFleet( + CreateFleetRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Creates a new FleetCredential. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createFleetCredential( + CreateFleetCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateFleetCredentialRequest, CreateFleetCredentialResponse> + handler); + + /** + * Creates a new FleetProperty. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createFleetProperty( + CreateFleetPropertyRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateFleetPropertyRequest, CreateFleetPropertyResponse> + handler); + + /** + * Creates a new FleetResource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createFleetResource( + CreateFleetResourceRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateFleetResourceRequest, CreateFleetResourceResponse> + handler); + + /** + * Deletes a Fleet resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteFleet( + DeleteFleetRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Deletes a FleetCredential resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteFleetCredential( + DeleteFleetCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteFleetCredentialRequest, DeleteFleetCredentialResponse> + handler); + + /** + * Deletes a FleetProperty resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteFleetProperty( + DeleteFleetPropertyRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteFleetPropertyRequest, DeleteFleetPropertyResponse> + handler); + + /** + * Deletes a FleetResource resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteFleetResource( + DeleteFleetResourceRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteFleetResourceRequest, DeleteFleetResourceResponse> + handler); + + /** + * Request to generate compliance report for a Fleet + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future generateComplianceReport( + GenerateComplianceReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateComplianceReportRequest, GenerateComplianceReportResponse> + handler); + + /** + * Retrieve compiane report for a Fleet + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getComplianceReport( + GetComplianceReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetComplianceReportRequest, GetComplianceReportResponse> + handler); + + /** + * Gets a Fleet by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getFleet( + GetFleetRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets a FleetCredential by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getFleetCredential( + GetFleetCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetFleetCredentialRequest, GetFleetCredentialResponse> + handler); + + /** + * Gets a FleetProperty by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getFleetProperty( + GetFleetPropertyRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a FleetResource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getFleetResource( + GetFleetResourceRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets details of the work request with the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Return a list of AnnouncementSummary items + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listAnnouncements( + ListAnnouncementsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAnnouncementsRequest, ListAnnouncementsResponse> + handler); + + /** + * Returns a list of FleetCredentials. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listFleetCredentials( + ListFleetCredentialsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListFleetCredentialsRequest, ListFleetCredentialsResponse> + handler); + + /** + * Returns a list of FleetProducts. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listFleetProducts( + ListFleetProductsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListFleetProductsRequest, ListFleetProductsResponse> + handler); + + /** + * Returns a list of FleetProperties. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listFleetProperties( + ListFleetPropertiesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListFleetPropertiesRequest, ListFleetPropertiesResponse> + handler); + + /** + * Returns a list of FleetResources. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listFleetResources( + ListFleetResourcesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListFleetResourcesRequest, ListFleetResourcesResponse> + handler); + + /** + * Returns a list of FleetTargets. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listFleetTargets( + ListFleetTargetsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of Fleets in the specified Tenancy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listFleets( + ListFleetsRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Returns a list of InventoryResources. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listInventoryResources( + ListInventoryResourcesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListInventoryResourcesRequest, ListInventoryResourcesResponse> + handler); + + /** + * Returns a list of FleetTargets. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listTargets( + ListTargetsRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Returns a (paginated) list of errors for the work request with the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * Returns a (paginated) list of logs for the work request with the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Request validation for resources with in a fleet + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future requestResourceValidation( + RequestResourceValidationRequest request, + com.oracle.bmc.responses.AsyncHandler< + RequestResourceValidationRequest, RequestResourceValidationResponse> + handler); + + /** + * Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by + * FAMS + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future requestTargetDiscovery( + RequestTargetDiscoveryRequest request, + com.oracle.bmc.responses.AsyncHandler< + RequestTargetDiscoveryRequest, RequestTargetDiscoveryResponse> + handler); + + /** + * Updates the Fleet + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateFleet( + UpdateFleetRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Updates the FleetCredential + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateFleetCredential( + UpdateFleetCredentialRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateFleetCredentialRequest, UpdateFleetCredentialResponse> + handler); + + /** + * Updates the FleetProperty + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateFleetProperty( + UpdateFleetPropertyRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateFleetPropertyRequest, UpdateFleetPropertyResponse> + handler); + + /** + * Updates the FleetResource + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateFleetResource( + UpdateFleetResourceRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateFleetResourceRequest, UpdateFleetResourceResponse> + handler); +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAsyncClient.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAsyncClient.java new file mode 100644 index 00000000000..15ab582ee80 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementAsyncClient.java @@ -0,0 +1,1461 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for FleetAppsManagement service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements FleetAppsManagementAsync { + /** Service instance for FleetAppsManagement. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("FLEETAPPSMANAGEMENT") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://fams.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FleetAppsManagementAsyncClient.class); + + FleetAppsManagementAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, FleetAppsManagementAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "fleetappsmanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public FleetAppsManagementAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new FleetAppsManagementAsyncClient(this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future checkResourceTagging( + CheckResourceTaggingRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CheckResourceTaggingRequest, CheckResourceTaggingResponse> + handler) { + Objects.requireNonNull( + request.getCheckResourceTaggingDetails(), + "checkResourceTaggingDetails is required"); + + return clientCall(request, CheckResourceTaggingResponse::builder) + .logger(LOG, "checkResourceTagging") + .serviceDetails("FleetAppsManagement", "CheckResourceTagging", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CheckResourceTaggingRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam("actions") + .appendPathParam("checkResourceTagging") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.ResourceTagCheckDetails.class, + CheckResourceTaggingResponse.Builder::resourceTagCheckDetails) + .handleResponseHeaderString("etag", CheckResourceTaggingResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CheckResourceTaggingResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future confirmTargets( + ConfirmTargetsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConfirmTargetsRequest, ConfirmTargetsResponse> + handler) { + Objects.requireNonNull( + request.getConfirmTargetsDetails(), "confirmTargetsDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ConfirmTargetsResponse::builder) + .logger(LOG, "confirmTargets") + .serviceDetails("FleetAppsManagement", "ConfirmTargets", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfirmTargetsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("actions") + .appendPathParam("confirmTargets") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", ConfirmTargetsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ConfirmTargetsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createFleet( + CreateFleetRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getCreateFleetDetails(), "createFleetDetails is required"); + + return clientCall(request, CreateFleetResponse::builder) + .logger(LOG, "createFleet") + .serviceDetails("FleetAppsManagement", "CreateFleet", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateFleetRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Fleet.class, + CreateFleetResponse.Builder::fleet) + .handleResponseHeaderString("location", CreateFleetResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateFleetResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateFleetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", CreateFleetResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateFleetResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createFleetCredential( + CreateFleetCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateFleetCredentialRequest, CreateFleetCredentialResponse> + handler) { + Objects.requireNonNull( + request.getCreateFleetCredentialDetails(), + "createFleetCredentialDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, CreateFleetCredentialResponse::builder) + .logger(LOG, "createFleetCredential") + .serviceDetails("FleetAppsManagement", "CreateFleetCredential", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateFleetCredentialRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetCredentials") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetCredential.class, + CreateFleetCredentialResponse.Builder::fleetCredential) + .handleResponseHeaderString( + "location", CreateFleetCredentialResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateFleetCredentialResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateFleetCredentialResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateFleetCredentialResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateFleetCredentialResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createFleetProperty( + CreateFleetPropertyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateFleetPropertyRequest, CreateFleetPropertyResponse> + handler) { + Objects.requireNonNull( + request.getCreateFleetPropertyDetails(), "createFleetPropertyDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, CreateFleetPropertyResponse::builder) + .logger(LOG, "createFleetProperty") + .serviceDetails("FleetAppsManagement", "CreateFleetProperty", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateFleetPropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProperties") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetProperty.class, + CreateFleetPropertyResponse.Builder::fleetProperty) + .handleResponseHeaderString("etag", CreateFleetPropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateFleetPropertyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createFleetResource( + CreateFleetResourceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateFleetResourceRequest, CreateFleetResourceResponse> + handler) { + Objects.requireNonNull( + request.getCreateFleetResourceDetails(), "createFleetResourceDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, CreateFleetResourceResponse::builder) + .logger(LOG, "createFleetResource") + .serviceDetails("FleetAppsManagement", "CreateFleetResource", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateFleetResourceRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetResources") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetResource.class, + CreateFleetResourceResponse.Builder::fleetResource) + .handleResponseHeaderString( + "location", CreateFleetResourceResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateFleetResourceResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateFleetResourceResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateFleetResourceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateFleetResourceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteFleet( + DeleteFleetRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, DeleteFleetResponse::builder) + .logger(LOG, "deleteFleet") + .serviceDetails("FleetAppsManagement", "DeleteFleet", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteFleetRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeleteFleetResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteFleetResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteFleetCredential( + DeleteFleetCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteFleetCredentialRequest, DeleteFleetCredentialResponse> + handler) { + + Validate.notBlank(request.getFleetCredentialId(), "fleetCredentialId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, DeleteFleetCredentialResponse::builder) + .logger(LOG, "deleteFleetCredential") + .serviceDetails("FleetAppsManagement", "DeleteFleetCredential", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteFleetCredentialRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetCredentials") + .appendPathParam(request.getFleetCredentialId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteFleetCredentialResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteFleetCredentialResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteFleetProperty( + DeleteFleetPropertyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteFleetPropertyRequest, DeleteFleetPropertyResponse> + handler) { + + Validate.notBlank(request.getFleetPropertyId(), "fleetPropertyId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, DeleteFleetPropertyResponse::builder) + .logger(LOG, "deleteFleetProperty") + .serviceDetails("FleetAppsManagement", "DeleteFleetProperty", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteFleetPropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProperties") + .appendPathParam(request.getFleetPropertyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteFleetPropertyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteFleetResource( + DeleteFleetResourceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteFleetResourceRequest, DeleteFleetResourceResponse> + handler) { + + Validate.notBlank(request.getFleetResourceId(), "fleetResourceId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, DeleteFleetResourceResponse::builder) + .logger(LOG, "deleteFleetResource") + .serviceDetails("FleetAppsManagement", "DeleteFleetResource", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteFleetResourceRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetResources") + .appendPathParam(request.getFleetResourceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteFleetResourceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteFleetResourceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future generateComplianceReport( + GenerateComplianceReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateComplianceReportRequest, GenerateComplianceReportResponse> + handler) { + Objects.requireNonNull( + request.getGenerateComplianceReportDetails(), + "generateComplianceReportDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, GenerateComplianceReportResponse::builder) + .logger(LOG, "generateComplianceReport") + .serviceDetails("FleetAppsManagement", "GenerateComplianceReport", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateComplianceReportRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("actions") + .appendPathParam("generateComplianceReport") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateComplianceReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", GenerateComplianceReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getComplianceReport( + GetComplianceReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetComplianceReportRequest, GetComplianceReportResponse> + handler) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + Validate.notBlank(request.getComplianceReportId(), "complianceReportId must not be blank"); + + return clientCall(request, GetComplianceReportResponse::builder) + .logger(LOG, "getComplianceReport") + .serviceDetails("FleetAppsManagement", "GetComplianceReport", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetComplianceReportRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("complianceReports") + .appendPathParam(request.getComplianceReportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.ComplianceReport.class, + GetComplianceReportResponse.Builder::complianceReport) + .handleResponseHeaderString("etag", GetComplianceReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetComplianceReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getFleet( + GetFleetRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, GetFleetResponse::builder) + .logger(LOG, "getFleet") + .serviceDetails("FleetAppsManagement", "GetFleet", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFleetRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Fleet.class, + GetFleetResponse.Builder::fleet) + .handleResponseHeaderString("etag", GetFleetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFleetResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getFleetCredential( + GetFleetCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetFleetCredentialRequest, GetFleetCredentialResponse> + handler) { + + Validate.notBlank(request.getFleetCredentialId(), "fleetCredentialId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, GetFleetCredentialResponse::builder) + .logger(LOG, "getFleetCredential") + .serviceDetails("FleetAppsManagement", "GetFleetCredential", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFleetCredentialRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetCredentials") + .appendPathParam(request.getFleetCredentialId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetCredential.class, + GetFleetCredentialResponse.Builder::fleetCredential) + .handleResponseHeaderString("etag", GetFleetCredentialResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFleetCredentialResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getFleetProperty( + GetFleetPropertyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetFleetPropertyRequest, GetFleetPropertyResponse> + handler) { + + Validate.notBlank(request.getFleetPropertyId(), "fleetPropertyId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, GetFleetPropertyResponse::builder) + .logger(LOG, "getFleetProperty") + .serviceDetails("FleetAppsManagement", "GetFleetProperty", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFleetPropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProperties") + .appendPathParam(request.getFleetPropertyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetProperty.class, + GetFleetPropertyResponse.Builder::fleetProperty) + .handleResponseHeaderString("etag", GetFleetPropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFleetPropertyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getFleetResource( + GetFleetResourceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetFleetResourceRequest, GetFleetResourceResponse> + handler) { + + Validate.notBlank(request.getFleetResourceId(), "fleetResourceId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, GetFleetResourceResponse::builder) + .logger(LOG, "getFleetResource") + .serviceDetails("FleetAppsManagement", "GetFleetResource", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFleetResourceRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetResources") + .appendPathParam(request.getFleetResourceId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetResource.class, + GetFleetResourceResponse.Builder::fleetResource) + .handleResponseHeaderString("etag", GetFleetResourceResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFleetResourceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("FleetAppsManagement", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20230831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listAnnouncements( + ListAnnouncementsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAnnouncementsRequest, ListAnnouncementsResponse> + handler) { + + return clientCall(request, ListAnnouncementsResponse::builder) + .logger(LOG, "listAnnouncements") + .serviceDetails("FleetAppsManagement", "ListAnnouncements", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAnnouncementsRequest::builder) + .basePath("/20230831") + .appendPathParam("announcements") + .appendQueryParam("summaryContains", request.getSummaryContains()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.AnnouncementCollection.class, + ListAnnouncementsResponse.Builder::announcementCollection) + .handleResponseHeaderString( + "opc-request-id", ListAnnouncementsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAnnouncementsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listFleetCredentials( + ListFleetCredentialsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListFleetCredentialsRequest, ListFleetCredentialsResponse> + handler) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListFleetCredentialsResponse::builder) + .logger(LOG, "listFleetCredentials") + .serviceDetails("FleetAppsManagement", "ListFleetCredentials", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetCredentialsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetCredentials") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("credentialLevel", request.getCredentialLevel()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetCredentialCollection.class, + ListFleetCredentialsResponse.Builder::fleetCredentialCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetCredentialsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetCredentialsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listFleetProducts( + ListFleetProductsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListFleetProductsRequest, ListFleetProductsResponse> + handler) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListFleetProductsResponse::builder) + .logger(LOG, "listFleetProducts") + .serviceDetails("FleetAppsManagement", "ListFleetProducts", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetProductsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProducts") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("resourceDisplayName", request.getResourceDisplayName()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetProductCollection.class, + ListFleetProductsResponse.Builder::fleetProductCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetProductsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetProductsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listFleetProperties( + ListFleetPropertiesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListFleetPropertiesRequest, ListFleetPropertiesResponse> + handler) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListFleetPropertiesResponse::builder) + .logger(LOG, "listFleetProperties") + .serviceDetails("FleetAppsManagement", "ListFleetProperties", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetPropertiesRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProperties") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetPropertyCollection.class, + ListFleetPropertiesResponse.Builder::fleetPropertyCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetPropertiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetPropertiesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listFleetResources( + ListFleetResourcesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListFleetResourcesRequest, ListFleetResourcesResponse> + handler) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListFleetResourcesResponse::builder) + .logger(LOG, "listFleetResources") + .serviceDetails("FleetAppsManagement", "ListFleetResources", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetResourcesRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetResources") + .appendQueryParam("tenancyId", request.getTenancyId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("fleetResourceType", request.getFleetResourceType()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetResourceCollection.class, + ListFleetResourcesResponse.Builder::fleetResourceCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetResourcesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetResourcesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listFleetTargets( + ListFleetTargetsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListFleetTargetsRequest, ListFleetTargetsResponse> + handler) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListFleetTargetsResponse::builder) + .logger(LOG, "listFleetTargets") + .serviceDetails("FleetAppsManagement", "ListFleetTargets", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetTargetsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetTargets") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("product", request.getProduct()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("resourceDisplayName", request.getResourceDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection.class, + ListFleetTargetsResponse.Builder::fleetTargetCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetTargetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetTargetsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listFleets( + ListFleetsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + return clientCall(request, ListFleetsResponse::builder) + .logger(LOG, "listFleets") + .serviceDetails("FleetAppsManagement", "ListFleets", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("fleetType", request.getFleetType()) + .appendQueryParam("applicationType", request.getApplicationType()) + .appendQueryParam("product", request.getProduct()) + .appendQueryParam("environmentType", request.getEnvironmentType()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetCollection.class, + ListFleetsResponse.Builder::fleetCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetsResponse.Builder::opcNextPage) + .handleResponseHeaderInteger( + "opc-total-items", ListFleetsResponse.Builder::opcTotalItems) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listInventoryResources( + ListInventoryResourcesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListInventoryResourcesRequest, ListInventoryResourcesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + Objects.requireNonNull( + request.getResourceCompartmentId(), "resourceCompartmentId is required"); + + return clientCall(request, ListInventoryResourcesResponse::builder) + .logger(LOG, "listInventoryResources") + .serviceDetails("FleetAppsManagement", "ListInventoryResources", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListInventoryResourcesRequest::builder) + .basePath("/20230831") + .appendPathParam("inventoryResources") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("resourceRegion", request.getResourceRegion()) + .appendQueryParam("resourceCompartmentId", request.getResourceCompartmentId()) + .appendListQueryParam( + "definedTagEquals", + request.getDefinedTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagEquals", + request.getFreeformTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "inventoryProperties", + request.getInventoryProperties(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("matchingCriteria", request.getMatchingCriteria()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.InventoryResourceCollection.class, + ListInventoryResourcesResponse.Builder::inventoryResourceCollection) + .handleResponseHeaderString( + "opc-request-id", ListInventoryResourcesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListInventoryResourcesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listTargets( + ListTargetsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListTargetsResponse::builder) + .logger(LOG, "listTargets") + .serviceDetails("FleetAppsManagement", "ListTargets", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListTargetsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("targets") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection.class, + ListTargetsResponse.Builder::fleetTargetCollection) + .handleResponseHeaderString( + "opc-request-id", ListTargetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListTargetsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("FleetAppsManagement", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20230831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails("FleetAppsManagement", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20230831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntryCollection + .class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse> + handler) { + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("FleetAppsManagement", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20230831") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummaryCollection.class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future requestResourceValidation( + RequestResourceValidationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RequestResourceValidationRequest, RequestResourceValidationResponse> + handler) { + Objects.requireNonNull( + request.getRequestResourceValidationDetails(), + "requestResourceValidationDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, RequestResourceValidationResponse::builder) + .logger(LOG, "requestResourceValidation") + .serviceDetails("FleetAppsManagement", "RequestResourceValidation", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RequestResourceValidationRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("actions") + .appendPathParam("requestResourceValidation") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RequestResourceValidationResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RequestResourceValidationResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future requestTargetDiscovery( + RequestTargetDiscoveryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RequestTargetDiscoveryRequest, RequestTargetDiscoveryResponse> + handler) { + Objects.requireNonNull( + request.getRequestTargetDiscoveryDetails(), + "requestTargetDiscoveryDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, RequestTargetDiscoveryResponse::builder) + .logger(LOG, "requestTargetDiscovery") + .serviceDetails("FleetAppsManagement", "RequestTargetDiscovery", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RequestTargetDiscoveryRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("actions") + .appendPathParam("requestTargetDiscovery") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RequestTargetDiscoveryResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RequestTargetDiscoveryResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateFleet( + UpdateFleetRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + Objects.requireNonNull(request.getUpdateFleetDetails(), "updateFleetDetails is required"); + + return clientCall(request, UpdateFleetResponse::builder) + .logger(LOG, "updateFleet") + .serviceDetails("FleetAppsManagement", "UpdateFleet", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateFleetRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Fleet.class, + UpdateFleetResponse.Builder::fleet) + .handleResponseHeaderString("etag", UpdateFleetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateFleetResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateFleetCredential( + UpdateFleetCredentialRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateFleetCredentialRequest, UpdateFleetCredentialResponse> + handler) { + + Validate.notBlank(request.getFleetCredentialId(), "fleetCredentialId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + Objects.requireNonNull( + request.getUpdateFleetCredentialDetails(), + "updateFleetCredentialDetails is required"); + + return clientCall(request, UpdateFleetCredentialResponse::builder) + .logger(LOG, "updateFleetCredential") + .serviceDetails("FleetAppsManagement", "UpdateFleetCredential", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateFleetCredentialRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetCredentials") + .appendPathParam(request.getFleetCredentialId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateFleetCredentialResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateFleetCredentialResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateFleetProperty( + UpdateFleetPropertyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateFleetPropertyRequest, UpdateFleetPropertyResponse> + handler) { + + Validate.notBlank(request.getFleetPropertyId(), "fleetPropertyId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + Objects.requireNonNull( + request.getUpdateFleetPropertyDetails(), "updateFleetPropertyDetails is required"); + + return clientCall(request, UpdateFleetPropertyResponse::builder) + .logger(LOG, "updateFleetProperty") + .serviceDetails("FleetAppsManagement", "UpdateFleetProperty", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateFleetPropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProperties") + .appendPathParam(request.getFleetPropertyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetProperty.class, + UpdateFleetPropertyResponse.Builder::fleetProperty) + .handleResponseHeaderString("etag", UpdateFleetPropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateFleetPropertyResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateFleetResource( + UpdateFleetResourceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateFleetResourceRequest, UpdateFleetResourceResponse> + handler) { + + Validate.notBlank(request.getFleetResourceId(), "fleetResourceId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + Objects.requireNonNull( + request.getUpdateFleetResourceDetails(), "updateFleetResourceDetails is required"); + + return clientCall(request, UpdateFleetResourceResponse::builder) + .logger(LOG, "updateFleetResource") + .serviceDetails("FleetAppsManagement", "UpdateFleetResource", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateFleetResourceRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetResources") + .appendPathParam(request.getFleetResourceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateFleetResourceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateFleetResourceResponse.Builder::opcRequestId) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementClient.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementClient.java new file mode 100644 index 00000000000..ddc9197cd6d --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementClient.java @@ -0,0 +1,1454 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements FleetAppsManagement { + /** Service instance for FleetAppsManagement. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("FLEETAPPSMANAGEMENT") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://fams.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FleetAppsManagementClient.class); + + private final FleetAppsManagementWaiters waiters; + + private final FleetAppsManagementPaginators paginators; + + FleetAppsManagementClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("FleetAppsManagement-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new FleetAppsManagementWaiters(executorService, this); + + this.paginators = new FleetAppsManagementPaginators(this); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, FleetAppsManagementClient> { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "fleetappsmanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public FleetAppsManagementClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new FleetAppsManagementClient( + this, authenticationDetailsProvider, executorService); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public CheckResourceTaggingResponse checkResourceTagging(CheckResourceTaggingRequest request) { + Objects.requireNonNull( + request.getCheckResourceTaggingDetails(), + "checkResourceTaggingDetails is required"); + + return clientCall(request, CheckResourceTaggingResponse::builder) + .logger(LOG, "checkResourceTagging") + .serviceDetails("FleetAppsManagement", "CheckResourceTagging", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CheckResourceTaggingRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam("actions") + .appendPathParam("checkResourceTagging") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.ResourceTagCheckDetails.class, + CheckResourceTaggingResponse.Builder::resourceTagCheckDetails) + .handleResponseHeaderString("etag", CheckResourceTaggingResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CheckResourceTaggingResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ConfirmTargetsResponse confirmTargets(ConfirmTargetsRequest request) { + Objects.requireNonNull( + request.getConfirmTargetsDetails(), "confirmTargetsDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ConfirmTargetsResponse::builder) + .logger(LOG, "confirmTargets") + .serviceDetails("FleetAppsManagement", "ConfirmTargets", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ConfirmTargetsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("actions") + .appendPathParam("confirmTargets") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", ConfirmTargetsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ConfirmTargetsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateFleetResponse createFleet(CreateFleetRequest request) { + Objects.requireNonNull(request.getCreateFleetDetails(), "createFleetDetails is required"); + + return clientCall(request, CreateFleetResponse::builder) + .logger(LOG, "createFleet") + .serviceDetails("FleetAppsManagement", "CreateFleet", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateFleetRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Fleet.class, + CreateFleetResponse.Builder::fleet) + .handleResponseHeaderString("location", CreateFleetResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateFleetResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateFleetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", CreateFleetResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateFleetResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateFleetCredentialResponse createFleetCredential( + CreateFleetCredentialRequest request) { + Objects.requireNonNull( + request.getCreateFleetCredentialDetails(), + "createFleetCredentialDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, CreateFleetCredentialResponse::builder) + .logger(LOG, "createFleetCredential") + .serviceDetails("FleetAppsManagement", "CreateFleetCredential", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateFleetCredentialRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetCredentials") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetCredential.class, + CreateFleetCredentialResponse.Builder::fleetCredential) + .handleResponseHeaderString( + "location", CreateFleetCredentialResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateFleetCredentialResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateFleetCredentialResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateFleetCredentialResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateFleetCredentialResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateFleetPropertyResponse createFleetProperty(CreateFleetPropertyRequest request) { + Objects.requireNonNull( + request.getCreateFleetPropertyDetails(), "createFleetPropertyDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, CreateFleetPropertyResponse::builder) + .logger(LOG, "createFleetProperty") + .serviceDetails("FleetAppsManagement", "CreateFleetProperty", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateFleetPropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProperties") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetProperty.class, + CreateFleetPropertyResponse.Builder::fleetProperty) + .handleResponseHeaderString("etag", CreateFleetPropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateFleetPropertyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public CreateFleetResourceResponse createFleetResource(CreateFleetResourceRequest request) { + Objects.requireNonNull( + request.getCreateFleetResourceDetails(), "createFleetResourceDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, CreateFleetResourceResponse::builder) + .logger(LOG, "createFleetResource") + .serviceDetails("FleetAppsManagement", "CreateFleetResource", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateFleetResourceRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetResources") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetResource.class, + CreateFleetResourceResponse.Builder::fleetResource) + .handleResponseHeaderString( + "location", CreateFleetResourceResponse.Builder::location) + .handleResponseHeaderString( + "content-location", CreateFleetResourceResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateFleetResourceResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateFleetResourceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateFleetResourceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteFleetResponse deleteFleet(DeleteFleetRequest request) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, DeleteFleetResponse::builder) + .logger(LOG, "deleteFleet") + .serviceDetails("FleetAppsManagement", "DeleteFleet", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteFleetRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", DeleteFleetResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteFleetResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteFleetCredentialResponse deleteFleetCredential( + DeleteFleetCredentialRequest request) { + + Validate.notBlank(request.getFleetCredentialId(), "fleetCredentialId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, DeleteFleetCredentialResponse::builder) + .logger(LOG, "deleteFleetCredential") + .serviceDetails("FleetAppsManagement", "DeleteFleetCredential", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteFleetCredentialRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetCredentials") + .appendPathParam(request.getFleetCredentialId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteFleetCredentialResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteFleetCredentialResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteFleetPropertyResponse deleteFleetProperty(DeleteFleetPropertyRequest request) { + + Validate.notBlank(request.getFleetPropertyId(), "fleetPropertyId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, DeleteFleetPropertyResponse::builder) + .logger(LOG, "deleteFleetProperty") + .serviceDetails("FleetAppsManagement", "DeleteFleetProperty", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteFleetPropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProperties") + .appendPathParam(request.getFleetPropertyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteFleetPropertyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteFleetResourceResponse deleteFleetResource(DeleteFleetResourceRequest request) { + + Validate.notBlank(request.getFleetResourceId(), "fleetResourceId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, DeleteFleetResourceResponse::builder) + .logger(LOG, "deleteFleetResource") + .serviceDetails("FleetAppsManagement", "DeleteFleetResource", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteFleetResourceRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetResources") + .appendPathParam(request.getFleetResourceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteFleetResourceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteFleetResourceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GenerateComplianceReportResponse generateComplianceReport( + GenerateComplianceReportRequest request) { + Objects.requireNonNull( + request.getGenerateComplianceReportDetails(), + "generateComplianceReportDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, GenerateComplianceReportResponse::builder) + .logger(LOG, "generateComplianceReport") + .serviceDetails("FleetAppsManagement", "GenerateComplianceReport", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateComplianceReportRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("actions") + .appendPathParam("generateComplianceReport") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateComplianceReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", GenerateComplianceReportResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetComplianceReportResponse getComplianceReport(GetComplianceReportRequest request) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + Validate.notBlank(request.getComplianceReportId(), "complianceReportId must not be blank"); + + return clientCall(request, GetComplianceReportResponse::builder) + .logger(LOG, "getComplianceReport") + .serviceDetails("FleetAppsManagement", "GetComplianceReport", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetComplianceReportRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("complianceReports") + .appendPathParam(request.getComplianceReportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.ComplianceReport.class, + GetComplianceReportResponse.Builder::complianceReport) + .handleResponseHeaderString("etag", GetComplianceReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetComplianceReportResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetFleetResponse getFleet(GetFleetRequest request) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, GetFleetResponse::builder) + .logger(LOG, "getFleet") + .serviceDetails("FleetAppsManagement", "GetFleet", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFleetRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Fleet.class, + GetFleetResponse.Builder::fleet) + .handleResponseHeaderString("etag", GetFleetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFleetResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetFleetCredentialResponse getFleetCredential(GetFleetCredentialRequest request) { + + Validate.notBlank(request.getFleetCredentialId(), "fleetCredentialId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, GetFleetCredentialResponse::builder) + .logger(LOG, "getFleetCredential") + .serviceDetails("FleetAppsManagement", "GetFleetCredential", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFleetCredentialRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetCredentials") + .appendPathParam(request.getFleetCredentialId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetCredential.class, + GetFleetCredentialResponse.Builder::fleetCredential) + .handleResponseHeaderString("etag", GetFleetCredentialResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFleetCredentialResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetFleetPropertyResponse getFleetProperty(GetFleetPropertyRequest request) { + + Validate.notBlank(request.getFleetPropertyId(), "fleetPropertyId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, GetFleetPropertyResponse::builder) + .logger(LOG, "getFleetProperty") + .serviceDetails("FleetAppsManagement", "GetFleetProperty", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFleetPropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProperties") + .appendPathParam(request.getFleetPropertyId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetProperty.class, + GetFleetPropertyResponse.Builder::fleetProperty) + .handleResponseHeaderString("etag", GetFleetPropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFleetPropertyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetFleetResourceResponse getFleetResource(GetFleetResourceRequest request) { + + Validate.notBlank(request.getFleetResourceId(), "fleetResourceId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, GetFleetResourceResponse::builder) + .logger(LOG, "getFleetResource") + .serviceDetails("FleetAppsManagement", "GetFleetResource", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetFleetResourceRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetResources") + .appendPathParam(request.getFleetResourceId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetResource.class, + GetFleetResourceResponse.Builder::fleetResource) + .handleResponseHeaderString("etag", GetFleetResourceResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetFleetResourceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("FleetAppsManagement", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20230831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public ListAnnouncementsResponse listAnnouncements(ListAnnouncementsRequest request) { + + return clientCall(request, ListAnnouncementsResponse::builder) + .logger(LOG, "listAnnouncements") + .serviceDetails("FleetAppsManagement", "ListAnnouncements", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAnnouncementsRequest::builder) + .basePath("/20230831") + .appendPathParam("announcements") + .appendQueryParam("summaryContains", request.getSummaryContains()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.AnnouncementCollection.class, + ListAnnouncementsResponse.Builder::announcementCollection) + .handleResponseHeaderString( + "opc-request-id", ListAnnouncementsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAnnouncementsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListFleetCredentialsResponse listFleetCredentials(ListFleetCredentialsRequest request) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListFleetCredentialsResponse::builder) + .logger(LOG, "listFleetCredentials") + .serviceDetails("FleetAppsManagement", "ListFleetCredentials", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetCredentialsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetCredentials") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("credentialLevel", request.getCredentialLevel()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetCredentialCollection.class, + ListFleetCredentialsResponse.Builder::fleetCredentialCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetCredentialsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetCredentialsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListFleetProductsResponse listFleetProducts(ListFleetProductsRequest request) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListFleetProductsResponse::builder) + .logger(LOG, "listFleetProducts") + .serviceDetails("FleetAppsManagement", "ListFleetProducts", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetProductsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProducts") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("resourceDisplayName", request.getResourceDisplayName()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetProductCollection.class, + ListFleetProductsResponse.Builder::fleetProductCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetProductsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetProductsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListFleetPropertiesResponse listFleetProperties(ListFleetPropertiesRequest request) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListFleetPropertiesResponse::builder) + .logger(LOG, "listFleetProperties") + .serviceDetails("FleetAppsManagement", "ListFleetProperties", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetPropertiesRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProperties") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetPropertyCollection.class, + ListFleetPropertiesResponse.Builder::fleetPropertyCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetPropertiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetPropertiesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListFleetResourcesResponse listFleetResources(ListFleetResourcesRequest request) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListFleetResourcesResponse::builder) + .logger(LOG, "listFleetResources") + .serviceDetails("FleetAppsManagement", "ListFleetResources", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetResourcesRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetResources") + .appendQueryParam("tenancyId", request.getTenancyId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("fleetResourceType", request.getFleetResourceType()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetResourceCollection.class, + ListFleetResourcesResponse.Builder::fleetResourceCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetResourcesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetResourcesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListFleetTargetsResponse listFleetTargets(ListFleetTargetsRequest request) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListFleetTargetsResponse::builder) + .logger(LOG, "listFleetTargets") + .serviceDetails("FleetAppsManagement", "ListFleetTargets", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetTargetsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetTargets") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("product", request.getProduct()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("resourceDisplayName", request.getResourceDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection.class, + ListFleetTargetsResponse.Builder::fleetTargetCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetTargetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetTargetsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListFleetsResponse listFleets(ListFleetsRequest request) { + + return clientCall(request, ListFleetsResponse::builder) + .logger(LOG, "listFleets") + .serviceDetails("FleetAppsManagement", "ListFleets", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListFleetsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("fleetType", request.getFleetType()) + .appendQueryParam("applicationType", request.getApplicationType()) + .appendQueryParam("product", request.getProduct()) + .appendQueryParam("environmentType", request.getEnvironmentType()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetCollection.class, + ListFleetsResponse.Builder::fleetCollection) + .handleResponseHeaderString( + "opc-request-id", ListFleetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListFleetsResponse.Builder::opcNextPage) + .handleResponseHeaderInteger( + "opc-total-items", ListFleetsResponse.Builder::opcTotalItems) + .callSync(); + } + + @Override + public ListInventoryResourcesResponse listInventoryResources( + ListInventoryResourcesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + Objects.requireNonNull( + request.getResourceCompartmentId(), "resourceCompartmentId is required"); + + return clientCall(request, ListInventoryResourcesResponse::builder) + .logger(LOG, "listInventoryResources") + .serviceDetails("FleetAppsManagement", "ListInventoryResources", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListInventoryResourcesRequest::builder) + .basePath("/20230831") + .appendPathParam("inventoryResources") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("resourceRegion", request.getResourceRegion()) + .appendQueryParam("resourceCompartmentId", request.getResourceCompartmentId()) + .appendListQueryParam( + "definedTagEquals", + request.getDefinedTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "freeformTagEquals", + request.getFreeformTagEquals(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "inventoryProperties", + request.getInventoryProperties(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("matchingCriteria", request.getMatchingCriteria()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.InventoryResourceCollection.class, + ListInventoryResourcesResponse.Builder::inventoryResourceCollection) + .handleResponseHeaderString( + "opc-request-id", ListInventoryResourcesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListInventoryResourcesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListTargetsResponse listTargets(ListTargetsRequest request) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, ListTargetsResponse::builder) + .logger(LOG, "listTargets") + .serviceDetails("FleetAppsManagement", "ListTargets", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListTargetsRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("targets") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection.class, + ListTargetsResponse.Builder::fleetTargetCollection) + .handleResponseHeaderString( + "opc-request-id", ListTargetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListTargetsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("FleetAppsManagement", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20230831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails("FleetAppsManagement", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20230831") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntryCollection + .class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("FleetAppsManagement", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20230831") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummaryCollection.class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public RequestResourceValidationResponse requestResourceValidation( + RequestResourceValidationRequest request) { + Objects.requireNonNull( + request.getRequestResourceValidationDetails(), + "requestResourceValidationDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, RequestResourceValidationResponse::builder) + .logger(LOG, "requestResourceValidation") + .serviceDetails("FleetAppsManagement", "RequestResourceValidation", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RequestResourceValidationRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("actions") + .appendPathParam("requestResourceValidation") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RequestResourceValidationResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RequestResourceValidationResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public RequestTargetDiscoveryResponse requestTargetDiscovery( + RequestTargetDiscoveryRequest request) { + Objects.requireNonNull( + request.getRequestTargetDiscoveryDetails(), + "requestTargetDiscoveryDetails is required"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + + return clientCall(request, RequestTargetDiscoveryResponse::builder) + .logger(LOG, "requestTargetDiscovery") + .serviceDetails("FleetAppsManagement", "RequestTargetDiscovery", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RequestTargetDiscoveryRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("actions") + .appendPathParam("requestTargetDiscovery") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RequestTargetDiscoveryResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RequestTargetDiscoveryResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateFleetResponse updateFleet(UpdateFleetRequest request) { + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + Objects.requireNonNull(request.getUpdateFleetDetails(), "updateFleetDetails is required"); + + return clientCall(request, UpdateFleetResponse::builder) + .logger(LOG, "updateFleet") + .serviceDetails("FleetAppsManagement", "UpdateFleet", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateFleetRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Fleet.class, + UpdateFleetResponse.Builder::fleet) + .handleResponseHeaderString("etag", UpdateFleetResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateFleetResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateFleetCredentialResponse updateFleetCredential( + UpdateFleetCredentialRequest request) { + + Validate.notBlank(request.getFleetCredentialId(), "fleetCredentialId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + Objects.requireNonNull( + request.getUpdateFleetCredentialDetails(), + "updateFleetCredentialDetails is required"); + + return clientCall(request, UpdateFleetCredentialResponse::builder) + .logger(LOG, "updateFleetCredential") + .serviceDetails("FleetAppsManagement", "UpdateFleetCredential", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateFleetCredentialRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetCredentials") + .appendPathParam(request.getFleetCredentialId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateFleetCredentialResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateFleetCredentialResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateFleetPropertyResponse updateFleetProperty(UpdateFleetPropertyRequest request) { + + Validate.notBlank(request.getFleetPropertyId(), "fleetPropertyId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + Objects.requireNonNull( + request.getUpdateFleetPropertyDetails(), "updateFleetPropertyDetails is required"); + + return clientCall(request, UpdateFleetPropertyResponse::builder) + .logger(LOG, "updateFleetProperty") + .serviceDetails("FleetAppsManagement", "UpdateFleetProperty", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateFleetPropertyRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetProperties") + .appendPathParam(request.getFleetPropertyId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.FleetProperty.class, + UpdateFleetPropertyResponse.Builder::fleetProperty) + .handleResponseHeaderString("etag", UpdateFleetPropertyResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateFleetPropertyResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateFleetResourceResponse updateFleetResource(UpdateFleetResourceRequest request) { + + Validate.notBlank(request.getFleetResourceId(), "fleetResourceId must not be blank"); + + Validate.notBlank(request.getFleetId(), "fleetId must not be blank"); + Objects.requireNonNull( + request.getUpdateFleetResourceDetails(), "updateFleetResourceDetails is required"); + + return clientCall(request, UpdateFleetResourceResponse::builder) + .logger(LOG, "updateFleetResource") + .serviceDetails("FleetAppsManagement", "UpdateFleetResource", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateFleetResourceRequest::builder) + .basePath("/20230831") + .appendPathParam("fleets") + .appendPathParam(request.getFleetId()) + .appendPathParam("fleetResources") + .appendPathParam(request.getFleetResourceId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateFleetResourceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateFleetResourceResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public FleetAppsManagementWaiters getWaiters() { + return waiters; + } + + @Override + public FleetAppsManagementPaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindow.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindow.java new file mode 100644 index 00000000000..0f3e6b3d82c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindow.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Fleet Application Management Service API. Use this API to for all FAMS related activities. To + * manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * + *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by + * default if no circuit breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public interface FleetAppsManagementMaintenanceWindow extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this Region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new MaintenanceWindow. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * CreateMaintenanceWindow API. + */ + CreateMaintenanceWindowResponse createMaintenanceWindow(CreateMaintenanceWindowRequest request); + + /** + * Deletes a MaintenanceWindow resource by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * DeleteMaintenanceWindow API. + */ + DeleteMaintenanceWindowResponse deleteMaintenanceWindow(DeleteMaintenanceWindowRequest request); + + /** + * Gets a MaintenanceWindow by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * GetMaintenanceWindow API. + */ + GetMaintenanceWindowResponse getMaintenanceWindow(GetMaintenanceWindowRequest request); + + /** + * Returns a list of MaintenanceWindows in the specified Tenancy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListMaintenanceWindows API. + */ + ListMaintenanceWindowsResponse listMaintenanceWindows(ListMaintenanceWindowsRequest request); + + /** + * Updates the MaintenanceWindow + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * UpdateMaintenanceWindow API. + */ + UpdateMaintenanceWindowResponse updateMaintenanceWindow(UpdateMaintenanceWindowRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + FleetAppsManagementMaintenanceWindowWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * interface so that service responses, or resources/records, can be iterated through without + * having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + FleetAppsManagementMaintenanceWindowPaginators getPaginators(); +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowAsync.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowAsync.java new file mode 100644 index 00000000000..f92460d6ab1 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowAsync.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Fleet Application Management Service API. Use this API to for all FAMS related activities. To + * manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public interface FleetAppsManagementMaintenanceWindowAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new MaintenanceWindow. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createMaintenanceWindow( + CreateMaintenanceWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateMaintenanceWindowRequest, CreateMaintenanceWindowResponse> + handler); + + /** + * Deletes a MaintenanceWindow resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteMaintenanceWindow( + DeleteMaintenanceWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteMaintenanceWindowRequest, DeleteMaintenanceWindowResponse> + handler); + + /** + * Gets a MaintenanceWindow by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getMaintenanceWindow( + GetMaintenanceWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceWindowRequest, GetMaintenanceWindowResponse> + handler); + + /** + * Returns a list of MaintenanceWindows in the specified Tenancy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listMaintenanceWindows( + ListMaintenanceWindowsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceWindowsRequest, ListMaintenanceWindowsResponse> + handler); + + /** + * Updates the MaintenanceWindow + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateMaintenanceWindow( + UpdateMaintenanceWindowRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateMaintenanceWindowRequest, UpdateMaintenanceWindowResponse> + handler); +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowAsyncClient.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowAsyncClient.java new file mode 100644 index 00000000000..f24b5d9e3be --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowAsyncClient.java @@ -0,0 +1,420 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for FleetAppsManagementMaintenanceWindow service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementMaintenanceWindowAsyncClient + extends com.oracle.bmc.http.internal.BaseAsyncClient + implements FleetAppsManagementMaintenanceWindowAsync { + /** Service instance for FleetAppsManagementMaintenanceWindow. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("FLEETAPPSMANAGEMENTMAINTENANCEWINDOW") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://fams.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + FleetAppsManagementMaintenanceWindowAsyncClient.class); + + FleetAppsManagementMaintenanceWindowAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, FleetAppsManagementMaintenanceWindowAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "fleetappsmanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public FleetAppsManagementMaintenanceWindowAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new FleetAppsManagementMaintenanceWindowAsyncClient( + this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future createMaintenanceWindow( + CreateMaintenanceWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateMaintenanceWindowRequest, CreateMaintenanceWindowResponse> + handler) { + Objects.requireNonNull( + request.getCreateMaintenanceWindowDetails(), + "createMaintenanceWindowDetails is required"); + + return clientCall(request, CreateMaintenanceWindowResponse::builder) + .logger(LOG, "createMaintenanceWindow") + .serviceDetails( + "FleetAppsManagementMaintenanceWindow", "CreateMaintenanceWindow", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateMaintenanceWindowRequest::builder) + .basePath("/20230831") + .appendPathParam("maintenanceWindows") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.class, + CreateMaintenanceWindowResponse.Builder::maintenanceWindow) + .handleResponseHeaderString("etag", CreateMaintenanceWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateMaintenanceWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteMaintenanceWindow( + DeleteMaintenanceWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteMaintenanceWindowRequest, DeleteMaintenanceWindowResponse> + handler) { + + Validate.notBlank( + request.getMaintenanceWindowId(), "maintenanceWindowId must not be blank"); + + return clientCall(request, DeleteMaintenanceWindowResponse::builder) + .logger(LOG, "deleteMaintenanceWindow") + .serviceDetails( + "FleetAppsManagementMaintenanceWindow", "DeleteMaintenanceWindow", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteMaintenanceWindowRequest::builder) + .basePath("/20230831") + .appendPathParam("maintenanceWindows") + .appendPathParam(request.getMaintenanceWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteMaintenanceWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteMaintenanceWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getMaintenanceWindow( + GetMaintenanceWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetMaintenanceWindowRequest, GetMaintenanceWindowResponse> + handler) { + + Validate.notBlank( + request.getMaintenanceWindowId(), "maintenanceWindowId must not be blank"); + + return clientCall(request, GetMaintenanceWindowResponse::builder) + .logger(LOG, "getMaintenanceWindow") + .serviceDetails("FleetAppsManagementMaintenanceWindow", "GetMaintenanceWindow", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetMaintenanceWindowRequest::builder) + .basePath("/20230831") + .appendPathParam("maintenanceWindows") + .appendPathParam(request.getMaintenanceWindowId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.class, + GetMaintenanceWindowResponse.Builder::maintenanceWindow) + .handleResponseHeaderString("etag", GetMaintenanceWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetMaintenanceWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listMaintenanceWindows( + ListMaintenanceWindowsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListMaintenanceWindowsRequest, ListMaintenanceWindowsResponse> + handler) { + + return clientCall(request, ListMaintenanceWindowsResponse::builder) + .logger(LOG, "listMaintenanceWindows") + .serviceDetails( + "FleetAppsManagementMaintenanceWindow", "ListMaintenanceWindows", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMaintenanceWindowsRequest::builder) + .basePath("/20230831") + .appendPathParam("maintenanceWindows") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowCollection.class, + ListMaintenanceWindowsResponse.Builder::maintenanceWindowCollection) + .handleResponseHeaderString( + "opc-request-id", ListMaintenanceWindowsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListMaintenanceWindowsResponse.Builder::opcNextPage) + .handleResponseHeaderInteger( + "opc-total-items", ListMaintenanceWindowsResponse.Builder::opcTotalItems) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateMaintenanceWindow( + UpdateMaintenanceWindowRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateMaintenanceWindowRequest, UpdateMaintenanceWindowResponse> + handler) { + + Validate.notBlank( + request.getMaintenanceWindowId(), "maintenanceWindowId must not be blank"); + Objects.requireNonNull( + request.getUpdateMaintenanceWindowDetails(), + "updateMaintenanceWindowDetails is required"); + + return clientCall(request, UpdateMaintenanceWindowResponse::builder) + .logger(LOG, "updateMaintenanceWindow") + .serviceDetails( + "FleetAppsManagementMaintenanceWindow", "UpdateMaintenanceWindow", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateMaintenanceWindowRequest::builder) + .basePath("/20230831") + .appendPathParam("maintenanceWindows") + .appendPathParam(request.getMaintenanceWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateMaintenanceWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateMaintenanceWindowResponse.Builder::opcRequestId) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowClient.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowClient.java new file mode 100644 index 00000000000..b9ae64120f5 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowClient.java @@ -0,0 +1,491 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementMaintenanceWindowClient + extends com.oracle.bmc.http.internal.BaseSyncClient + implements FleetAppsManagementMaintenanceWindow { + /** Service instance for FleetAppsManagementMaintenanceWindow. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("FLEETAPPSMANAGEMENTMAINTENANCEWINDOW") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://fams.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FleetAppsManagementMaintenanceWindowClient.class); + + private final FleetAppsManagementMaintenanceWindowWaiters waiters; + + private final FleetAppsManagementMaintenanceWindowPaginators paginators; + + FleetAppsManagementMaintenanceWindowClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("FleetAppsManagementMaintenanceWindow-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new FleetAppsManagementMaintenanceWindowWaiters(executorService, this); + + this.paginators = new FleetAppsManagementMaintenanceWindowPaginators(this); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, FleetAppsManagementMaintenanceWindowClient> { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "fleetappsmanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public FleetAppsManagementMaintenanceWindowClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new FleetAppsManagementMaintenanceWindowClient( + this, authenticationDetailsProvider, executorService); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public CreateMaintenanceWindowResponse createMaintenanceWindow( + CreateMaintenanceWindowRequest request) { + Objects.requireNonNull( + request.getCreateMaintenanceWindowDetails(), + "createMaintenanceWindowDetails is required"); + + return clientCall(request, CreateMaintenanceWindowResponse::builder) + .logger(LOG, "createMaintenanceWindow") + .serviceDetails( + "FleetAppsManagementMaintenanceWindow", "CreateMaintenanceWindow", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateMaintenanceWindowRequest::builder) + .basePath("/20230831") + .appendPathParam("maintenanceWindows") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.class, + CreateMaintenanceWindowResponse.Builder::maintenanceWindow) + .handleResponseHeaderString("etag", CreateMaintenanceWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateMaintenanceWindowResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteMaintenanceWindowResponse deleteMaintenanceWindow( + DeleteMaintenanceWindowRequest request) { + + Validate.notBlank( + request.getMaintenanceWindowId(), "maintenanceWindowId must not be blank"); + + return clientCall(request, DeleteMaintenanceWindowResponse::builder) + .logger(LOG, "deleteMaintenanceWindow") + .serviceDetails( + "FleetAppsManagementMaintenanceWindow", "DeleteMaintenanceWindow", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteMaintenanceWindowRequest::builder) + .basePath("/20230831") + .appendPathParam("maintenanceWindows") + .appendPathParam(request.getMaintenanceWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteMaintenanceWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteMaintenanceWindowResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetMaintenanceWindowResponse getMaintenanceWindow(GetMaintenanceWindowRequest request) { + + Validate.notBlank( + request.getMaintenanceWindowId(), "maintenanceWindowId must not be blank"); + + return clientCall(request, GetMaintenanceWindowResponse::builder) + .logger(LOG, "getMaintenanceWindow") + .serviceDetails("FleetAppsManagementMaintenanceWindow", "GetMaintenanceWindow", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetMaintenanceWindowRequest::builder) + .basePath("/20230831") + .appendPathParam("maintenanceWindows") + .appendPathParam(request.getMaintenanceWindowId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.class, + GetMaintenanceWindowResponse.Builder::maintenanceWindow) + .handleResponseHeaderString("etag", GetMaintenanceWindowResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetMaintenanceWindowResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListMaintenanceWindowsResponse listMaintenanceWindows( + ListMaintenanceWindowsRequest request) { + + return clientCall(request, ListMaintenanceWindowsResponse::builder) + .logger(LOG, "listMaintenanceWindows") + .serviceDetails( + "FleetAppsManagementMaintenanceWindow", "ListMaintenanceWindows", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMaintenanceWindowsRequest::builder) + .basePath("/20230831") + .appendPathParam("maintenanceWindows") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowCollection.class, + ListMaintenanceWindowsResponse.Builder::maintenanceWindowCollection) + .handleResponseHeaderString( + "opc-request-id", ListMaintenanceWindowsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListMaintenanceWindowsResponse.Builder::opcNextPage) + .handleResponseHeaderInteger( + "opc-total-items", ListMaintenanceWindowsResponse.Builder::opcTotalItems) + .callSync(); + } + + @Override + public UpdateMaintenanceWindowResponse updateMaintenanceWindow( + UpdateMaintenanceWindowRequest request) { + + Validate.notBlank( + request.getMaintenanceWindowId(), "maintenanceWindowId must not be blank"); + Objects.requireNonNull( + request.getUpdateMaintenanceWindowDetails(), + "updateMaintenanceWindowDetails is required"); + + return clientCall(request, UpdateMaintenanceWindowResponse::builder) + .logger(LOG, "updateMaintenanceWindow") + .serviceDetails( + "FleetAppsManagementMaintenanceWindow", "UpdateMaintenanceWindow", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateMaintenanceWindowRequest::builder) + .basePath("/20230831") + .appendPathParam("maintenanceWindows") + .appendPathParam(request.getMaintenanceWindowId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateMaintenanceWindowResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateMaintenanceWindowResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public FleetAppsManagementMaintenanceWindowWaiters getWaiters() { + return waiters; + } + + @Override + public FleetAppsManagementMaintenanceWindowPaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementMaintenanceWindowClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowPaginators.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowPaginators.java new file mode 100644 index 00000000000..a90f88fe325 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowPaginators.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of FleetAppsManagementMaintenanceWindow where multiple pages of data may + * be fetched. Two styles of iteration are supported: + * + *

+ * + * These iterables abstract away the need to write code to manually handle pagination via looping + * and using the page tokens. They will automatically fetch more data from the service when + * required. + * + *

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementMaintenanceWindowPaginators { + private final FleetAppsManagementMaintenanceWindow client; + + public FleetAppsManagementMaintenanceWindowPaginators( + FleetAppsManagementMaintenanceWindow client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listMaintenanceWindows operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listMaintenanceWindowsResponseIterator( + final ListMaintenanceWindowsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMaintenanceWindowsRequest.Builder, + ListMaintenanceWindowsRequest, + ListMaintenanceWindowsResponse>( + new java.util.function.Supplier() { + @Override + public ListMaintenanceWindowsRequest.Builder get() { + return ListMaintenanceWindowsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaintenanceWindowsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceWindowsRequest.Builder>, + ListMaintenanceWindowsRequest>() { + @Override + public ListMaintenanceWindowsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceWindowsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListMaintenanceWindowsRequest, ListMaintenanceWindowsResponse>() { + @Override + public ListMaintenanceWindowsResponse apply( + ListMaintenanceWindowsRequest request) { + return client.listMaintenanceWindows(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowSummary} objects contained in + * responses from the listMaintenanceWindows operation. This iterable will fetch more data from + * the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowSummary} objects contained in + * responses received from the service. + */ + public Iterable + listMaintenanceWindowsRecordIterator(final ListMaintenanceWindowsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMaintenanceWindowsRequest.Builder, + ListMaintenanceWindowsRequest, + ListMaintenanceWindowsResponse, + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowSummary>( + new java.util.function.Supplier() { + @Override + public ListMaintenanceWindowsRequest.Builder get() { + return ListMaintenanceWindowsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaintenanceWindowsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceWindowsRequest.Builder>, + ListMaintenanceWindowsRequest>() { + @Override + public ListMaintenanceWindowsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaintenanceWindowsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListMaintenanceWindowsRequest, ListMaintenanceWindowsResponse>() { + @Override + public ListMaintenanceWindowsResponse apply( + ListMaintenanceWindowsRequest request) { + return client.listMaintenanceWindows(request); + } + }, + new java.util.function.Function< + ListMaintenanceWindowsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model + .MaintenanceWindowSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model + .MaintenanceWindowSummary> + apply(ListMaintenanceWindowsResponse response) { + return response.getMaintenanceWindowCollection().getItems(); + } + }); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowWaiters.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowWaiters.java new file mode 100644 index 00000000000..a0846395f19 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementMaintenanceWindowWaiters.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of FleetAppsManagementMaintenanceWindow. + * + *

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementMaintenanceWindowWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final FleetAppsManagementMaintenanceWindow client; + + public FleetAppsManagementMaintenanceWindowWaiters( + java.util.concurrent.ExecutorService executorService, + FleetAppsManagementMaintenanceWindow client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forMaintenanceWindow( + GetMaintenanceWindowRequest request, + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forMaintenanceWindow( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forMaintenanceWindow( + GetMaintenanceWindowRequest request, + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forMaintenanceWindow( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forMaintenanceWindow( + GetMaintenanceWindowRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forMaintenanceWindow( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for MaintenanceWindow. + private com.oracle.bmc.waiter.Waiter + forMaintenanceWindow( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetMaintenanceWindowRequest request, + final com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetMaintenanceWindowRequest, GetMaintenanceWindowResponse>() { + @Override + public GetMaintenanceWindowResponse apply( + GetMaintenanceWindowRequest request) { + return client.getMaintenanceWindow(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetMaintenanceWindowResponse response) { + return targetStatesSet.contains( + response.getMaintenanceWindow().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow + .LifecycleState.Deleted)), + request); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperations.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperations.java new file mode 100644 index 00000000000..9684f58cc73 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperations.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Fleet Application Management Service API. Use this API to for all FAMS related activities. To + * manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * + *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by + * default if no circuit breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public interface FleetAppsManagementOperations extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this Region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new SchedulerDefinition. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * CreateSchedulerDefinition API. + */ + CreateSchedulerDefinitionResponse createSchedulerDefinition( + CreateSchedulerDefinitionRequest request); + + /** + * Deletes a SchedulerDefinition resource by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * DeleteSchedulerDefinition API. + */ + DeleteSchedulerDefinitionResponse deleteSchedulerDefinition( + DeleteSchedulerDefinitionRequest request); + + /** + * Deletes a SchedulerJob resource by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use DeleteSchedulerJob + * API. + */ + DeleteSchedulerJobResponse deleteSchedulerJob(DeleteSchedulerJobRequest request); + + /** + * Gets a JobActivity by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetExecution API. + */ + GetExecutionResponse getExecution(GetExecutionRequest request); + + /** + * Gets a JobActivity by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetJobActivity API. + */ + GetJobActivityResponse getJobActivity(GetJobActivityRequest request); + + /** + * Gets a SchedulerDefinition by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * GetSchedulerDefinition API. + */ + GetSchedulerDefinitionResponse getSchedulerDefinition(GetSchedulerDefinitionRequest request); + + /** + * Gets a SchedulerJob by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetSchedulerJob + * API. + */ + GetSchedulerJobResponse getSchedulerJob(GetSchedulerJobRequest request); + + /** + * Returns a list of Task Executions for a Resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListExecutions API. + */ + ListExecutionsResponse listExecutions(ListExecutionsRequest request); + + /** + * Returns a list of ScheduledFleets + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListScheduledFleets + * API. + */ + ListScheduledFleetsResponse listScheduledFleets(ListScheduledFleetsRequest request); + + /** + * Returns a list of SchedulerDefinitions. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListSchedulerDefinitions API. + */ + ListSchedulerDefinitionsResponse listSchedulerDefinitions( + ListSchedulerDefinitionsRequest request); + + /** + * Returns a list of SchedulerJobs. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListSchedulerJobs + * API. + */ + ListSchedulerJobsResponse listSchedulerJobs(ListSchedulerJobsRequest request); + + /** + * Updates the SchedulerDefinition + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * UpdateSchedulerDefinition API. + */ + UpdateSchedulerDefinitionResponse updateSchedulerDefinition( + UpdateSchedulerDefinitionRequest request); + + /** + * Updates the SchedulerJob + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use UpdateSchedulerJob + * API. + */ + UpdateSchedulerJobResponse updateSchedulerJob(UpdateSchedulerJobRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + FleetAppsManagementOperationsWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * interface so that service responses, or resources/records, can be iterated through without + * having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + FleetAppsManagementOperationsPaginators getPaginators(); +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsAsync.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsAsync.java new file mode 100644 index 00000000000..0177f2c1ad0 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsAsync.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Fleet Application Management Service API. Use this API to for all FAMS related activities. To + * manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public interface FleetAppsManagementOperationsAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Creates a new SchedulerDefinition. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future createSchedulerDefinition( + CreateSchedulerDefinitionRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateSchedulerDefinitionRequest, CreateSchedulerDefinitionResponse> + handler); + + /** + * Deletes a SchedulerDefinition resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteSchedulerDefinition( + DeleteSchedulerDefinitionRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteSchedulerDefinitionRequest, DeleteSchedulerDefinitionResponse> + handler); + + /** + * Deletes a SchedulerJob resource by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteSchedulerJob( + DeleteSchedulerJobRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteSchedulerJobRequest, DeleteSchedulerJobResponse> + handler); + + /** + * Gets a JobActivity by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getExecution( + GetExecutionRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a JobActivity by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getJobActivity( + GetJobActivityRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a SchedulerDefinition by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getSchedulerDefinition( + GetSchedulerDefinitionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetSchedulerDefinitionRequest, GetSchedulerDefinitionResponse> + handler); + + /** + * Gets a SchedulerJob by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getSchedulerJob( + GetSchedulerJobRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of Task Executions for a Resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listExecutions( + ListExecutionsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of ScheduledFleets + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listScheduledFleets( + ListScheduledFleetsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListScheduledFleetsRequest, ListScheduledFleetsResponse> + handler); + + /** + * Returns a list of SchedulerDefinitions. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listSchedulerDefinitions( + ListSchedulerDefinitionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSchedulerDefinitionsRequest, ListSchedulerDefinitionsResponse> + handler); + + /** + * Returns a list of SchedulerJobs. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listSchedulerJobs( + ListSchedulerJobsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListSchedulerJobsRequest, ListSchedulerJobsResponse> + handler); + + /** + * Updates the SchedulerDefinition + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateSchedulerDefinition( + UpdateSchedulerDefinitionRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateSchedulerDefinitionRequest, UpdateSchedulerDefinitionResponse> + handler); + + /** + * Updates the SchedulerJob + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateSchedulerJob( + UpdateSchedulerJobRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateSchedulerJobRequest, UpdateSchedulerJobResponse> + handler); +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsAsyncClient.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsAsyncClient.java new file mode 100644 index 00000000000..5022702dbd8 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsAsyncClient.java @@ -0,0 +1,704 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for FleetAppsManagementOperations service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementOperationsAsyncClient + extends com.oracle.bmc.http.internal.BaseAsyncClient + implements FleetAppsManagementOperationsAsync { + /** Service instance for FleetAppsManagementOperations. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("FLEETAPPSMANAGEMENTOPERATIONS") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://fams.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FleetAppsManagementOperationsAsyncClient.class); + + FleetAppsManagementOperationsAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, FleetAppsManagementOperationsAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "fleetappsmanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public FleetAppsManagementOperationsAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new FleetAppsManagementOperationsAsyncClient( + this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future createSchedulerDefinition( + CreateSchedulerDefinitionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateSchedulerDefinitionRequest, CreateSchedulerDefinitionResponse> + handler) { + Objects.requireNonNull( + request.getCreateSchedulerDefinitionDetails(), + "createSchedulerDefinitionDetails is required"); + + return clientCall(request, CreateSchedulerDefinitionResponse::builder) + .logger(LOG, "createSchedulerDefinition") + .serviceDetails("FleetAppsManagementOperations", "CreateSchedulerDefinition", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSchedulerDefinitionRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.class, + CreateSchedulerDefinitionResponse.Builder::schedulerDefinition) + .handleResponseHeaderString( + "location", CreateSchedulerDefinitionResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateSchedulerDefinitionResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateSchedulerDefinitionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateSchedulerDefinitionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateSchedulerDefinitionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteSchedulerDefinition( + DeleteSchedulerDefinitionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteSchedulerDefinitionRequest, DeleteSchedulerDefinitionResponse> + handler) { + + Validate.notBlank( + request.getSchedulerDefinitionId(), "schedulerDefinitionId must not be blank"); + + return clientCall(request, DeleteSchedulerDefinitionResponse::builder) + .logger(LOG, "deleteSchedulerDefinition") + .serviceDetails("FleetAppsManagementOperations", "DeleteSchedulerDefinition", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSchedulerDefinitionRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .appendPathParam(request.getSchedulerDefinitionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteSchedulerDefinitionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteSchedulerJob( + DeleteSchedulerJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteSchedulerJobRequest, DeleteSchedulerJobResponse> + handler) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + + return clientCall(request, DeleteSchedulerJobResponse::builder) + .logger(LOG, "deleteSchedulerJob") + .serviceDetails("FleetAppsManagementOperations", "DeleteSchedulerJob", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSchedulerJobRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteSchedulerJobResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getExecution( + GetExecutionRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + + Validate.notBlank(request.getJobActivityId(), "jobActivityId must not be blank"); + + Validate.notBlank(request.getResourceId(), "resourceId must not be blank"); + + Validate.notBlank(request.getExecutionId(), "executionId must not be blank"); + + return clientCall(request, GetExecutionResponse::builder) + .logger(LOG, "getExecution") + .serviceDetails("FleetAppsManagementOperations", "GetExecution", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetExecutionRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .appendPathParam("jobActivities") + .appendPathParam(request.getJobActivityId()) + .appendPathParam("resources") + .appendPathParam(request.getResourceId()) + .appendPathParam("executions") + .appendPathParam(request.getExecutionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Execution.class, + GetExecutionResponse.Builder::execution) + .handleResponseHeaderString("etag", GetExecutionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetExecutionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getJobActivity( + GetJobActivityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetJobActivityRequest, GetJobActivityResponse> + handler) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + + Validate.notBlank(request.getJobActivityId(), "jobActivityId must not be blank"); + + return clientCall(request, GetJobActivityResponse::builder) + .logger(LOG, "getJobActivity") + .serviceDetails("FleetAppsManagementOperations", "GetJobActivity", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetJobActivityRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .appendPathParam("jobActivities") + .appendPathParam(request.getJobActivityId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.JobActivity.class, + GetJobActivityResponse.Builder::jobActivity) + .handleResponseHeaderString("etag", GetJobActivityResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetJobActivityResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getSchedulerDefinition( + GetSchedulerDefinitionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetSchedulerDefinitionRequest, GetSchedulerDefinitionResponse> + handler) { + + Validate.notBlank( + request.getSchedulerDefinitionId(), "schedulerDefinitionId must not be blank"); + + return clientCall(request, GetSchedulerDefinitionResponse::builder) + .logger(LOG, "getSchedulerDefinition") + .serviceDetails("FleetAppsManagementOperations", "GetSchedulerDefinition", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSchedulerDefinitionRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .appendPathParam(request.getSchedulerDefinitionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.class, + GetSchedulerDefinitionResponse.Builder::schedulerDefinition) + .handleResponseHeaderString("etag", GetSchedulerDefinitionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSchedulerDefinitionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getSchedulerJob( + GetSchedulerJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetSchedulerJobRequest, GetSchedulerJobResponse> + handler) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + + return clientCall(request, GetSchedulerJobResponse::builder) + .logger(LOG, "getSchedulerJob") + .serviceDetails("FleetAppsManagementOperations", "GetSchedulerJob", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSchedulerJobRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.class, + GetSchedulerJobResponse.Builder::schedulerJob) + .handleResponseHeaderString("etag", GetSchedulerJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSchedulerJobResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listExecutions( + ListExecutionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListExecutionsRequest, ListExecutionsResponse> + handler) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + + Validate.notBlank(request.getJobActivityId(), "jobActivityId must not be blank"); + + Validate.notBlank(request.getResourceId(), "resourceId must not be blank"); + + return clientCall(request, ListExecutionsResponse::builder) + .logger(LOG, "listExecutions") + .serviceDetails("FleetAppsManagementOperations", "ListExecutions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListExecutionsRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .appendPathParam("jobActivities") + .appendPathParam(request.getJobActivityId()) + .appendPathParam("resources") + .appendPathParam(request.getResourceId()) + .appendPathParam("executions") + .appendQueryParam("resourceTaskId", request.getResourceTaskId()) + .appendQueryParam("stepName", request.getStepName()) + .appendQueryParam("targetName", request.getTargetName()) + .appendQueryParam("sequence", request.getSequence()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.ExecutionCollection.class, + ListExecutionsResponse.Builder::executionCollection) + .handleResponseHeaderString( + "opc-request-id", ListExecutionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListExecutionsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listScheduledFleets( + ListScheduledFleetsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListScheduledFleetsRequest, ListScheduledFleetsResponse> + handler) { + + Validate.notBlank( + request.getSchedulerDefinitionId(), "schedulerDefinitionId must not be blank"); + + return clientCall(request, ListScheduledFleetsResponse::builder) + .logger(LOG, "listScheduledFleets") + .serviceDetails("FleetAppsManagementOperations", "ListScheduledFleets", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListScheduledFleetsRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .appendPathParam(request.getSchedulerDefinitionId()) + .appendPathParam("scheduledFleets") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetCollection.class, + ListScheduledFleetsResponse.Builder::scheduledFleetCollection) + .handleResponseHeaderString( + "opc-request-id", ListScheduledFleetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListScheduledFleetsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listSchedulerDefinitions( + ListSchedulerDefinitionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSchedulerDefinitionsRequest, ListSchedulerDefinitionsResponse> + handler) { + + return clientCall(request, ListSchedulerDefinitionsResponse::builder) + .logger(LOG, "listSchedulerDefinitions") + .serviceDetails("FleetAppsManagementOperations", "ListSchedulerDefinitions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSchedulerDefinitionsRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("product", request.getProduct()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("maintenanceWindowId", request.getMaintenanceWindowId()) + .appendQueryParam("fleetId", request.getFleetId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionCollection + .class, + ListSchedulerDefinitionsResponse.Builder::schedulerDefinitionCollection) + .handleResponseHeaderString( + "opc-request-id", ListSchedulerDefinitionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSchedulerDefinitionsResponse.Builder::opcNextPage) + .handleResponseHeaderInteger( + "opc-total-items", ListSchedulerDefinitionsResponse.Builder::opcTotalItems) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listSchedulerJobs( + ListSchedulerJobsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListSchedulerJobsRequest, ListSchedulerJobsResponse> + handler) { + + return clientCall(request, ListSchedulerJobsResponse::builder) + .logger(LOG, "listSchedulerJobs") + .serviceDetails("FleetAppsManagementOperations", "ListSchedulerJobs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSchedulerJobsRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("fleetId", request.getFleetId()) + .appendQueryParam( + "timeScheduledGreaterThanOrEqualTo", + request.getTimeScheduledGreaterThanOrEqualTo()) + .appendQueryParam("timeScheduledLessThan", request.getTimeScheduledLessThan()) + .appendQueryParam("isRemediationJobNeeded", request.getIsRemediationJobNeeded()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("defintionId", request.getDefintionId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerJobCollection.class, + ListSchedulerJobsResponse.Builder::schedulerJobCollection) + .handleResponseHeaderString( + "opc-request-id", ListSchedulerJobsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSchedulerJobsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateSchedulerDefinition( + UpdateSchedulerDefinitionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateSchedulerDefinitionRequest, UpdateSchedulerDefinitionResponse> + handler) { + + Validate.notBlank( + request.getSchedulerDefinitionId(), "schedulerDefinitionId must not be blank"); + Objects.requireNonNull( + request.getUpdateSchedulerDefinitionDetails(), + "updateSchedulerDefinitionDetails is required"); + + return clientCall(request, UpdateSchedulerDefinitionResponse::builder) + .logger(LOG, "updateSchedulerDefinition") + .serviceDetails("FleetAppsManagementOperations", "UpdateSchedulerDefinition", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSchedulerDefinitionRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .appendPathParam(request.getSchedulerDefinitionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSchedulerDefinitionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateSchedulerDefinitionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateSchedulerJob( + UpdateSchedulerJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateSchedulerJobRequest, UpdateSchedulerJobResponse> + handler) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + Objects.requireNonNull( + request.getUpdateSchedulerJobDetails(), "updateSchedulerJobDetails is required"); + + return clientCall(request, UpdateSchedulerJobResponse::builder) + .logger(LOG, "updateSchedulerJob") + .serviceDetails("FleetAppsManagementOperations", "UpdateSchedulerJob", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSchedulerJobRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.class, + UpdateSchedulerJobResponse.Builder::schedulerJob) + .handleResponseHeaderString("etag", UpdateSchedulerJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateSchedulerJobResponse.Builder::opcRequestId) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsClient.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsClient.java new file mode 100644 index 00000000000..5eb481a68dd --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsClient.java @@ -0,0 +1,753 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementOperationsClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements FleetAppsManagementOperations { + /** Service instance for FleetAppsManagementOperations. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("FLEETAPPSMANAGEMENTOPERATIONS") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://fams.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FleetAppsManagementOperationsClient.class); + + private final FleetAppsManagementOperationsWaiters waiters; + + private final FleetAppsManagementOperationsPaginators paginators; + + FleetAppsManagementOperationsClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("FleetAppsManagementOperations-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new FleetAppsManagementOperationsWaiters(executorService, this); + + this.paginators = new FleetAppsManagementOperationsPaginators(this); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, FleetAppsManagementOperationsClient> { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "fleetappsmanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public FleetAppsManagementOperationsClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new FleetAppsManagementOperationsClient( + this, authenticationDetailsProvider, executorService); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public CreateSchedulerDefinitionResponse createSchedulerDefinition( + CreateSchedulerDefinitionRequest request) { + Objects.requireNonNull( + request.getCreateSchedulerDefinitionDetails(), + "createSchedulerDefinitionDetails is required"); + + return clientCall(request, CreateSchedulerDefinitionResponse::builder) + .logger(LOG, "createSchedulerDefinition") + .serviceDetails("FleetAppsManagementOperations", "CreateSchedulerDefinition", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateSchedulerDefinitionRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.class, + CreateSchedulerDefinitionResponse.Builder::schedulerDefinition) + .handleResponseHeaderString( + "location", CreateSchedulerDefinitionResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateSchedulerDefinitionResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateSchedulerDefinitionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateSchedulerDefinitionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateSchedulerDefinitionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteSchedulerDefinitionResponse deleteSchedulerDefinition( + DeleteSchedulerDefinitionRequest request) { + + Validate.notBlank( + request.getSchedulerDefinitionId(), "schedulerDefinitionId must not be blank"); + + return clientCall(request, DeleteSchedulerDefinitionResponse::builder) + .logger(LOG, "deleteSchedulerDefinition") + .serviceDetails("FleetAppsManagementOperations", "DeleteSchedulerDefinition", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSchedulerDefinitionRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .appendPathParam(request.getSchedulerDefinitionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteSchedulerDefinitionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteSchedulerJobResponse deleteSchedulerJob(DeleteSchedulerJobRequest request) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + + return clientCall(request, DeleteSchedulerJobResponse::builder) + .logger(LOG, "deleteSchedulerJob") + .serviceDetails("FleetAppsManagementOperations", "DeleteSchedulerJob", "") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteSchedulerJobRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteSchedulerJobResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetExecutionResponse getExecution(GetExecutionRequest request) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + + Validate.notBlank(request.getJobActivityId(), "jobActivityId must not be blank"); + + Validate.notBlank(request.getResourceId(), "resourceId must not be blank"); + + Validate.notBlank(request.getExecutionId(), "executionId must not be blank"); + + return clientCall(request, GetExecutionResponse::builder) + .logger(LOG, "getExecution") + .serviceDetails("FleetAppsManagementOperations", "GetExecution", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetExecutionRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .appendPathParam("jobActivities") + .appendPathParam(request.getJobActivityId()) + .appendPathParam("resources") + .appendPathParam(request.getResourceId()) + .appendPathParam("executions") + .appendPathParam(request.getExecutionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Execution.class, + GetExecutionResponse.Builder::execution) + .handleResponseHeaderString("etag", GetExecutionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetExecutionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetJobActivityResponse getJobActivity(GetJobActivityRequest request) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + + Validate.notBlank(request.getJobActivityId(), "jobActivityId must not be blank"); + + return clientCall(request, GetJobActivityResponse::builder) + .logger(LOG, "getJobActivity") + .serviceDetails("FleetAppsManagementOperations", "GetJobActivity", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetJobActivityRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .appendPathParam("jobActivities") + .appendPathParam(request.getJobActivityId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.JobActivity.class, + GetJobActivityResponse.Builder::jobActivity) + .handleResponseHeaderString("etag", GetJobActivityResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetJobActivityResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetSchedulerDefinitionResponse getSchedulerDefinition( + GetSchedulerDefinitionRequest request) { + + Validate.notBlank( + request.getSchedulerDefinitionId(), "schedulerDefinitionId must not be blank"); + + return clientCall(request, GetSchedulerDefinitionResponse::builder) + .logger(LOG, "getSchedulerDefinition") + .serviceDetails("FleetAppsManagementOperations", "GetSchedulerDefinition", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSchedulerDefinitionRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .appendPathParam(request.getSchedulerDefinitionId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.class, + GetSchedulerDefinitionResponse.Builder::schedulerDefinition) + .handleResponseHeaderString("etag", GetSchedulerDefinitionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSchedulerDefinitionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetSchedulerJobResponse getSchedulerJob(GetSchedulerJobRequest request) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + + return clientCall(request, GetSchedulerJobResponse::builder) + .logger(LOG, "getSchedulerJob") + .serviceDetails("FleetAppsManagementOperations", "GetSchedulerJob", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSchedulerJobRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.class, + GetSchedulerJobResponse.Builder::schedulerJob) + .handleResponseHeaderString("etag", GetSchedulerJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSchedulerJobResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListExecutionsResponse listExecutions(ListExecutionsRequest request) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + + Validate.notBlank(request.getJobActivityId(), "jobActivityId must not be blank"); + + Validate.notBlank(request.getResourceId(), "resourceId must not be blank"); + + return clientCall(request, ListExecutionsResponse::builder) + .logger(LOG, "listExecutions") + .serviceDetails("FleetAppsManagementOperations", "ListExecutions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListExecutionsRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .appendPathParam("jobActivities") + .appendPathParam(request.getJobActivityId()) + .appendPathParam("resources") + .appendPathParam(request.getResourceId()) + .appendPathParam("executions") + .appendQueryParam("resourceTaskId", request.getResourceTaskId()) + .appendQueryParam("stepName", request.getStepName()) + .appendQueryParam("targetName", request.getTargetName()) + .appendQueryParam("sequence", request.getSequence()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.ExecutionCollection.class, + ListExecutionsResponse.Builder::executionCollection) + .handleResponseHeaderString( + "opc-request-id", ListExecutionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListExecutionsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListScheduledFleetsResponse listScheduledFleets(ListScheduledFleetsRequest request) { + + Validate.notBlank( + request.getSchedulerDefinitionId(), "schedulerDefinitionId must not be blank"); + + return clientCall(request, ListScheduledFleetsResponse::builder) + .logger(LOG, "listScheduledFleets") + .serviceDetails("FleetAppsManagementOperations", "ListScheduledFleets", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListScheduledFleetsRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .appendPathParam(request.getSchedulerDefinitionId()) + .appendPathParam("scheduledFleets") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetCollection.class, + ListScheduledFleetsResponse.Builder::scheduledFleetCollection) + .handleResponseHeaderString( + "opc-request-id", ListScheduledFleetsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListScheduledFleetsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListSchedulerDefinitionsResponse listSchedulerDefinitions( + ListSchedulerDefinitionsRequest request) { + + return clientCall(request, ListSchedulerDefinitionsResponse::builder) + .logger(LOG, "listSchedulerDefinitions") + .serviceDetails("FleetAppsManagementOperations", "ListSchedulerDefinitions", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSchedulerDefinitionsRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("product", request.getProduct()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("maintenanceWindowId", request.getMaintenanceWindowId()) + .appendQueryParam("fleetId", request.getFleetId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionCollection + .class, + ListSchedulerDefinitionsResponse.Builder::schedulerDefinitionCollection) + .handleResponseHeaderString( + "opc-request-id", ListSchedulerDefinitionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSchedulerDefinitionsResponse.Builder::opcNextPage) + .handleResponseHeaderInteger( + "opc-total-items", ListSchedulerDefinitionsResponse.Builder::opcTotalItems) + .callSync(); + } + + @Override + public ListSchedulerJobsResponse listSchedulerJobs(ListSchedulerJobsRequest request) { + + return clientCall(request, ListSchedulerJobsResponse::builder) + .logger(LOG, "listSchedulerJobs") + .serviceDetails("FleetAppsManagementOperations", "ListSchedulerJobs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListSchedulerJobsRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("fleetId", request.getFleetId()) + .appendQueryParam( + "timeScheduledGreaterThanOrEqualTo", + request.getTimeScheduledGreaterThanOrEqualTo()) + .appendQueryParam("timeScheduledLessThan", request.getTimeScheduledLessThan()) + .appendQueryParam("isRemediationJobNeeded", request.getIsRemediationJobNeeded()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("defintionId", request.getDefintionId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerJobCollection.class, + ListSchedulerJobsResponse.Builder::schedulerJobCollection) + .handleResponseHeaderString( + "opc-request-id", ListSchedulerJobsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListSchedulerJobsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public UpdateSchedulerDefinitionResponse updateSchedulerDefinition( + UpdateSchedulerDefinitionRequest request) { + + Validate.notBlank( + request.getSchedulerDefinitionId(), "schedulerDefinitionId must not be blank"); + Objects.requireNonNull( + request.getUpdateSchedulerDefinitionDetails(), + "updateSchedulerDefinitionDetails is required"); + + return clientCall(request, UpdateSchedulerDefinitionResponse::builder) + .logger(LOG, "updateSchedulerDefinition") + .serviceDetails("FleetAppsManagementOperations", "UpdateSchedulerDefinition", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSchedulerDefinitionRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerDefinitions") + .appendPathParam(request.getSchedulerDefinitionId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSchedulerDefinitionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateSchedulerDefinitionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public UpdateSchedulerJobResponse updateSchedulerJob(UpdateSchedulerJobRequest request) { + + Validate.notBlank(request.getSchedulerJobId(), "schedulerJobId must not be blank"); + Objects.requireNonNull( + request.getUpdateSchedulerJobDetails(), "updateSchedulerJobDetails is required"); + + return clientCall(request, UpdateSchedulerJobResponse::builder) + .logger(LOG, "updateSchedulerJob") + .serviceDetails("FleetAppsManagementOperations", "UpdateSchedulerJob", "") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSchedulerJobRequest::builder) + .basePath("/20230831") + .appendPathParam("schedulerJobs") + .appendPathParam(request.getSchedulerJobId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.class, + UpdateSchedulerJobResponse.Builder::schedulerJob) + .handleResponseHeaderString("etag", UpdateSchedulerJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", UpdateSchedulerJobResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public FleetAppsManagementOperationsWaiters getWaiters() { + return waiters; + } + + @Override + public FleetAppsManagementOperationsPaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementOperationsClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsPaginators.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsPaginators.java new file mode 100644 index 00000000000..334a19c05c4 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsPaginators.java @@ -0,0 +1,527 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of FleetAppsManagementOperations where multiple pages of data may be + * fetched. Two styles of iteration are supported: + * + *

+ * + * These iterables abstract away the need to write code to manually handle pagination via looping + * and using the page tokens. They will automatically fetch more data from the service when + * required. + * + *

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementOperationsPaginators { + private final FleetAppsManagementOperations client; + + public FleetAppsManagementOperationsPaginators(FleetAppsManagementOperations client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listExecutions + * operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listExecutionsResponseIterator( + final ListExecutionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListExecutionsRequest.Builder, ListExecutionsRequest, ListExecutionsResponse>( + new java.util.function.Supplier() { + @Override + public ListExecutionsRequest.Builder get() { + return ListExecutionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListExecutionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionsRequest.Builder>, + ListExecutionsRequest>() { + @Override + public ListExecutionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListExecutionsResponse apply(ListExecutionsRequest request) { + return client.listExecutions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.ExecutionSummary} objects contained in responses + * from the listExecutions operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.ExecutionSummary} objects contained in responses + * received from the service. + */ + public Iterable + listExecutionsRecordIterator(final ListExecutionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListExecutionsRequest.Builder, + ListExecutionsRequest, + ListExecutionsResponse, + com.oracle.bmc.fleetappsmanagement.model.ExecutionSummary>( + new java.util.function.Supplier() { + @Override + public ListExecutionsRequest.Builder get() { + return ListExecutionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListExecutionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionsRequest.Builder>, + ListExecutionsRequest>() { + @Override + public ListExecutionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExecutionsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListExecutionsResponse apply(ListExecutionsRequest request) { + return client.listExecutions(request); + } + }, + new java.util.function.Function< + ListExecutionsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.ExecutionSummary>>() { + @Override + public java.util.List + apply(ListExecutionsResponse response) { + return response.getExecutionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listScheduledFleets operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listScheduledFleetsResponseIterator( + final ListScheduledFleetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListScheduledFleetsRequest.Builder, + ListScheduledFleetsRequest, + ListScheduledFleetsResponse>( + new java.util.function.Supplier() { + @Override + public ListScheduledFleetsRequest.Builder get() { + return ListScheduledFleetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListScheduledFleetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListScheduledFleetsRequest.Builder>, + ListScheduledFleetsRequest>() { + @Override + public ListScheduledFleetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListScheduledFleetsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListScheduledFleetsRequest, ListScheduledFleetsResponse>() { + @Override + public ListScheduledFleetsResponse apply(ListScheduledFleetsRequest request) { + return client.listScheduledFleets(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetSummary} objects contained in + * responses from the listScheduledFleets operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetSummary} objects contained in + * responses received from the service. + */ + public Iterable + listScheduledFleetsRecordIterator(final ListScheduledFleetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListScheduledFleetsRequest.Builder, + ListScheduledFleetsRequest, + ListScheduledFleetsResponse, + com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetSummary>( + new java.util.function.Supplier() { + @Override + public ListScheduledFleetsRequest.Builder get() { + return ListScheduledFleetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListScheduledFleetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListScheduledFleetsRequest.Builder>, + ListScheduledFleetsRequest>() { + @Override + public ListScheduledFleetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListScheduledFleetsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListScheduledFleetsRequest, ListScheduledFleetsResponse>() { + @Override + public ListScheduledFleetsResponse apply(ListScheduledFleetsRequest request) { + return client.listScheduledFleets(request); + } + }, + new java.util.function.Function< + ListScheduledFleetsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetSummary> + apply(ListScheduledFleetsResponse response) { + return response.getScheduledFleetCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSchedulerDefinitions operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listSchedulerDefinitionsResponseIterator( + final ListSchedulerDefinitionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSchedulerDefinitionsRequest.Builder, + ListSchedulerDefinitionsRequest, + ListSchedulerDefinitionsResponse>( + new java.util.function.Supplier() { + @Override + public ListSchedulerDefinitionsRequest.Builder get() { + return ListSchedulerDefinitionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulerDefinitionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulerDefinitionsRequest.Builder>, + ListSchedulerDefinitionsRequest>() { + @Override + public ListSchedulerDefinitionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulerDefinitionsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListSchedulerDefinitionsRequest, ListSchedulerDefinitionsResponse>() { + @Override + public ListSchedulerDefinitionsResponse apply( + ListSchedulerDefinitionsRequest request) { + return client.listSchedulerDefinitions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionSummary} objects contained in + * responses from the listSchedulerDefinitions operation. This iterable will fetch more data + * from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionSummary} objects contained in + * responses received from the service. + */ + public Iterable + listSchedulerDefinitionsRecordIterator(final ListSchedulerDefinitionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSchedulerDefinitionsRequest.Builder, + ListSchedulerDefinitionsRequest, + ListSchedulerDefinitionsResponse, + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionSummary>( + new java.util.function.Supplier() { + @Override + public ListSchedulerDefinitionsRequest.Builder get() { + return ListSchedulerDefinitionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulerDefinitionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulerDefinitionsRequest.Builder>, + ListSchedulerDefinitionsRequest>() { + @Override + public ListSchedulerDefinitionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulerDefinitionsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListSchedulerDefinitionsRequest, ListSchedulerDefinitionsResponse>() { + @Override + public ListSchedulerDefinitionsResponse apply( + ListSchedulerDefinitionsRequest request) { + return client.listSchedulerDefinitions(request); + } + }, + new java.util.function.Function< + ListSchedulerDefinitionsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model + .SchedulerDefinitionSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model + .SchedulerDefinitionSummary> + apply(ListSchedulerDefinitionsResponse response) { + return response.getSchedulerDefinitionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listSchedulerJobs operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listSchedulerJobsResponseIterator( + final ListSchedulerJobsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListSchedulerJobsRequest.Builder, + ListSchedulerJobsRequest, + ListSchedulerJobsResponse>( + new java.util.function.Supplier() { + @Override + public ListSchedulerJobsRequest.Builder get() { + return ListSchedulerJobsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulerJobsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulerJobsRequest.Builder>, + ListSchedulerJobsRequest>() { + @Override + public ListSchedulerJobsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulerJobsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListSchedulerJobsRequest, ListSchedulerJobsResponse>() { + @Override + public ListSchedulerJobsResponse apply(ListSchedulerJobsRequest request) { + return client.listSchedulerJobs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.SchedulerJobSummary} objects contained in responses + * from the listSchedulerJobs operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.SchedulerJobSummary} objects contained in + * responses received from the service. + */ + public Iterable + listSchedulerJobsRecordIterator(final ListSchedulerJobsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListSchedulerJobsRequest.Builder, + ListSchedulerJobsRequest, + ListSchedulerJobsResponse, + com.oracle.bmc.fleetappsmanagement.model.SchedulerJobSummary>( + new java.util.function.Supplier() { + @Override + public ListSchedulerJobsRequest.Builder get() { + return ListSchedulerJobsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListSchedulerJobsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulerJobsRequest.Builder>, + ListSchedulerJobsRequest>() { + @Override + public ListSchedulerJobsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListSchedulerJobsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListSchedulerJobsRequest, ListSchedulerJobsResponse>() { + @Override + public ListSchedulerJobsResponse apply(ListSchedulerJobsRequest request) { + return client.listSchedulerJobs(request); + } + }, + new java.util.function.Function< + ListSchedulerJobsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.SchedulerJobSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.SchedulerJobSummary> + apply(ListSchedulerJobsResponse response) { + return response.getSchedulerJobCollection().getItems(); + } + }); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsWaiters.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsWaiters.java new file mode 100644 index 00000000000..bc3326ea88b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementOperationsWaiters.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of FleetAppsManagementOperations. + * + *

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementOperationsWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final FleetAppsManagementOperations client; + + public FleetAppsManagementOperationsWaiters( + java.util.concurrent.ExecutorService executorService, + FleetAppsManagementOperations client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetSchedulerDefinitionRequest, GetSchedulerDefinitionResponse> + forSchedulerDefinition( + GetSchedulerDefinitionRequest request, + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forSchedulerDefinition( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetSchedulerDefinitionRequest, GetSchedulerDefinitionResponse> + forSchedulerDefinition( + GetSchedulerDefinitionRequest request, + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forSchedulerDefinition( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetSchedulerDefinitionRequest, GetSchedulerDefinitionResponse> + forSchedulerDefinition( + GetSchedulerDefinitionRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forSchedulerDefinition( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for SchedulerDefinition. + private com.oracle.bmc.waiter.Waiter< + GetSchedulerDefinitionRequest, GetSchedulerDefinitionResponse> + forSchedulerDefinition( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetSchedulerDefinitionRequest request, + final com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetSchedulerDefinitionRequest, GetSchedulerDefinitionResponse>() { + @Override + public GetSchedulerDefinitionResponse apply( + GetSchedulerDefinitionRequest request) { + return client.getSchedulerDefinition(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetSchedulerDefinitionResponse response) { + return targetStatesSet.contains( + response.getSchedulerDefinition().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition + .LifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forSchedulerJob( + GetSchedulerJobRequest request, + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forSchedulerJob( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forSchedulerJob( + GetSchedulerJobRequest request, + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forSchedulerJob( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forSchedulerJob( + GetSchedulerJobRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forSchedulerJob( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for SchedulerJob. + private com.oracle.bmc.waiter.Waiter + forSchedulerJob( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetSchedulerJobRequest request, + final com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetSchedulerJobRequest, GetSchedulerJobResponse>() { + @Override + public GetSchedulerJobResponse apply(GetSchedulerJobRequest request) { + return client.getSchedulerJob(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetSchedulerJobResponse response) { + return targetStatesSet.contains( + response.getSchedulerJob().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementPaginators.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementPaginators.java new file mode 100644 index 00000000000..34e8459306c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementPaginators.java @@ -0,0 +1,1487 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of FleetAppsManagement where multiple pages of data may be fetched. Two + * styles of iteration are supported: + * + *

+ * + * These iterables abstract away the need to write code to manually handle pagination via looping + * and using the page tokens. They will automatically fetch more data from the service when + * required. + * + *

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementPaginators { + private final FleetAppsManagement client; + + public FleetAppsManagementPaginators(FleetAppsManagement client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listAnnouncements operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listAnnouncementsResponseIterator( + final ListAnnouncementsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAnnouncementsRequest.Builder, + ListAnnouncementsRequest, + ListAnnouncementsResponse>( + new java.util.function.Supplier() { + @Override + public ListAnnouncementsRequest.Builder get() { + return ListAnnouncementsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAnnouncementsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAnnouncementsRequest.Builder>, + ListAnnouncementsRequest>() { + @Override + public ListAnnouncementsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAnnouncementsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListAnnouncementsRequest, ListAnnouncementsResponse>() { + @Override + public ListAnnouncementsResponse apply(ListAnnouncementsRequest request) { + return client.listAnnouncements(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.AnnouncementSummary} objects contained in responses + * from the listAnnouncements operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.AnnouncementSummary} objects contained in + * responses received from the service. + */ + public Iterable + listAnnouncementsRecordIterator(final ListAnnouncementsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAnnouncementsRequest.Builder, + ListAnnouncementsRequest, + ListAnnouncementsResponse, + com.oracle.bmc.fleetappsmanagement.model.AnnouncementSummary>( + new java.util.function.Supplier() { + @Override + public ListAnnouncementsRequest.Builder get() { + return ListAnnouncementsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAnnouncementsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAnnouncementsRequest.Builder>, + ListAnnouncementsRequest>() { + @Override + public ListAnnouncementsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAnnouncementsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListAnnouncementsRequest, ListAnnouncementsResponse>() { + @Override + public ListAnnouncementsResponse apply(ListAnnouncementsRequest request) { + return client.listAnnouncements(request); + } + }, + new java.util.function.Function< + ListAnnouncementsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.AnnouncementSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.AnnouncementSummary> + apply(ListAnnouncementsResponse response) { + return response.getAnnouncementCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listFleetCredentials operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listFleetCredentialsResponseIterator( + final ListFleetCredentialsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListFleetCredentialsRequest.Builder, + ListFleetCredentialsRequest, + ListFleetCredentialsResponse>( + new java.util.function.Supplier() { + @Override + public ListFleetCredentialsRequest.Builder get() { + return ListFleetCredentialsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetCredentialsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetCredentialsRequest.Builder>, + ListFleetCredentialsRequest>() { + @Override + public ListFleetCredentialsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetCredentialsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListFleetCredentialsRequest, ListFleetCredentialsResponse>() { + @Override + public ListFleetCredentialsResponse apply(ListFleetCredentialsRequest request) { + return client.listFleetCredentials(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetCredentialSummary} objects contained in + * responses from the listFleetCredentials operation. This iterable will fetch more data from + * the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetCredentialSummary} objects contained in + * responses received from the service. + */ + public Iterable + listFleetCredentialsRecordIterator(final ListFleetCredentialsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListFleetCredentialsRequest.Builder, + ListFleetCredentialsRequest, + ListFleetCredentialsResponse, + com.oracle.bmc.fleetappsmanagement.model.FleetCredentialSummary>( + new java.util.function.Supplier() { + @Override + public ListFleetCredentialsRequest.Builder get() { + return ListFleetCredentialsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetCredentialsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetCredentialsRequest.Builder>, + ListFleetCredentialsRequest>() { + @Override + public ListFleetCredentialsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetCredentialsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListFleetCredentialsRequest, ListFleetCredentialsResponse>() { + @Override + public ListFleetCredentialsResponse apply(ListFleetCredentialsRequest request) { + return client.listFleetCredentials(request); + } + }, + new java.util.function.Function< + ListFleetCredentialsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model + .FleetCredentialSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.FleetCredentialSummary> + apply(ListFleetCredentialsResponse response) { + return response.getFleetCredentialCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listFleetProducts operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listFleetProductsResponseIterator( + final ListFleetProductsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListFleetProductsRequest.Builder, + ListFleetProductsRequest, + ListFleetProductsResponse>( + new java.util.function.Supplier() { + @Override + public ListFleetProductsRequest.Builder get() { + return ListFleetProductsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetProductsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetProductsRequest.Builder>, + ListFleetProductsRequest>() { + @Override + public ListFleetProductsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetProductsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListFleetProductsRequest, ListFleetProductsResponse>() { + @Override + public ListFleetProductsResponse apply(ListFleetProductsRequest request) { + return client.listFleetProducts(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetProductSummary} objects contained in responses + * from the listFleetProducts operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetProductSummary} objects contained in + * responses received from the service. + */ + public Iterable + listFleetProductsRecordIterator(final ListFleetProductsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListFleetProductsRequest.Builder, + ListFleetProductsRequest, + ListFleetProductsResponse, + com.oracle.bmc.fleetappsmanagement.model.FleetProductSummary>( + new java.util.function.Supplier() { + @Override + public ListFleetProductsRequest.Builder get() { + return ListFleetProductsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetProductsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetProductsRequest.Builder>, + ListFleetProductsRequest>() { + @Override + public ListFleetProductsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetProductsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListFleetProductsRequest, ListFleetProductsResponse>() { + @Override + public ListFleetProductsResponse apply(ListFleetProductsRequest request) { + return client.listFleetProducts(request); + } + }, + new java.util.function.Function< + ListFleetProductsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.FleetProductSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.FleetProductSummary> + apply(ListFleetProductsResponse response) { + return response.getFleetProductCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listFleetProperties operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listFleetPropertiesResponseIterator( + final ListFleetPropertiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListFleetPropertiesRequest.Builder, + ListFleetPropertiesRequest, + ListFleetPropertiesResponse>( + new java.util.function.Supplier() { + @Override + public ListFleetPropertiesRequest.Builder get() { + return ListFleetPropertiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetPropertiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetPropertiesRequest.Builder>, + ListFleetPropertiesRequest>() { + @Override + public ListFleetPropertiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetPropertiesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListFleetPropertiesRequest, ListFleetPropertiesResponse>() { + @Override + public ListFleetPropertiesResponse apply(ListFleetPropertiesRequest request) { + return client.listFleetProperties(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetPropertySummary} objects contained in responses + * from the listFleetProperties operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetPropertySummary} objects contained in + * responses received from the service. + */ + public Iterable + listFleetPropertiesRecordIterator(final ListFleetPropertiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListFleetPropertiesRequest.Builder, + ListFleetPropertiesRequest, + ListFleetPropertiesResponse, + com.oracle.bmc.fleetappsmanagement.model.FleetPropertySummary>( + new java.util.function.Supplier() { + @Override + public ListFleetPropertiesRequest.Builder get() { + return ListFleetPropertiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetPropertiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetPropertiesRequest.Builder>, + ListFleetPropertiesRequest>() { + @Override + public ListFleetPropertiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetPropertiesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListFleetPropertiesRequest, ListFleetPropertiesResponse>() { + @Override + public ListFleetPropertiesResponse apply(ListFleetPropertiesRequest request) { + return client.listFleetProperties(request); + } + }, + new java.util.function.Function< + ListFleetPropertiesResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.FleetPropertySummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.FleetPropertySummary> + apply(ListFleetPropertiesResponse response) { + return response.getFleetPropertyCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listFleetResources operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listFleetResourcesResponseIterator( + final ListFleetResourcesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListFleetResourcesRequest.Builder, + ListFleetResourcesRequest, + ListFleetResourcesResponse>( + new java.util.function.Supplier() { + @Override + public ListFleetResourcesRequest.Builder get() { + return ListFleetResourcesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetResourcesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetResourcesRequest.Builder>, + ListFleetResourcesRequest>() { + @Override + public ListFleetResourcesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetResourcesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListFleetResourcesRequest, ListFleetResourcesResponse>() { + @Override + public ListFleetResourcesResponse apply(ListFleetResourcesRequest request) { + return client.listFleetResources(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetResourceSummary} objects contained in responses + * from the listFleetResources operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetResourceSummary} objects contained in + * responses received from the service. + */ + public Iterable + listFleetResourcesRecordIterator(final ListFleetResourcesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListFleetResourcesRequest.Builder, + ListFleetResourcesRequest, + ListFleetResourcesResponse, + com.oracle.bmc.fleetappsmanagement.model.FleetResourceSummary>( + new java.util.function.Supplier() { + @Override + public ListFleetResourcesRequest.Builder get() { + return ListFleetResourcesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetResourcesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetResourcesRequest.Builder>, + ListFleetResourcesRequest>() { + @Override + public ListFleetResourcesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetResourcesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListFleetResourcesRequest, ListFleetResourcesResponse>() { + @Override + public ListFleetResourcesResponse apply(ListFleetResourcesRequest request) { + return client.listFleetResources(request); + } + }, + new java.util.function.Function< + ListFleetResourcesResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.FleetResourceSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.FleetResourceSummary> + apply(ListFleetResourcesResponse response) { + return response.getFleetResourceCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listFleetTargets operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listFleetTargetsResponseIterator( + final ListFleetTargetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListFleetTargetsRequest.Builder, ListFleetTargetsRequest, ListFleetTargetsResponse>( + new java.util.function.Supplier() { + @Override + public ListFleetTargetsRequest.Builder get() { + return ListFleetTargetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetTargetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetTargetsRequest.Builder>, + ListFleetTargetsRequest>() { + @Override + public ListFleetTargetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetTargetsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListFleetTargetsRequest, ListFleetTargetsResponse>() { + @Override + public ListFleetTargetsResponse apply(ListFleetTargetsRequest request) { + return client.listFleetTargets(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary} objects contained in responses + * from the listFleetTargets operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary} objects contained in + * responses received from the service. + */ + public Iterable + listFleetTargetsRecordIterator(final ListFleetTargetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListFleetTargetsRequest.Builder, + ListFleetTargetsRequest, + ListFleetTargetsResponse, + com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary>( + new java.util.function.Supplier() { + @Override + public ListFleetTargetsRequest.Builder get() { + return ListFleetTargetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetTargetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetTargetsRequest.Builder>, + ListFleetTargetsRequest>() { + @Override + public ListFleetTargetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetTargetsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListFleetTargetsRequest, ListFleetTargetsResponse>() { + @Override + public ListFleetTargetsResponse apply(ListFleetTargetsRequest request) { + return client.listFleetTargets(request); + } + }, + new java.util.function.Function< + ListFleetTargetsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary> + apply(ListFleetTargetsResponse response) { + return response.getFleetTargetCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listFleets + * operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listFleetsResponseIterator( + final ListFleetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListFleetsRequest.Builder, ListFleetsRequest, ListFleetsResponse>( + new java.util.function.Supplier() { + @Override + public ListFleetsRequest.Builder get() { + return ListFleetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetsRequest.Builder>, + ListFleetsRequest>() { + @Override + public ListFleetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListFleetsResponse apply(ListFleetsRequest request) { + return client.listFleets(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetSummary} objects contained in responses from + * the listFleets operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetSummary} objects contained in responses + * received from the service. + */ + public Iterable listFleetsRecordIterator( + final ListFleetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListFleetsRequest.Builder, + ListFleetsRequest, + ListFleetsResponse, + com.oracle.bmc.fleetappsmanagement.model.FleetSummary>( + new java.util.function.Supplier() { + @Override + public ListFleetsRequest.Builder get() { + return ListFleetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListFleetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetsRequest.Builder>, + ListFleetsRequest>() { + @Override + public ListFleetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFleetsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListFleetsResponse apply(ListFleetsRequest request) { + return client.listFleets(request); + } + }, + new java.util.function.Function< + ListFleetsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListFleetsResponse response) { + return response.getFleetCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listInventoryResources operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listInventoryResourcesResponseIterator( + final ListInventoryResourcesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListInventoryResourcesRequest.Builder, + ListInventoryResourcesRequest, + ListInventoryResourcesResponse>( + new java.util.function.Supplier() { + @Override + public ListInventoryResourcesRequest.Builder get() { + return ListInventoryResourcesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInventoryResourcesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInventoryResourcesRequest.Builder>, + ListInventoryResourcesRequest>() { + @Override + public ListInventoryResourcesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInventoryResourcesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListInventoryResourcesRequest, ListInventoryResourcesResponse>() { + @Override + public ListInventoryResourcesResponse apply( + ListInventoryResourcesRequest request) { + return client.listInventoryResources(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.InventoryResourceSummary} objects contained in + * responses from the listInventoryResources operation. This iterable will fetch more data from + * the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.InventoryResourceSummary} objects contained in + * responses received from the service. + */ + public Iterable + listInventoryResourcesRecordIterator(final ListInventoryResourcesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListInventoryResourcesRequest.Builder, + ListInventoryResourcesRequest, + ListInventoryResourcesResponse, + com.oracle.bmc.fleetappsmanagement.model.InventoryResourceSummary>( + new java.util.function.Supplier() { + @Override + public ListInventoryResourcesRequest.Builder get() { + return ListInventoryResourcesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInventoryResourcesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInventoryResourcesRequest.Builder>, + ListInventoryResourcesRequest>() { + @Override + public ListInventoryResourcesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInventoryResourcesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListInventoryResourcesRequest, ListInventoryResourcesResponse>() { + @Override + public ListInventoryResourcesResponse apply( + ListInventoryResourcesRequest request) { + return client.listInventoryResources(request); + } + }, + new java.util.function.Function< + ListInventoryResourcesResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model + .InventoryResourceSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model + .InventoryResourceSummary> + apply(ListInventoryResourcesResponse response) { + return response.getInventoryResourceCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listTargets + * operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listTargetsResponseIterator( + final ListTargetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListTargetsRequest.Builder, ListTargetsRequest, ListTargetsResponse>( + new java.util.function.Supplier() { + @Override + public ListTargetsRequest.Builder get() { + return ListTargetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListTargetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetsRequest.Builder>, + ListTargetsRequest>() { + @Override + public ListTargetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListTargetsResponse apply(ListTargetsRequest request) { + return client.listTargets(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary} objects contained in responses + * from the listTargets operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary} objects contained in + * responses received from the service. + */ + public Iterable + listTargetsRecordIterator(final ListTargetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListTargetsRequest.Builder, + ListTargetsRequest, + ListTargetsResponse, + com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary>( + new java.util.function.Supplier() { + @Override + public ListTargetsRequest.Builder get() { + return ListTargetsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListTargetsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetsRequest.Builder>, + ListTargetsRequest>() { + @Override + public ListTargetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTargetsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListTargetsResponse apply(ListTargetsRequest request) { + return client.listTargets(request); + } + }, + new java.util.function.Function< + ListTargetsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary> + apply(ListTargetsResponse response) { + return response.getFleetTargetCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequestErrors operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestErrorsResponseIterator( + final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestErrorsRequest.Builder, + ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.WorkRequestError} objects contained in responses + * from the listWorkRequestErrors operation. This iterable will fetch more data from the server + * as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.WorkRequestError} objects contained in responses + * received from the service. + */ + public Iterable + listWorkRequestErrorsRecordIterator(final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestErrorsRequest.Builder, + ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse, + com.oracle.bmc.fleetappsmanagement.model.WorkRequestError>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }, + new java.util.function.Function< + ListWorkRequestErrorsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.WorkRequestError>>() { + @Override + public java.util.List + apply(ListWorkRequestErrorsResponse response) { + return response.getWorkRequestErrorCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequestLogs operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestLogsResponseIterator( + final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestLogsRequest.Builder, + ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntry} objects contained in responses + * from the listWorkRequestLogs operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntry} objects contained in + * responses received from the service. + */ + public Iterable + listWorkRequestLogsRecordIterator(final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestLogsRequest.Builder, + ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse, + com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntry>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }, + new java.util.function.Function< + ListWorkRequestLogsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntry>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntry> + apply(ListWorkRequestLogsResponse response) { + return response.getWorkRequestLogEntryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listWorkRequests operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listWorkRequestsResponseIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummary} objects contained in responses + * from the listWorkRequests operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummary} objects contained in + * responses received from the service. + */ + public Iterable + listWorkRequestsRecordIterator(final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestsRequest.Builder, + ListWorkRequestsRequest, + ListWorkRequestsResponse, + com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummary>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }, + new java.util.function.Function< + ListWorkRequestsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummary> + apply(ListWorkRequestsResponse response) { + return response.getWorkRequestSummaryCollection().getItems(); + } + }); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooks.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooks.java new file mode 100644 index 00000000000..d04ee165476 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooks.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Fleet Application Management Service API. Use this API to for all FAMS related activities. To + * manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * + *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by + * default if no circuit breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public interface FleetAppsManagementRunbooks extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this Region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Gets a Runbook by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetRunbook API. + */ + GetRunbookResponse getRunbook(GetRunbookRequest request); + + /** + * Gets a TaskRecord by identifier + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetTaskRecord API. + */ + GetTaskRecordResponse getTaskRecord(GetTaskRecordRequest request); + + /** + * Returns a list of Runbooks. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListRunbooks API. + */ + ListRunbooksResponse listRunbooks(ListRunbooksRequest request); + + /** + * Returns a list of TaskRecords. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListTaskRecords + * API. + */ + ListTaskRecordsResponse listTaskRecords(ListTaskRecordsRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + FleetAppsManagementRunbooksWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * interface so that service responses, or resources/records, can be iterated through without + * having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + FleetAppsManagementRunbooksPaginators getPaginators(); +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksAsync.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksAsync.java new file mode 100644 index 00000000000..3cb529e7821 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksAsync.java @@ -0,0 +1,123 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Fleet Application Management Service API. Use this API to for all FAMS related activities. To + * manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public interface FleetAppsManagementRunbooksAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Gets a Runbook by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getRunbook( + GetRunbookRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets a TaskRecord by identifier + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getTaskRecord( + GetTaskRecordRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of Runbooks. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listRunbooks( + ListRunbooksRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of TaskRecords. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listTaskRecords( + ListTaskRecordsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksAsyncClient.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksAsyncClient.java new file mode 100644 index 00000000000..67cd064c2da --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksAsyncClient.java @@ -0,0 +1,384 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for FleetAppsManagementRunbooks service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementRunbooksAsyncClient + extends com.oracle.bmc.http.internal.BaseAsyncClient + implements FleetAppsManagementRunbooksAsync { + /** Service instance for FleetAppsManagementRunbooks. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("FLEETAPPSMANAGEMENTRUNBOOKS") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://fams.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FleetAppsManagementRunbooksAsyncClient.class); + + FleetAppsManagementRunbooksAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, FleetAppsManagementRunbooksAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "fleetappsmanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public FleetAppsManagementRunbooksAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new FleetAppsManagementRunbooksAsyncClient(this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future getRunbook( + GetRunbookRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getRunbookId(), "runbookId must not be blank"); + + return clientCall(request, GetRunbookResponse::builder) + .logger(LOG, "getRunbook") + .serviceDetails("FleetAppsManagementRunbooks", "GetRunbook", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetRunbookRequest::builder) + .basePath("/20230831") + .appendPathParam("runbooks") + .appendPathParam(request.getRunbookId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Runbook.class, + GetRunbookResponse.Builder::runbook) + .handleResponseHeaderString("etag", GetRunbookResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetRunbookResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getTaskRecord( + GetTaskRecordRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getTaskRecordId(), "taskRecordId must not be blank"); + + return clientCall(request, GetTaskRecordResponse::builder) + .logger(LOG, "getTaskRecord") + .serviceDetails("FleetAppsManagementRunbooks", "GetTaskRecord", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetTaskRecordRequest::builder) + .basePath("/20230831") + .appendPathParam("taskRecords") + .appendPathParam(request.getTaskRecordId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.TaskRecord.class, + GetTaskRecordResponse.Builder::taskRecord) + .handleResponseHeaderString("etag", GetTaskRecordResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetTaskRecordResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listRunbooks( + ListRunbooksRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + return clientCall(request, ListRunbooksResponse::builder) + .logger(LOG, "listRunbooks") + .serviceDetails("FleetAppsManagementRunbooks", "ListRunbooks", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRunbooksRequest::builder) + .basePath("/20230831") + .appendPathParam("runbooks") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendEnumQueryParam("type", request.getType()) + .appendEnumQueryParam("runbookRelevance", request.getRunbookRelevance()) + .appendQueryParam("platform", request.getPlatform()) + .appendQueryParam("operation", request.getOperation()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.RunbookCollection.class, + ListRunbooksResponse.Builder::runbookCollection) + .handleResponseHeaderString( + "opc-request-id", ListRunbooksResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListRunbooksResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listTaskRecords( + ListTaskRecordsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListTaskRecordsRequest, ListTaskRecordsResponse> + handler) { + + return clientCall(request, ListTaskRecordsResponse::builder) + .logger(LOG, "listTaskRecords") + .serviceDetails("FleetAppsManagementRunbooks", "ListTaskRecords", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListTaskRecordsRequest::builder) + .basePath("/20230831") + .appendPathParam("taskRecords") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("platform", request.getPlatform()) + .appendEnumQueryParam("type", request.getType()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.TaskRecordCollection.class, + ListTaskRecordsResponse.Builder::taskRecordCollection) + .handleResponseHeaderString( + "opc-request-id", ListTaskRecordsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListTaskRecordsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksClient.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksClient.java new file mode 100644 index 00000000000..e3497ba9e49 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksClient.java @@ -0,0 +1,458 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementRunbooksClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements FleetAppsManagementRunbooks { + /** Service instance for FleetAppsManagementRunbooks. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("FLEETAPPSMANAGEMENTRUNBOOKS") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://fams.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FleetAppsManagementRunbooksClient.class); + + private final FleetAppsManagementRunbooksWaiters waiters; + + private final FleetAppsManagementRunbooksPaginators paginators; + + FleetAppsManagementRunbooksClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("FleetAppsManagementRunbooks-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new FleetAppsManagementRunbooksWaiters(executorService, this); + + this.paginators = new FleetAppsManagementRunbooksPaginators(this); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, FleetAppsManagementRunbooksClient> { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "fleetappsmanagement"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public FleetAppsManagementRunbooksClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new FleetAppsManagementRunbooksClient( + this, authenticationDetailsProvider, executorService); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public GetRunbookResponse getRunbook(GetRunbookRequest request) { + + Validate.notBlank(request.getRunbookId(), "runbookId must not be blank"); + + return clientCall(request, GetRunbookResponse::builder) + .logger(LOG, "getRunbook") + .serviceDetails("FleetAppsManagementRunbooks", "GetRunbook", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetRunbookRequest::builder) + .basePath("/20230831") + .appendPathParam("runbooks") + .appendPathParam(request.getRunbookId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.Runbook.class, + GetRunbookResponse.Builder::runbook) + .handleResponseHeaderString("etag", GetRunbookResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetRunbookResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetTaskRecordResponse getTaskRecord(GetTaskRecordRequest request) { + + Validate.notBlank(request.getTaskRecordId(), "taskRecordId must not be blank"); + + return clientCall(request, GetTaskRecordResponse::builder) + .logger(LOG, "getTaskRecord") + .serviceDetails("FleetAppsManagementRunbooks", "GetTaskRecord", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetTaskRecordRequest::builder) + .basePath("/20230831") + .appendPathParam("taskRecords") + .appendPathParam(request.getTaskRecordId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.TaskRecord.class, + GetTaskRecordResponse.Builder::taskRecord) + .handleResponseHeaderString("etag", GetTaskRecordResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetTaskRecordResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListRunbooksResponse listRunbooks(ListRunbooksRequest request) { + + return clientCall(request, ListRunbooksResponse::builder) + .logger(LOG, "listRunbooks") + .serviceDetails("FleetAppsManagementRunbooks", "ListRunbooks", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRunbooksRequest::builder) + .basePath("/20230831") + .appendPathParam("runbooks") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendEnumQueryParam("type", request.getType()) + .appendEnumQueryParam("runbookRelevance", request.getRunbookRelevance()) + .appendQueryParam("platform", request.getPlatform()) + .appendQueryParam("operation", request.getOperation()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.RunbookCollection.class, + ListRunbooksResponse.Builder::runbookCollection) + .handleResponseHeaderString( + "opc-request-id", ListRunbooksResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListRunbooksResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListTaskRecordsResponse listTaskRecords(ListTaskRecordsRequest request) { + + return clientCall(request, ListTaskRecordsResponse::builder) + .logger(LOG, "listTaskRecords") + .serviceDetails("FleetAppsManagementRunbooks", "ListTaskRecords", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListTaskRecordsRequest::builder) + .basePath("/20230831") + .appendPathParam("taskRecords") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("platform", request.getPlatform()) + .appendEnumQueryParam("type", request.getType()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.fleetappsmanagement.model.TaskRecordCollection.class, + ListTaskRecordsResponse.Builder::taskRecordCollection) + .handleResponseHeaderString( + "opc-request-id", ListTaskRecordsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListTaskRecordsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public FleetAppsManagementRunbooksWaiters getWaiters() { + return waiters; + } + + @Override + public FleetAppsManagementRunbooksPaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public FleetAppsManagementRunbooksClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksPaginators.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksPaginators.java new file mode 100644 index 00000000000..f6ad5a86bb6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksPaginators.java @@ -0,0 +1,274 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of FleetAppsManagementRunbooks where multiple pages of data may be + * fetched. Two styles of iteration are supported: + * + *

+ * + * These iterables abstract away the need to write code to manually handle pagination via looping + * and using the page tokens. They will automatically fetch more data from the service when + * required. + * + *

As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementRunbooksPaginators { + private final FleetAppsManagementRunbooks client; + + public FleetAppsManagementRunbooksPaginators(FleetAppsManagementRunbooks client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listRunbooks + * operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listRunbooksResponseIterator( + final ListRunbooksRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListRunbooksRequest.Builder, ListRunbooksRequest, ListRunbooksResponse>( + new java.util.function.Supplier() { + @Override + public ListRunbooksRequest.Builder get() { + return ListRunbooksRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRunbooksResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunbooksRequest.Builder>, + ListRunbooksRequest>() { + @Override + public ListRunbooksRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunbooksRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListRunbooksResponse apply(ListRunbooksRequest request) { + return client.listRunbooks(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.RunbookSummary} objects contained in responses from + * the listRunbooks operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.RunbookSummary} objects contained in responses + * received from the service. + */ + public Iterable + listRunbooksRecordIterator(final ListRunbooksRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListRunbooksRequest.Builder, + ListRunbooksRequest, + ListRunbooksResponse, + com.oracle.bmc.fleetappsmanagement.model.RunbookSummary>( + new java.util.function.Supplier() { + @Override + public ListRunbooksRequest.Builder get() { + return ListRunbooksRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRunbooksResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunbooksRequest.Builder>, + ListRunbooksRequest>() { + @Override + public ListRunbooksRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunbooksRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListRunbooksResponse apply(ListRunbooksRequest request) { + return client.listRunbooks(request); + } + }, + new java.util.function.Function< + ListRunbooksResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListRunbooksResponse response) { + return response.getRunbookCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listTaskRecords operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listTaskRecordsResponseIterator( + final ListTaskRecordsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListTaskRecordsRequest.Builder, ListTaskRecordsRequest, ListTaskRecordsResponse>( + new java.util.function.Supplier() { + @Override + public ListTaskRecordsRequest.Builder get() { + return ListTaskRecordsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListTaskRecordsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTaskRecordsRequest.Builder>, + ListTaskRecordsRequest>() { + @Override + public ListTaskRecordsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTaskRecordsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListTaskRecordsResponse apply(ListTaskRecordsRequest request) { + return client.listTaskRecords(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.TaskRecordSummary} objects contained in responses + * from the listTaskRecords operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.fleetappsmanagement.model.TaskRecordSummary} objects contained in + * responses received from the service. + */ + public Iterable + listTaskRecordsRecordIterator(final ListTaskRecordsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListTaskRecordsRequest.Builder, + ListTaskRecordsRequest, + ListTaskRecordsResponse, + com.oracle.bmc.fleetappsmanagement.model.TaskRecordSummary>( + new java.util.function.Supplier() { + @Override + public ListTaskRecordsRequest.Builder get() { + return ListTaskRecordsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListTaskRecordsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTaskRecordsRequest.Builder>, + ListTaskRecordsRequest>() { + @Override + public ListTaskRecordsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTaskRecordsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListTaskRecordsResponse apply(ListTaskRecordsRequest request) { + return client.listTaskRecords(request); + } + }, + new java.util.function.Function< + ListTaskRecordsResponse, + java.util.List< + com.oracle.bmc.fleetappsmanagement.model.TaskRecordSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.fleetappsmanagement.model.TaskRecordSummary> + apply(ListTaskRecordsResponse response) { + return response.getTaskRecordCollection().getItems(); + } + }); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksWaiters.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksWaiters.java new file mode 100644 index 00000000000..bb98eb9b126 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementRunbooksWaiters.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of FleetAppsManagementRunbooks. + * + *

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementRunbooksWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final FleetAppsManagementRunbooks client; + + public FleetAppsManagementRunbooksWaiters( + java.util.concurrent.ExecutorService executorService, + FleetAppsManagementRunbooks client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forRunbook( + GetRunbookRequest request, + com.oracle.bmc.fleetappsmanagement.model.Runbook.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forRunbook( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forRunbook( + GetRunbookRequest request, + com.oracle.bmc.fleetappsmanagement.model.Runbook.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forRunbook( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forRunbook( + GetRunbookRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fleetappsmanagement.model.Runbook.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forRunbook( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Runbook. + private com.oracle.bmc.waiter.Waiter forRunbook( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetRunbookRequest request, + final com.oracle.bmc.fleetappsmanagement.model.Runbook.LifecycleState... targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function() { + @Override + public GetRunbookResponse apply(GetRunbookRequest request) { + return client.getRunbook(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetRunbookResponse response) { + return targetStatesSet.contains( + response.getRunbook().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.fleetappsmanagement.model.Runbook.LifecycleState + .Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forTaskRecord( + GetTaskRecordRequest request, + com.oracle.bmc.fleetappsmanagement.model.TaskRecord.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forTaskRecord( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forTaskRecord( + GetTaskRecordRequest request, + com.oracle.bmc.fleetappsmanagement.model.TaskRecord.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forTaskRecord( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forTaskRecord( + GetTaskRecordRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fleetappsmanagement.model.TaskRecord.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forTaskRecord( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for TaskRecord. + private com.oracle.bmc.waiter.Waiter forTaskRecord( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetTaskRecordRequest request, + final com.oracle.bmc.fleetappsmanagement.model.TaskRecord.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetTaskRecordRequest, GetTaskRecordResponse>() { + @Override + public GetTaskRecordResponse apply(GetTaskRecordRequest request) { + return client.getTaskRecord(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetTaskRecordResponse response) { + return targetStatesSet.contains( + response.getTaskRecord().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.fleetappsmanagement.model.TaskRecord.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementWaiters.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementWaiters.java new file mode 100644 index 00000000000..eb58aa24132 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/FleetAppsManagementWaiters.java @@ -0,0 +1,511 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement; + +import com.oracle.bmc.fleetappsmanagement.requests.*; +import com.oracle.bmc.fleetappsmanagement.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of FleetAppsManagement. + * + *

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class FleetAppsManagementWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final FleetAppsManagement client; + + public FleetAppsManagementWaiters( + java.util.concurrent.ExecutorService executorService, FleetAppsManagement client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forFleet( + GetFleetRequest request, + com.oracle.bmc.fleetappsmanagement.model.Fleet.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forFleet( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forFleet( + GetFleetRequest request, + com.oracle.bmc.fleetappsmanagement.model.Fleet.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forFleet( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forFleet( + GetFleetRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fleetappsmanagement.model.Fleet.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forFleet( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Fleet. + private com.oracle.bmc.waiter.Waiter forFleet( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetFleetRequest request, + final com.oracle.bmc.fleetappsmanagement.model.Fleet.LifecycleState... targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function() { + @Override + public GetFleetResponse apply(GetFleetRequest request) { + return client.getFleet(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetFleetResponse response) { + return targetStatesSet.contains( + response.getFleet().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.fleetappsmanagement.model.Fleet.LifecycleState + .Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forFleetCredential( + GetFleetCredentialRequest request, + com.oracle.bmc.fleetappsmanagement.model.FleetCredential.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forFleetCredential( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forFleetCredential( + GetFleetCredentialRequest request, + com.oracle.bmc.fleetappsmanagement.model.FleetCredential.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forFleetCredential( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forFleetCredential( + GetFleetCredentialRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fleetappsmanagement.model.FleetCredential.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forFleetCredential( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for FleetCredential. + private com.oracle.bmc.waiter.Waiter + forFleetCredential( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetFleetCredentialRequest request, + final com.oracle.bmc.fleetappsmanagement.model.FleetCredential.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetFleetCredentialRequest, GetFleetCredentialResponse>() { + @Override + public GetFleetCredentialResponse apply( + GetFleetCredentialRequest request) { + return client.getFleetCredential(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetFleetCredentialResponse response) { + return targetStatesSet.contains( + response.getFleetCredential().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.fleetappsmanagement.model.FleetCredential + .LifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forFleetProperty( + GetFleetPropertyRequest request, + com.oracle.bmc.fleetappsmanagement.model.FleetProperty.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forFleetProperty( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forFleetProperty( + GetFleetPropertyRequest request, + com.oracle.bmc.fleetappsmanagement.model.FleetProperty.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forFleetProperty( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forFleetProperty( + GetFleetPropertyRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fleetappsmanagement.model.FleetProperty.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forFleetProperty( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for FleetProperty. + private com.oracle.bmc.waiter.Waiter + forFleetProperty( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetFleetPropertyRequest request, + final com.oracle.bmc.fleetappsmanagement.model.FleetProperty.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetFleetPropertyRequest, GetFleetPropertyResponse>() { + @Override + public GetFleetPropertyResponse apply(GetFleetPropertyRequest request) { + return client.getFleetProperty(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetFleetPropertyResponse response) { + return targetStatesSet.contains( + response.getFleetProperty().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.fleetappsmanagement.model.FleetProperty + .LifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forFleetResource( + GetFleetResourceRequest request, + com.oracle.bmc.fleetappsmanagement.model.FleetResource.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forFleetResource( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forFleetResource( + GetFleetResourceRequest request, + com.oracle.bmc.fleetappsmanagement.model.FleetResource.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forFleetResource( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forFleetResource( + GetFleetResourceRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.fleetappsmanagement.model.FleetResource.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forFleetResource( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for FleetResource. + private com.oracle.bmc.waiter.Waiter + forFleetResource( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetFleetResourceRequest request, + final com.oracle.bmc.fleetappsmanagement.model.FleetResource.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetFleetResourceRequest, GetFleetResourceResponse>() { + @Override + public GetFleetResourceResponse apply(GetFleetResourceRequest request) { + return client.getFleetResource(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetFleetResourceResponse response) { + return targetStatesSet.contains( + response.getFleetResource().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.fleetappsmanagement.model.FleetResource + .LifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. + * + * @param request the request to send + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest(GetWorkRequestRequest request) { + return forWorkRequest(com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@linkcom.oracle.bmc.waiter. DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + return forWorkRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request); + } + + // Helper method to create a new Waiter for WorkRequest. + private com.oracle.bmc.waiter.Waiter + forWorkRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetWorkRequestRequest request) { + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetWorkRequestRequest, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply(GetWorkRequestRequest request) { + return client.getWorkRequest(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetWorkRequestResponse response) { + // work requests are complete once the time finished is available + return response.getWorkRequest().getTimeFinished() != null; + } + }, + false), + request); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActionGroup.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActionGroup.java new file mode 100644 index 00000000000..21a0f954a9f --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActionGroup.java @@ -0,0 +1,409 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Action Group.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ActionGroup.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ActionGroup extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "resourceId", + "type", + "applicationType", + "product", + "lifecycleOperation", + "runbookId", + "targetId", + "subjects" + }) + public ActionGroup( + String resourceId, + LifeCycleActionGroupType type, + String applicationType, + String product, + String lifecycleOperation, + String runbookId, + String targetId, + java.util.List subjects) { + super(); + this.resourceId = resourceId; + this.type = type; + this.applicationType = applicationType; + this.product = product; + this.lifecycleOperation = lifecycleOperation; + this.runbookId = runbookId; + this.targetId = targetId; + this.subjects = subjects; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Provide the ID of the resource; Ex- fleetId. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * Provide the ID of the resource; Ex- fleetId. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** ActionGroup Type associated. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private LifeCycleActionGroupType type; + + /** + * ActionGroup Type associated. + * + * @param type the value to set + * @return this builder + */ + public Builder type(LifeCycleActionGroupType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** Application Type associated. Only applicable if type is ENVIRONMENT. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private String applicationType; + + /** + * Application Type associated. Only applicable if type is ENVIRONMENT. + * + * @param applicationType the value to set + * @return this builder + */ + public Builder applicationType(String applicationType) { + this.applicationType = applicationType; + this.__explicitlySet__.add("applicationType"); + return this; + } + /** Product associated. Only applicable if type is PRODUCT. */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private String product; + + /** + * Product associated. Only applicable if type is PRODUCT. + * + * @param product the value to set + * @return this builder + */ + public Builder product(String product) { + this.product = product; + this.__explicitlySet__.add("product"); + return this; + } + /** LifeCycle Operation */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperation") + private String lifecycleOperation; + + /** + * LifeCycle Operation + * + * @param lifecycleOperation the value to set + * @return this builder + */ + public Builder lifecycleOperation(String lifecycleOperation) { + this.lifecycleOperation = lifecycleOperation; + this.__explicitlySet__.add("lifecycleOperation"); + return this; + } + /** ID of the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookId") + private String runbookId; + + /** + * ID of the runbook + * + * @param runbookId the value to set + * @return this builder + */ + public Builder runbookId(String runbookId) { + this.runbookId = runbookId; + this.__explicitlySet__.add("runbookId"); + return this; + } + /** Provide the target if schedule is created against the target */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * Provide the target if schedule is created against the target + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** Provide subjects that need to be considered for the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("subjects") + private java.util.List subjects; + + /** + * Provide subjects that need to be considered for the schedule. + * + * @param subjects the value to set + * @return this builder + */ + public Builder subjects(java.util.List subjects) { + this.subjects = subjects; + this.__explicitlySet__.add("subjects"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ActionGroup build() { + ActionGroup model = + new ActionGroup( + this.resourceId, + this.type, + this.applicationType, + this.product, + this.lifecycleOperation, + this.runbookId, + this.targetId, + this.subjects); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ActionGroup model) { + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("applicationType")) { + this.applicationType(model.getApplicationType()); + } + if (model.wasPropertyExplicitlySet("product")) { + this.product(model.getProduct()); + } + if (model.wasPropertyExplicitlySet("lifecycleOperation")) { + this.lifecycleOperation(model.getLifecycleOperation()); + } + if (model.wasPropertyExplicitlySet("runbookId")) { + this.runbookId(model.getRunbookId()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("subjects")) { + this.subjects(model.getSubjects()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Provide the ID of the resource; Ex- fleetId. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * Provide the ID of the resource; Ex- fleetId. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** ActionGroup Type associated. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final LifeCycleActionGroupType type; + + /** + * ActionGroup Type associated. + * + * @return the value + */ + public LifeCycleActionGroupType getType() { + return type; + } + + /** Application Type associated. Only applicable if type is ENVIRONMENT. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private final String applicationType; + + /** + * Application Type associated. Only applicable if type is ENVIRONMENT. + * + * @return the value + */ + public String getApplicationType() { + return applicationType; + } + + /** Product associated. Only applicable if type is PRODUCT. */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private final String product; + + /** + * Product associated. Only applicable if type is PRODUCT. + * + * @return the value + */ + public String getProduct() { + return product; + } + + /** LifeCycle Operation */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperation") + private final String lifecycleOperation; + + /** + * LifeCycle Operation + * + * @return the value + */ + public String getLifecycleOperation() { + return lifecycleOperation; + } + + /** ID of the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookId") + private final String runbookId; + + /** + * ID of the runbook + * + * @return the value + */ + public String getRunbookId() { + return runbookId; + } + + /** Provide the target if schedule is created against the target */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * Provide the target if schedule is created against the target + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** Provide subjects that need to be considered for the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("subjects") + private final java.util.List subjects; + + /** + * Provide subjects that need to be considered for the schedule. + * + * @return the value + */ + public java.util.List getSubjects() { + return subjects; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ActionGroup("); + sb.append("super=").append(super.toString()); + sb.append("resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", applicationType=").append(String.valueOf(this.applicationType)); + sb.append(", product=").append(String.valueOf(this.product)); + sb.append(", lifecycleOperation=").append(String.valueOf(this.lifecycleOperation)); + sb.append(", runbookId=").append(String.valueOf(this.runbookId)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", subjects=").append(String.valueOf(this.subjects)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActionGroup)) { + return false; + } + + ActionGroup other = (ActionGroup) o; + return java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.applicationType, other.applicationType) + && java.util.Objects.equals(this.product, other.product) + && java.util.Objects.equals(this.lifecycleOperation, other.lifecycleOperation) + && java.util.Objects.equals(this.runbookId, other.runbookId) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.subjects, other.subjects) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.applicationType == null ? 43 : this.applicationType.hashCode()); + result = (result * PRIME) + (this.product == null ? 43 : this.product.hashCode()); + result = + (result * PRIME) + + (this.lifecycleOperation == null + ? 43 + : this.lifecycleOperation.hashCode()); + result = (result * PRIME) + (this.runbookId == null ? 43 : this.runbookId.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.subjects == null ? 43 : this.subjects.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActionGroupDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActionGroupDetails.java new file mode 100644 index 00000000000..db4ce7c789c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActionGroupDetails.java @@ -0,0 +1,525 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Action Group.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ActionGroupDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ActionGroupDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "resourceId", + "name", + "type", + "applicationType", + "product", + "lifecycleOperation", + "activityId", + "status", + "timeStarted", + "timeEnded", + "runbookId" + }) + public ActionGroupDetails( + String resourceId, + String name, + LifeCycleActionGroupType type, + String applicationType, + String product, + String lifecycleOperation, + String activityId, + JobStatus status, + java.util.Date timeStarted, + java.util.Date timeEnded, + String runbookId) { + super(); + this.resourceId = resourceId; + this.name = name; + this.type = type; + this.applicationType = applicationType; + this.product = product; + this.lifecycleOperation = lifecycleOperation; + this.activityId = activityId; + this.status = status; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.runbookId = runbookId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The ID of the ActionGroup resource . Ex:fleetId. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The ID of the ActionGroup resource . Ex:fleetId. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** Name of the ActionGroup. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the ActionGroup. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Type of the ActionGroup */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private LifeCycleActionGroupType type; + + /** + * Type of the ActionGroup + * + * @param type the value to set + * @return this builder + */ + public Builder type(LifeCycleActionGroupType type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** Application Type associated. Only applicable if actionGroup type is ENVIRONMENT. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private String applicationType; + + /** + * Application Type associated. Only applicable if actionGroup type is ENVIRONMENT. + * + * @param applicationType the value to set + * @return this builder + */ + public Builder applicationType(String applicationType) { + this.applicationType = applicationType; + this.__explicitlySet__.add("applicationType"); + return this; + } + /** Product associated. Only applicable if actionGroup type is PRODUCT. */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private String product; + + /** + * Product associated. Only applicable if actionGroup type is PRODUCT. + * + * @param product the value to set + * @return this builder + */ + public Builder product(String product) { + this.product = product; + this.__explicitlySet__.add("product"); + return this; + } + /** LifeCycle Operation */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperation") + private String lifecycleOperation; + + /** + * LifeCycle Operation + * + * @param lifecycleOperation the value to set + * @return this builder + */ + public Builder lifecycleOperation(String lifecycleOperation) { + this.lifecycleOperation = lifecycleOperation; + this.__explicitlySet__.add("lifecycleOperation"); + return this; + } + /** Unique producer Id at Action Group Level */ + @com.fasterxml.jackson.annotation.JsonProperty("activityId") + private String activityId; + + /** + * Unique producer Id at Action Group Level + * + * @param activityId the value to set + * @return this builder + */ + public Builder activityId(String activityId) { + this.activityId = activityId; + this.__explicitlySet__.add("activityId"); + return this; + } + /** Status of the Job at Action Group Level */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private JobStatus status; + + /** + * Status of the Job at Action Group Level + * + * @param status the value to set + * @return this builder + */ + public Builder status(JobStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The time the the Scheduler Job started. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The time the the Scheduler Job started. An RFC3339 formatted datetime string + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** The time the Scheduler Job ended. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The time the Scheduler Job ended. An RFC3339 formatted datetime string + * + * @param timeEnded the value to set + * @return this builder + */ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** ID of the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookId") + private String runbookId; + + /** + * ID of the runbook + * + * @param runbookId the value to set + * @return this builder + */ + public Builder runbookId(String runbookId) { + this.runbookId = runbookId; + this.__explicitlySet__.add("runbookId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ActionGroupDetails build() { + ActionGroupDetails model = + new ActionGroupDetails( + this.resourceId, + this.name, + this.type, + this.applicationType, + this.product, + this.lifecycleOperation, + this.activityId, + this.status, + this.timeStarted, + this.timeEnded, + this.runbookId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ActionGroupDetails model) { + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("applicationType")) { + this.applicationType(model.getApplicationType()); + } + if (model.wasPropertyExplicitlySet("product")) { + this.product(model.getProduct()); + } + if (model.wasPropertyExplicitlySet("lifecycleOperation")) { + this.lifecycleOperation(model.getLifecycleOperation()); + } + if (model.wasPropertyExplicitlySet("activityId")) { + this.activityId(model.getActivityId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("runbookId")) { + this.runbookId(model.getRunbookId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The ID of the ActionGroup resource . Ex:fleetId. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The ID of the ActionGroup resource . Ex:fleetId. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** Name of the ActionGroup. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the ActionGroup. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Type of the ActionGroup */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final LifeCycleActionGroupType type; + + /** + * Type of the ActionGroup + * + * @return the value + */ + public LifeCycleActionGroupType getType() { + return type; + } + + /** Application Type associated. Only applicable if actionGroup type is ENVIRONMENT. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private final String applicationType; + + /** + * Application Type associated. Only applicable if actionGroup type is ENVIRONMENT. + * + * @return the value + */ + public String getApplicationType() { + return applicationType; + } + + /** Product associated. Only applicable if actionGroup type is PRODUCT. */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private final String product; + + /** + * Product associated. Only applicable if actionGroup type is PRODUCT. + * + * @return the value + */ + public String getProduct() { + return product; + } + + /** LifeCycle Operation */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperation") + private final String lifecycleOperation; + + /** + * LifeCycle Operation + * + * @return the value + */ + public String getLifecycleOperation() { + return lifecycleOperation; + } + + /** Unique producer Id at Action Group Level */ + @com.fasterxml.jackson.annotation.JsonProperty("activityId") + private final String activityId; + + /** + * Unique producer Id at Action Group Level + * + * @return the value + */ + public String getActivityId() { + return activityId; + } + + /** Status of the Job at Action Group Level */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final JobStatus status; + + /** + * Status of the Job at Action Group Level + * + * @return the value + */ + public JobStatus getStatus() { + return status; + } + + /** The time the the Scheduler Job started. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The time the the Scheduler Job started. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** The time the Scheduler Job ended. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The time the Scheduler Job ended. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** ID of the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookId") + private final String runbookId; + + /** + * ID of the runbook + * + * @return the value + */ + public String getRunbookId() { + return runbookId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ActionGroupDetails("); + sb.append("super=").append(super.toString()); + sb.append("resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", applicationType=").append(String.valueOf(this.applicationType)); + sb.append(", product=").append(String.valueOf(this.product)); + sb.append(", lifecycleOperation=").append(String.valueOf(this.lifecycleOperation)); + sb.append(", activityId=").append(String.valueOf(this.activityId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", runbookId=").append(String.valueOf(this.runbookId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActionGroupDetails)) { + return false; + } + + ActionGroupDetails other = (ActionGroupDetails) o; + return java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.applicationType, other.applicationType) + && java.util.Objects.equals(this.product, other.product) + && java.util.Objects.equals(this.lifecycleOperation, other.lifecycleOperation) + && java.util.Objects.equals(this.activityId, other.activityId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.runbookId, other.runbookId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.applicationType == null ? 43 : this.applicationType.hashCode()); + result = (result * PRIME) + (this.product == null ? 43 : this.product.hashCode()); + result = + (result * PRIME) + + (this.lifecycleOperation == null + ? 43 + : this.lifecycleOperation.hashCode()); + result = (result * PRIME) + (this.activityId == null ? 43 : this.activityId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = (result * PRIME) + (this.runbookId == null ? 43 : this.runbookId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActionType.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActionType.java new file mode 100644 index 00000000000..b335c50ea1f --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActionType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Possible types of actions. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Related("RELATED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActivityResourceTarget.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActivityResourceTarget.java new file mode 100644 index 00000000000..9748b98bd5c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ActivityResourceTarget.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Activity Resource Target.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ActivityResourceTarget.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ActivityResourceTarget + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"targetName", "status"}) + public ActivityResourceTarget(String targetName, JobStatus status) { + super(); + this.targetName = targetName; + this.status = status; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Target Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetName") + private String targetName; + + /** + * Target Name. + * + * @param targetName the value to set + * @return this builder + */ + public Builder targetName(String targetName) { + this.targetName = targetName; + this.__explicitlySet__.add("targetName"); + return this; + } + /** Status of the Job at Resource Target Level. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private JobStatus status; + + /** + * Status of the Job at Resource Target Level. + * + * @param status the value to set + * @return this builder + */ + public Builder status(JobStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ActivityResourceTarget build() { + ActivityResourceTarget model = new ActivityResourceTarget(this.targetName, this.status); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ActivityResourceTarget model) { + if (model.wasPropertyExplicitlySet("targetName")) { + this.targetName(model.getTargetName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Target Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetName") + private final String targetName; + + /** + * Target Name. + * + * @return the value + */ + public String getTargetName() { + return targetName; + } + + /** Status of the Job at Resource Target Level. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final JobStatus status; + + /** + * Status of the Job at Resource Target Level. + * + * @return the value + */ + public JobStatus getStatus() { + return status; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ActivityResourceTarget("); + sb.append("super=").append(super.toString()); + sb.append("targetName=").append(String.valueOf(this.targetName)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivityResourceTarget)) { + return false; + } + + ActivityResourceTarget other = (ActivityResourceTarget) o; + return java.util.Objects.equals(this.targetName, other.targetName) + && java.util.Objects.equals(this.status, other.status) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetName == null ? 43 : this.targetName.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AnnouncementCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AnnouncementCollection.java new file mode 100644 index 00000000000..aff2b618624 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AnnouncementCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of list announcements . Contains AnnouncementSummary items
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AnnouncementCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AnnouncementCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AnnouncementCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of AnnouncementSummary items */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of AnnouncementSummary items + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AnnouncementCollection build() { + AnnouncementCollection model = new AnnouncementCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AnnouncementCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of AnnouncementSummary items */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of AnnouncementSummary items + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AnnouncementCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AnnouncementCollection)) { + return false; + } + + AnnouncementCollection other = (AnnouncementCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AnnouncementSortBy.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AnnouncementSortBy.java new file mode 100644 index 00000000000..2f36f1c5d35 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AnnouncementSortBy.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** The field to sort AnnouncementSummary. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum AnnouncementSortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeReleased("timeReleased"), + Summary("summary"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AnnouncementSortBy v : AnnouncementSortBy.values()) { + map.put(v.getValue(), v); + } + } + + AnnouncementSortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AnnouncementSortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AnnouncementSortBy: " + key); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AnnouncementSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AnnouncementSummary.java new file mode 100644 index 00000000000..a08b96ac886 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AnnouncementSummary.java @@ -0,0 +1,854 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * An summary of announcements for Fleet Application Management Service
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AnnouncementSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AnnouncementSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "resourceRegion", + "displayName", + "description", + "timeCreated", + "timeUpdated", + "type", + "summary", + "details", + "url", + "announcementStart", + "announcementEnd", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags" + }) + public AnnouncementSummary( + String id, + String compartmentId, + String resourceRegion, + String displayName, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String type, + String summary, + String details, + String url, + java.util.Date announcementStart, + java.util.Date announcementEnd, + LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.displayName = displayName; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.type = type; + this.summary = summary; + this.details = details; + this.url = url; + this.announcementStart = announcementStart; + this.announcementEnd = announcementEnd; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Type of announcement */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * Type of announcement + * + * @param type the value to set + * @return this builder + */ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** Summary of the announcement */ + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private String summary; + + /** + * Summary of the announcement + * + * @param summary the value to set + * @return this builder + */ + public Builder summary(String summary) { + this.summary = summary; + this.__explicitlySet__.add("summary"); + return this; + } + /** Details of the announcement */ + @com.fasterxml.jackson.annotation.JsonProperty("details") + private String details; + + /** + * Details of the announcement + * + * @param details the value to set + * @return this builder + */ + public Builder details(String details) { + this.details = details; + this.__explicitlySet__.add("details"); + return this; + } + /** URL to the announcement */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * URL to the announcement + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** Date to start displaying announcement to user */ + @com.fasterxml.jackson.annotation.JsonProperty("announcementStart") + private java.util.Date announcementStart; + + /** + * Date to start displaying announcement to user + * + * @param announcementStart the value to set + * @return this builder + */ + public Builder announcementStart(java.util.Date announcementStart) { + this.announcementStart = announcementStart; + this.__explicitlySet__.add("announcementStart"); + return this; + } + /** Date to end displaying annonucement to user */ + @com.fasterxml.jackson.annotation.JsonProperty("announcementEnd") + private java.util.Date announcementEnd; + + /** + * Date to end displaying annonucement to user + * + * @param announcementEnd the value to set + * @return this builder + */ + public Builder announcementEnd(java.util.Date announcementEnd) { + this.announcementEnd = announcementEnd; + this.__explicitlySet__.add("announcementEnd"); + return this; + } + /** The lifecycle state of the announcement. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The lifecycle state of the announcement. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AnnouncementSummary build() { + AnnouncementSummary model = + new AnnouncementSummary( + this.id, + this.compartmentId, + this.resourceRegion, + this.displayName, + this.description, + this.timeCreated, + this.timeUpdated, + this.type, + this.summary, + this.details, + this.url, + this.announcementStart, + this.announcementEnd, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AnnouncementSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("summary")) { + this.summary(model.getSummary()); + } + if (model.wasPropertyExplicitlySet("details")) { + this.details(model.getDetails()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("announcementStart")) { + this.announcementStart(model.getAnnouncementStart()); + } + if (model.wasPropertyExplicitlySet("announcementEnd")) { + this.announcementEnd(model.getAnnouncementEnd()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Type of announcement */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * Type of announcement + * + * @return the value + */ + public String getType() { + return type; + } + + /** Summary of the announcement */ + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private final String summary; + + /** + * Summary of the announcement + * + * @return the value + */ + public String getSummary() { + return summary; + } + + /** Details of the announcement */ + @com.fasterxml.jackson.annotation.JsonProperty("details") + private final String details; + + /** + * Details of the announcement + * + * @return the value + */ + public String getDetails() { + return details; + } + + /** URL to the announcement */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * URL to the announcement + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** Date to start displaying announcement to user */ + @com.fasterxml.jackson.annotation.JsonProperty("announcementStart") + private final java.util.Date announcementStart; + + /** + * Date to start displaying announcement to user + * + * @return the value + */ + public java.util.Date getAnnouncementStart() { + return announcementStart; + } + + /** Date to end displaying annonucement to user */ + @com.fasterxml.jackson.annotation.JsonProperty("announcementEnd") + private final java.util.Date announcementEnd; + + /** + * Date to end displaying annonucement to user + * + * @return the value + */ + public java.util.Date getAnnouncementEnd() { + return announcementEnd; + } + + /** The lifecycle state of the announcement. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Inactive("INACTIVE"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The lifecycle state of the announcement. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The lifecycle state of the announcement. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AnnouncementSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", summary=").append(String.valueOf(this.summary)); + sb.append(", details=").append(String.valueOf(this.details)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", announcementStart=").append(String.valueOf(this.announcementStart)); + sb.append(", announcementEnd=").append(String.valueOf(this.announcementEnd)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AnnouncementSummary)) { + return false; + } + + AnnouncementSummary other = (AnnouncementSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.summary, other.summary) + && java.util.Objects.equals(this.details, other.details) + && java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.announcementStart, other.announcementStart) + && java.util.Objects.equals(this.announcementEnd, other.announcementEnd) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.summary == null ? 43 : this.summary.hashCode()); + result = (result * PRIME) + (this.details == null ? 43 : this.details.hashCode()); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = + (result * PRIME) + + (this.announcementStart == null ? 43 : this.announcementStart.hashCode()); + result = + (result * PRIME) + + (this.announcementEnd == null ? 43 : this.announcementEnd.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ApiBasedExecutionDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ApiBasedExecutionDetails.java new file mode 100644 index 00000000000..279a080369b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ApiBasedExecutionDetails.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Details for API based execution
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApiBasedExecutionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "executionType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ApiBasedExecutionDetails extends ExecutionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Endpoint to be invoked. */ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private String endpoint; + + /** + * Endpoint to be invoked. + * + * @param endpoint the value to set + * @return this builder + */ + public Builder endpoint(String endpoint) { + this.endpoint = endpoint; + this.__explicitlySet__.add("endpoint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ApiBasedExecutionDetails build() { + ApiBasedExecutionDetails model = new ApiBasedExecutionDetails(this.endpoint); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ApiBasedExecutionDetails model) { + if (model.wasPropertyExplicitlySet("endpoint")) { + this.endpoint(model.getEndpoint()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ApiBasedExecutionDetails(String endpoint) { + super(); + this.endpoint = endpoint; + } + + /** Endpoint to be invoked. */ + @com.fasterxml.jackson.annotation.JsonProperty("endpoint") + private final String endpoint; + + /** + * Endpoint to be invoked. + * + * @return the value + */ + public String getEndpoint() { + return endpoint; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ApiBasedExecutionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", endpoint=").append(String.valueOf(this.endpoint)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ApiBasedExecutionDetails)) { + return false; + } + + ApiBasedExecutionDetails other = (ApiBasedExecutionDetails) o; + return java.util.Objects.equals(this.endpoint, other.endpoint) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.endpoint == null ? 43 : this.endpoint.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedFleetCredentialDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedFleetCredentialDetails.java new file mode 100644 index 00000000000..e370b6b36bd --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedFleetCredentialDetails.java @@ -0,0 +1,275 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information about new FleetCredential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AssociatedFleetCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AssociatedFleetCredentialDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "compartmentId", + "entitySpecifics", + "user", + "password" + }) + public AssociatedFleetCredentialDetails( + String displayName, + String compartmentId, + CredentialEntitySpecificDetails entitySpecifics, + CredentialDetails user, + CredentialDetails password) { + super(); + this.displayName = displayName; + this.compartmentId = compartmentId; + this.entitySpecifics = entitySpecifics; + this.user = user; + this.password = password; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitySpecifics") + private CredentialEntitySpecificDetails entitySpecifics; + + public Builder entitySpecifics(CredentialEntitySpecificDetails entitySpecifics) { + this.entitySpecifics = entitySpecifics; + this.__explicitlySet__.add("entitySpecifics"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("user") + private CredentialDetails user; + + public Builder user(CredentialDetails user) { + this.user = user; + this.__explicitlySet__.add("user"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private CredentialDetails password; + + public Builder password(CredentialDetails password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AssociatedFleetCredentialDetails build() { + AssociatedFleetCredentialDetails model = + new AssociatedFleetCredentialDetails( + this.displayName, + this.compartmentId, + this.entitySpecifics, + this.user, + this.password); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AssociatedFleetCredentialDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("entitySpecifics")) { + this.entitySpecifics(model.getEntitySpecifics()); + } + if (model.wasPropertyExplicitlySet("user")) { + this.user(model.getUser()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitySpecifics") + private final CredentialEntitySpecificDetails entitySpecifics; + + public CredentialEntitySpecificDetails getEntitySpecifics() { + return entitySpecifics; + } + + @com.fasterxml.jackson.annotation.JsonProperty("user") + private final CredentialDetails user; + + public CredentialDetails getUser() { + return user; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final CredentialDetails password; + + public CredentialDetails getPassword() { + return password; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AssociatedFleetCredentialDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", entitySpecifics=").append(String.valueOf(this.entitySpecifics)); + sb.append(", user=").append(String.valueOf(this.user)); + sb.append(", password=").append(String.valueOf(this.password)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AssociatedFleetCredentialDetails)) { + return false; + } + + AssociatedFleetCredentialDetails other = (AssociatedFleetCredentialDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.entitySpecifics, other.entitySpecifics) + && java.util.Objects.equals(this.user, other.user) + && java.util.Objects.equals(this.password, other.password) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.entitySpecifics == null ? 43 : this.entitySpecifics.hashCode()); + result = (result * PRIME) + (this.user == null ? 43 : this.user.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedFleetPropertyDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedFleetPropertyDetails.java new file mode 100644 index 00000000000..3406898acb1 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedFleetPropertyDetails.java @@ -0,0 +1,357 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information about new FleetProperty.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AssociatedFleetPropertyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AssociatedFleetPropertyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "fleetPropertyType", + "value", + "isRequired" + }) + public AssociatedFleetPropertyDetails( + String compartmentId, + String displayName, + FleetPropertyType fleetPropertyType, + String value, + Boolean isRequired) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.fleetPropertyType = fleetPropertyType; + this.value = value; + this.isRequired = isRequired; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Type of the FleetProperty. */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetPropertyType") + private FleetPropertyType fleetPropertyType; + + /** + * Type of the FleetProperty. + * + * @param fleetPropertyType the value to set + * @return this builder + */ + public Builder fleetPropertyType(FleetPropertyType fleetPropertyType) { + this.fleetPropertyType = fleetPropertyType; + this.__explicitlySet__.add("fleetPropertyType"); + return this; + } + /** Value of the Property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * Value of the Property + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + /** Property is required or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + private Boolean isRequired; + + /** + * Property is required or not + * + * @param isRequired the value to set + * @return this builder + */ + public Builder isRequired(Boolean isRequired) { + this.isRequired = isRequired; + this.__explicitlySet__.add("isRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AssociatedFleetPropertyDetails build() { + AssociatedFleetPropertyDetails model = + new AssociatedFleetPropertyDetails( + this.compartmentId, + this.displayName, + this.fleetPropertyType, + this.value, + this.isRequired); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AssociatedFleetPropertyDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("fleetPropertyType")) { + this.fleetPropertyType(model.getFleetPropertyType()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + if (model.wasPropertyExplicitlySet("isRequired")) { + this.isRequired(model.getIsRequired()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Type of the FleetProperty. */ + public enum FleetPropertyType implements com.oracle.bmc.http.internal.BmcEnum { + String("STRING"), + Number("NUMBER"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FleetPropertyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FleetPropertyType v : FleetPropertyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + FleetPropertyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FleetPropertyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'FleetPropertyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of the FleetProperty. */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetPropertyType") + private final FleetPropertyType fleetPropertyType; + + /** + * Type of the FleetProperty. + * + * @return the value + */ + public FleetPropertyType getFleetPropertyType() { + return fleetPropertyType; + } + + /** Value of the Property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * Value of the Property + * + * @return the value + */ + public String getValue() { + return value; + } + + /** Property is required or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + private final Boolean isRequired; + + /** + * Property is required or not + * + * @return the value + */ + public Boolean getIsRequired() { + return isRequired; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AssociatedFleetPropertyDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", fleetPropertyType=").append(String.valueOf(this.fleetPropertyType)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", isRequired=").append(String.valueOf(this.isRequired)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AssociatedFleetPropertyDetails)) { + return false; + } + + AssociatedFleetPropertyDetails other = (AssociatedFleetPropertyDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.fleetPropertyType, other.fleetPropertyType) + && java.util.Objects.equals(this.value, other.value) + && java.util.Objects.equals(this.isRequired, other.isRequired) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.fleetPropertyType == null ? 43 : this.fleetPropertyType.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + (this.isRequired == null ? 43 : this.isRequired.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedFleetResourceDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedFleetResourceDetails.java new file mode 100644 index 00000000000..7c912a5bc48 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedFleetResourceDetails.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information about associated FleetResource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AssociatedFleetResourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AssociatedFleetResourceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "resourceId", + "fleetResourceType", + "compartmentId", + "tenancyId" + }) + public AssociatedFleetResourceDetails( + String resourceId, String fleetResourceType, String compartmentId, String tenancyId) { + super(); + this.resourceId = resourceId; + this.fleetResourceType = fleetResourceType; + this.compartmentId = compartmentId; + this.tenancyId = tenancyId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the reosurce. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * OCID of the reosurce. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** Type of the FleetResource. */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetResourceType") + private String fleetResourceType; + + /** + * Type of the FleetResource. + * + * @param fleetResourceType the value to set + * @return this builder + */ + public Builder fleetResourceType(String fleetResourceType) { + this.fleetResourceType = fleetResourceType; + this.__explicitlySet__.add("fleetResourceType"); + return this; + } + /** Compartment Identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Compartment Identifier. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Tenancy Identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * Tenancy Identifier. + * + * @param tenancyId the value to set + * @return this builder + */ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AssociatedFleetResourceDetails build() { + AssociatedFleetResourceDetails model = + new AssociatedFleetResourceDetails( + this.resourceId, + this.fleetResourceType, + this.compartmentId, + this.tenancyId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AssociatedFleetResourceDetails model) { + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("fleetResourceType")) { + this.fleetResourceType(model.getFleetResourceType()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the reosurce. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * OCID of the reosurce. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** Type of the FleetResource. */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetResourceType") + private final String fleetResourceType; + + /** + * Type of the FleetResource. + * + * @return the value + */ + public String getFleetResourceType() { + return fleetResourceType; + } + + /** Compartment Identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Compartment Identifier. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Tenancy Identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * Tenancy Identifier. + * + * @return the value + */ + public String getTenancyId() { + return tenancyId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AssociatedFleetResourceDetails("); + sb.append("super=").append(super.toString()); + sb.append("resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", fleetResourceType=").append(String.valueOf(this.fleetResourceType)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AssociatedFleetResourceDetails)) { + return false; + } + + AssociatedFleetResourceDetails other = (AssociatedFleetResourceDetails) o; + return java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.fleetResourceType, other.fleetResourceType) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.fleetResourceType == null ? 43 : this.fleetResourceType.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedLocalTaskDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedLocalTaskDetails.java new file mode 100644 index 00000000000..1399f95c59c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedLocalTaskDetails.java @@ -0,0 +1,343 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The details of the task.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AssociatedLocalTaskDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "scope") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AssociatedLocalTaskDetails extends AssociatedTaskDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("executionDetails") + private ExecutionDetails executionDetails; + + public Builder executionDetails(ExecutionDetails executionDetails) { + this.executionDetails = executionDetails; + this.__explicitlySet__.add("executionDetails"); + return this; + } + /** The description of the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the task. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The platform of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private String platform; + + /** + * The platform of the runbook. + * + * @param platform the value to set + * @return this builder + */ + public Builder platform(String platform) { + this.platform = platform; + this.__explicitlySet__.add("platform"); + return this; + } + /** Make a copy of this task in Library */ + @com.fasterxml.jackson.annotation.JsonProperty("isCopyToLibraryEnabled") + private Boolean isCopyToLibraryEnabled; + + /** + * Make a copy of this task in Library + * + * @param isCopyToLibraryEnabled the value to set + * @return this builder + */ + public Builder isCopyToLibraryEnabled(Boolean isCopyToLibraryEnabled) { + this.isCopyToLibraryEnabled = isCopyToLibraryEnabled; + this.__explicitlySet__.add("isCopyToLibraryEnabled"); + return this; + } + /** The OS for the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("osType") + private OsType osType; + + /** + * The OS for the task. + * + * @param osType the value to set + * @return this builder + */ + public Builder osType(OsType osType) { + this.osType = osType; + this.__explicitlySet__.add("osType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private Properties properties; + + public Builder properties(Properties properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + /** The name of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the task + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AssociatedLocalTaskDetails build() { + AssociatedLocalTaskDetails model = + new AssociatedLocalTaskDetails( + this.executionDetails, + this.description, + this.platform, + this.isCopyToLibraryEnabled, + this.osType, + this.properties, + this.name); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AssociatedLocalTaskDetails model) { + if (model.wasPropertyExplicitlySet("executionDetails")) { + this.executionDetails(model.getExecutionDetails()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("platform")) { + this.platform(model.getPlatform()); + } + if (model.wasPropertyExplicitlySet("isCopyToLibraryEnabled")) { + this.isCopyToLibraryEnabled(model.getIsCopyToLibraryEnabled()); + } + if (model.wasPropertyExplicitlySet("osType")) { + this.osType(model.getOsType()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AssociatedLocalTaskDetails( + ExecutionDetails executionDetails, + String description, + String platform, + Boolean isCopyToLibraryEnabled, + OsType osType, + Properties properties, + String name) { + super(); + this.executionDetails = executionDetails; + this.description = description; + this.platform = platform; + this.isCopyToLibraryEnabled = isCopyToLibraryEnabled; + this.osType = osType; + this.properties = properties; + this.name = name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executionDetails") + private final ExecutionDetails executionDetails; + + public ExecutionDetails getExecutionDetails() { + return executionDetails; + } + + /** The description of the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the task. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The platform of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private final String platform; + + /** + * The platform of the runbook. + * + * @return the value + */ + public String getPlatform() { + return platform; + } + + /** Make a copy of this task in Library */ + @com.fasterxml.jackson.annotation.JsonProperty("isCopyToLibraryEnabled") + private final Boolean isCopyToLibraryEnabled; + + /** + * Make a copy of this task in Library + * + * @return the value + */ + public Boolean getIsCopyToLibraryEnabled() { + return isCopyToLibraryEnabled; + } + + /** The OS for the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("osType") + private final OsType osType; + + /** + * The OS for the task. + * + * @return the value + */ + public OsType getOsType() { + return osType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final Properties properties; + + public Properties getProperties() { + return properties; + } + + /** The name of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the task + * + * @return the value + */ + public String getName() { + return name; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AssociatedLocalTaskDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", executionDetails=").append(String.valueOf(this.executionDetails)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", platform=").append(String.valueOf(this.platform)); + sb.append(", isCopyToLibraryEnabled=").append(String.valueOf(this.isCopyToLibraryEnabled)); + sb.append(", osType=").append(String.valueOf(this.osType)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AssociatedLocalTaskDetails)) { + return false; + } + + AssociatedLocalTaskDetails other = (AssociatedLocalTaskDetails) o; + return java.util.Objects.equals(this.executionDetails, other.executionDetails) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.platform, other.platform) + && java.util.Objects.equals( + this.isCopyToLibraryEnabled, other.isCopyToLibraryEnabled) + && java.util.Objects.equals(this.osType, other.osType) + && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.name, other.name) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.executionDetails == null ? 43 : this.executionDetails.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.platform == null ? 43 : this.platform.hashCode()); + result = + (result * PRIME) + + (this.isCopyToLibraryEnabled == null + ? 43 + : this.isCopyToLibraryEnabled.hashCode()); + result = (result * PRIME) + (this.osType == null ? 43 : this.osType.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedSchedulerDefinition.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedSchedulerDefinition.java new file mode 100644 index 00000000000..307e7d1558a --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedSchedulerDefinition.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Associated SchedulerDefinition with the job.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AssociatedSchedulerDefinition.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AssociatedSchedulerDefinition + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "displayName", "tenancyId", "isRecurring"}) + public AssociatedSchedulerDefinition( + String id, String displayName, String tenancyId, Boolean isRecurring) { + super(); + this.id = id; + this.displayName = displayName; + this.tenancyId = tenancyId; + this.isRecurring = isRecurring; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @param tenancyId the value to set + * @return this builder + */ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** Is this recurring schedule? */ + @com.fasterxml.jackson.annotation.JsonProperty("isRecurring") + private Boolean isRecurring; + + /** + * Is this recurring schedule? + * + * @param isRecurring the value to set + * @return this builder + */ + public Builder isRecurring(Boolean isRecurring) { + this.isRecurring = isRecurring; + this.__explicitlySet__.add("isRecurring"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AssociatedSchedulerDefinition build() { + AssociatedSchedulerDefinition model = + new AssociatedSchedulerDefinition( + this.id, this.displayName, this.tenancyId, this.isRecurring); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AssociatedSchedulerDefinition model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("isRecurring")) { + this.isRecurring(model.getIsRecurring()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @return the value + */ + public String getTenancyId() { + return tenancyId; + } + + /** Is this recurring schedule? */ + @com.fasterxml.jackson.annotation.JsonProperty("isRecurring") + private final Boolean isRecurring; + + /** + * Is this recurring schedule? + * + * @return the value + */ + public Boolean getIsRecurring() { + return isRecurring; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AssociatedSchedulerDefinition("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", isRecurring=").append(String.valueOf(this.isRecurring)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AssociatedSchedulerDefinition)) { + return false; + } + + AssociatedSchedulerDefinition other = (AssociatedSchedulerDefinition) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.isRecurring, other.isRecurring) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = (result * PRIME) + (this.isRecurring == null ? 43 : this.isRecurring.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedSharedTaskDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedSharedTaskDetails.java new file mode 100644 index 00000000000..3a65689f108 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedSharedTaskDetails.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The details of the task.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AssociatedSharedTaskDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "scope") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AssociatedSharedTaskDetails extends AssociatedTaskDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The ID of taskRecord. */ + @com.fasterxml.jackson.annotation.JsonProperty("taskRecordId") + private String taskRecordId; + + /** + * The ID of taskRecord. + * + * @param taskRecordId the value to set + * @return this builder + */ + public Builder taskRecordId(String taskRecordId) { + this.taskRecordId = taskRecordId; + this.__explicitlySet__.add("taskRecordId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AssociatedSharedTaskDetails build() { + AssociatedSharedTaskDetails model = new AssociatedSharedTaskDetails(this.taskRecordId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AssociatedSharedTaskDetails model) { + if (model.wasPropertyExplicitlySet("taskRecordId")) { + this.taskRecordId(model.getTaskRecordId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public AssociatedSharedTaskDetails(String taskRecordId) { + super(); + this.taskRecordId = taskRecordId; + } + + /** The ID of taskRecord. */ + @com.fasterxml.jackson.annotation.JsonProperty("taskRecordId") + private final String taskRecordId; + + /** + * The ID of taskRecord. + * + * @return the value + */ + public String getTaskRecordId() { + return taskRecordId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AssociatedSharedTaskDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", taskRecordId=").append(String.valueOf(this.taskRecordId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AssociatedSharedTaskDetails)) { + return false; + } + + AssociatedSharedTaskDetails other = (AssociatedSharedTaskDetails) o; + return java.util.Objects.equals(this.taskRecordId, other.taskRecordId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.taskRecordId == null ? 43 : this.taskRecordId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedTaskDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedTaskDetails.java new file mode 100644 index 00000000000..4192ebfa107 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/AssociatedTaskDetails.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The details of the task.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "scope", + defaultImpl = AssociatedTaskDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AssociatedLocalTaskDetails.class, + name = "LOCAL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = AssociatedSharedTaskDetails.class, + name = "SHARED") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class AssociatedTaskDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected AssociatedTaskDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AssociatedTaskDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AssociatedTaskDetails)) { + return false; + } + + AssociatedTaskDetails other = (AssociatedTaskDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Associations.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Associations.java new file mode 100644 index 00000000000..b7050c81a28 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Associations.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * JSON content with required associations
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Associations.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Associations extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"tasks", "groups", "executionWorkflowDetails", "version"}) + public Associations( + java.util.List tasks, + java.util.List groups, + ExecutionWorkflowDetails executionWorkflowDetails, + String version) { + super(); + this.tasks = tasks; + this.groups = groups; + this.executionWorkflowDetails = executionWorkflowDetails; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A set of tasks to execute in the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("tasks") + private java.util.List tasks; + + /** + * A set of tasks to execute in the runbook + * + * @param tasks the value to set + * @return this builder + */ + public Builder tasks(java.util.List tasks) { + this.tasks = tasks; + this.__explicitlySet__.add("tasks"); + return this; + } + /** The groups of the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("groups") + private java.util.List groups; + + /** + * The groups of the runbook + * + * @param groups the value to set + * @return this builder + */ + public Builder groups(java.util.List groups) { + this.groups = groups; + this.__explicitlySet__.add("groups"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executionWorkflowDetails") + private ExecutionWorkflowDetails executionWorkflowDetails; + + public Builder executionWorkflowDetails(ExecutionWorkflowDetails executionWorkflowDetails) { + this.executionWorkflowDetails = executionWorkflowDetails; + this.__explicitlySet__.add("executionWorkflowDetails"); + return this; + } + /** The version of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the runbook. + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Associations build() { + Associations model = + new Associations( + this.tasks, this.groups, this.executionWorkflowDetails, this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Associations model) { + if (model.wasPropertyExplicitlySet("tasks")) { + this.tasks(model.getTasks()); + } + if (model.wasPropertyExplicitlySet("groups")) { + this.groups(model.getGroups()); + } + if (model.wasPropertyExplicitlySet("executionWorkflowDetails")) { + this.executionWorkflowDetails(model.getExecutionWorkflowDetails()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A set of tasks to execute in the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("tasks") + private final java.util.List tasks; + + /** + * A set of tasks to execute in the runbook + * + * @return the value + */ + public java.util.List getTasks() { + return tasks; + } + + /** The groups of the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("groups") + private final java.util.List groups; + + /** + * The groups of the runbook + * + * @return the value + */ + public java.util.List getGroups() { + return groups; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executionWorkflowDetails") + private final ExecutionWorkflowDetails executionWorkflowDetails; + + public ExecutionWorkflowDetails getExecutionWorkflowDetails() { + return executionWorkflowDetails; + } + + /** The version of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the runbook. + * + * @return the value + */ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Associations("); + sb.append("super=").append(super.toString()); + sb.append("tasks=").append(String.valueOf(this.tasks)); + sb.append(", groups=").append(String.valueOf(this.groups)); + sb.append(", executionWorkflowDetails=") + .append(String.valueOf(this.executionWorkflowDetails)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Associations)) { + return false; + } + + Associations other = (Associations) o; + return java.util.Objects.equals(this.tasks, other.tasks) + && java.util.Objects.equals(this.groups, other.groups) + && java.util.Objects.equals( + this.executionWorkflowDetails, other.executionWorkflowDetails) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.tasks == null ? 43 : this.tasks.hashCode()); + result = (result * PRIME) + (this.groups == null ? 43 : this.groups.hashCode()); + result = + (result * PRIME) + + (this.executionWorkflowDetails == null + ? 43 + : this.executionWorkflowDetails.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CheckResourceTaggingDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CheckResourceTaggingDetails.java new file mode 100644 index 00000000000..e958bef97f4 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CheckResourceTaggingDetails.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Request to check resource tagging
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CheckResourceTaggingDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CheckResourceTaggingDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId", "fleetDisplayName", "resourceIds"}) + public CheckResourceTaggingDetails( + String compartmentId, String fleetDisplayName, java.util.List resourceIds) { + super(); + this.compartmentId = compartmentId; + this.fleetDisplayName = fleetDisplayName; + this.resourceIds = resourceIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Fleet Name */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetDisplayName") + private String fleetDisplayName; + + /** + * Fleet Name + * + * @param fleetDisplayName the value to set + * @return this builder + */ + public Builder fleetDisplayName(String fleetDisplayName) { + this.fleetDisplayName = fleetDisplayName; + this.__explicitlySet__.add("fleetDisplayName"); + return this; + } + /** Resource OCIDS that need to be verified if tag can be enabled */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private java.util.List resourceIds; + + /** + * Resource OCIDS that need to be verified if tag can be enabled + * + * @param resourceIds the value to set + * @return this builder + */ + public Builder resourceIds(java.util.List resourceIds) { + this.resourceIds = resourceIds; + this.__explicitlySet__.add("resourceIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CheckResourceTaggingDetails build() { + CheckResourceTaggingDetails model = + new CheckResourceTaggingDetails( + this.compartmentId, this.fleetDisplayName, this.resourceIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CheckResourceTaggingDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("fleetDisplayName")) { + this.fleetDisplayName(model.getFleetDisplayName()); + } + if (model.wasPropertyExplicitlySet("resourceIds")) { + this.resourceIds(model.getResourceIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Fleet Name */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetDisplayName") + private final String fleetDisplayName; + + /** + * Fleet Name + * + * @return the value + */ + public String getFleetDisplayName() { + return fleetDisplayName; + } + + /** Resource OCIDS that need to be verified if tag can be enabled */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private final java.util.List resourceIds; + + /** + * Resource OCIDS that need to be verified if tag can be enabled + * + * @return the value + */ + public java.util.List getResourceIds() { + return resourceIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CheckResourceTaggingDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", fleetDisplayName=").append(String.valueOf(this.fleetDisplayName)); + sb.append(", resourceIds=").append(String.valueOf(this.resourceIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CheckResourceTaggingDetails)) { + return false; + } + + CheckResourceTaggingDetails other = (CheckResourceTaggingDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.fleetDisplayName, other.fleetDisplayName) + && java.util.Objects.equals(this.resourceIds, other.resourceIds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.fleetDisplayName == null ? 43 : this.fleetDisplayName.hashCode()); + result = (result * PRIME) + (this.resourceIds == null ? 43 : this.resourceIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReport.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReport.java new file mode 100644 index 00000000000..3b156da1c46 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReport.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of a compliance report.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ComplianceReport.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ComplianceReport + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "fleetId", "complianceState", "resources"}) + public ComplianceReport( + String id, + String fleetId, + ComplianceState complianceState, + java.util.List resources) { + super(); + this.id = id; + this.fleetId = fleetId; + this.complianceState = complianceState; + this.resources = resources; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Compliance Report Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Compliance Report Identifier + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The fleet OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetId") + private String fleetId; + + /** + * The fleet OCID. + * + * @param fleetId the value to set + * @return this builder + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + this.__explicitlySet__.add("fleetId"); + return this; + } + /** Last known compliance state of fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private ComplianceState complianceState; + + /** + * Last known compliance state of fleet. + * + * @param complianceState the value to set + * @return this builder + */ + public Builder complianceState(ComplianceState complianceState) { + this.complianceState = complianceState; + this.__explicitlySet__.add("complianceState"); + return this; + } + /** Resources assocaited with the Fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * Resources assocaited with the Fleet. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComplianceReport build() { + ComplianceReport model = + new ComplianceReport( + this.id, this.fleetId, this.complianceState, this.resources); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComplianceReport model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("fleetId")) { + this.fleetId(model.getFleetId()); + } + if (model.wasPropertyExplicitlySet("complianceState")) { + this.complianceState(model.getComplianceState()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Compliance Report Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Compliance Report Identifier + * + * @return the value + */ + public String getId() { + return id; + } + + /** The fleet OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetId") + private final String fleetId; + + /** + * The fleet OCID. + * + * @return the value + */ + public String getFleetId() { + return fleetId; + } + + /** Last known compliance state of fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private final ComplianceState complianceState; + + /** + * Last known compliance state of fleet. + * + * @return the value + */ + public ComplianceState getComplianceState() { + return complianceState; + } + + /** Resources assocaited with the Fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * Resources assocaited with the Fleet. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComplianceReport("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", fleetId=").append(String.valueOf(this.fleetId)); + sb.append(", complianceState=").append(String.valueOf(this.complianceState)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComplianceReport)) { + return false; + } + + ComplianceReport other = (ComplianceReport) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.complianceState, other.complianceState) + && java.util.Objects.equals(this.resources, other.resources) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.complianceState == null ? 43 : this.complianceState.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportPatchDetail.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportPatchDetail.java new file mode 100644 index 00000000000..2cda99c9eca --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportPatchDetail.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Details of the Patch
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComplianceReportPatchDetail.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ComplianceReportPatchDetail + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "patchName", + "patchDescription", + "timeApplied", + "timeReleased", + "patchType" + }) + public ComplianceReportPatchDetail( + String patchName, + String patchDescription, + java.util.Date timeApplied, + java.util.Date timeReleased, + String patchType) { + super(); + this.patchName = patchName; + this.patchDescription = patchDescription; + this.timeApplied = timeApplied; + this.timeReleased = timeReleased; + this.patchType = patchType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID to identify this analysis results. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchName") + private String patchName; + + /** + * The OCID to identify this analysis results. + * + * @param patchName the value to set + * @return this builder + */ + public Builder patchName(String patchName) { + this.patchName = patchName; + this.__explicitlySet__.add("patchName"); + return this; + } + /** The OCID of the work request to start the analysis. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchDescription") + private String patchDescription; + + /** + * The OCID of the work request to start the analysis. + * + * @param patchDescription the value to set + * @return this builder + */ + public Builder patchDescription(String patchDescription) { + this.patchDescription = patchDescription; + this.__explicitlySet__.add("patchDescription"); + return this; + } + /** Time the patch was applied */ + @com.fasterxml.jackson.annotation.JsonProperty("timeApplied") + private java.util.Date timeApplied; + + /** + * Time the patch was applied + * + * @param timeApplied the value to set + * @return this builder + */ + public Builder timeApplied(java.util.Date timeApplied) { + this.timeApplied = timeApplied; + this.__explicitlySet__.add("timeApplied"); + return this; + } + /** Date on which patch was released. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeReleased") + private java.util.Date timeReleased; + + /** + * Date on which patch was released. + * + * @param timeReleased the value to set + * @return this builder + */ + public Builder timeReleased(java.util.Date timeReleased) { + this.timeReleased = timeReleased; + this.__explicitlySet__.add("timeReleased"); + return this; + } + /** Type of patch. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchType") + private String patchType; + + /** + * Type of patch. + * + * @param patchType the value to set + * @return this builder + */ + public Builder patchType(String patchType) { + this.patchType = patchType; + this.__explicitlySet__.add("patchType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComplianceReportPatchDetail build() { + ComplianceReportPatchDetail model = + new ComplianceReportPatchDetail( + this.patchName, + this.patchDescription, + this.timeApplied, + this.timeReleased, + this.patchType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComplianceReportPatchDetail model) { + if (model.wasPropertyExplicitlySet("patchName")) { + this.patchName(model.getPatchName()); + } + if (model.wasPropertyExplicitlySet("patchDescription")) { + this.patchDescription(model.getPatchDescription()); + } + if (model.wasPropertyExplicitlySet("timeApplied")) { + this.timeApplied(model.getTimeApplied()); + } + if (model.wasPropertyExplicitlySet("timeReleased")) { + this.timeReleased(model.getTimeReleased()); + } + if (model.wasPropertyExplicitlySet("patchType")) { + this.patchType(model.getPatchType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID to identify this analysis results. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchName") + private final String patchName; + + /** + * The OCID to identify this analysis results. + * + * @return the value + */ + public String getPatchName() { + return patchName; + } + + /** The OCID of the work request to start the analysis. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchDescription") + private final String patchDescription; + + /** + * The OCID of the work request to start the analysis. + * + * @return the value + */ + public String getPatchDescription() { + return patchDescription; + } + + /** Time the patch was applied */ + @com.fasterxml.jackson.annotation.JsonProperty("timeApplied") + private final java.util.Date timeApplied; + + /** + * Time the patch was applied + * + * @return the value + */ + public java.util.Date getTimeApplied() { + return timeApplied; + } + + /** Date on which patch was released. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeReleased") + private final java.util.Date timeReleased; + + /** + * Date on which patch was released. + * + * @return the value + */ + public java.util.Date getTimeReleased() { + return timeReleased; + } + + /** Type of patch. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchType") + private final String patchType; + + /** + * Type of patch. + * + * @return the value + */ + public String getPatchType() { + return patchType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComplianceReportPatchDetail("); + sb.append("super=").append(super.toString()); + sb.append("patchName=").append(String.valueOf(this.patchName)); + sb.append(", patchDescription=").append(String.valueOf(this.patchDescription)); + sb.append(", timeApplied=").append(String.valueOf(this.timeApplied)); + sb.append(", timeReleased=").append(String.valueOf(this.timeReleased)); + sb.append(", patchType=").append(String.valueOf(this.patchType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComplianceReportPatchDetail)) { + return false; + } + + ComplianceReportPatchDetail other = (ComplianceReportPatchDetail) o; + return java.util.Objects.equals(this.patchName, other.patchName) + && java.util.Objects.equals(this.patchDescription, other.patchDescription) + && java.util.Objects.equals(this.timeApplied, other.timeApplied) + && java.util.Objects.equals(this.timeReleased, other.timeReleased) + && java.util.Objects.equals(this.patchType, other.patchType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.patchName == null ? 43 : this.patchName.hashCode()); + result = + (result * PRIME) + + (this.patchDescription == null ? 43 : this.patchDescription.hashCode()); + result = (result * PRIME) + (this.timeApplied == null ? 43 : this.timeApplied.hashCode()); + result = (result * PRIME) + (this.timeReleased == null ? 43 : this.timeReleased.hashCode()); + result = (result * PRIME) + (this.patchType == null ? 43 : this.patchType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportProduct.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportProduct.java new file mode 100644 index 00000000000..63f43bde219 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportProduct.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Details of the Product
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComplianceReportProduct.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ComplianceReportProduct + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"productName", "targets"}) + public ComplianceReportProduct( + String productName, java.util.List targets) { + super(); + this.productName = productName; + this.targets = targets; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Product Name */ + @com.fasterxml.jackson.annotation.JsonProperty("productName") + private String productName; + + /** + * Product Name + * + * @param productName the value to set + * @return this builder + */ + public Builder productName(String productName) { + this.productName = productName; + this.__explicitlySet__.add("productName"); + return this; + } + /** Managed Targets associated with the Product. */ + @com.fasterxml.jackson.annotation.JsonProperty("targets") + private java.util.List targets; + + /** + * Managed Targets associated with the Product. + * + * @param targets the value to set + * @return this builder + */ + public Builder targets(java.util.List targets) { + this.targets = targets; + this.__explicitlySet__.add("targets"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComplianceReportProduct build() { + ComplianceReportProduct model = + new ComplianceReportProduct(this.productName, this.targets); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComplianceReportProduct model) { + if (model.wasPropertyExplicitlySet("productName")) { + this.productName(model.getProductName()); + } + if (model.wasPropertyExplicitlySet("targets")) { + this.targets(model.getTargets()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Product Name */ + @com.fasterxml.jackson.annotation.JsonProperty("productName") + private final String productName; + + /** + * Product Name + * + * @return the value + */ + public String getProductName() { + return productName; + } + + /** Managed Targets associated with the Product. */ + @com.fasterxml.jackson.annotation.JsonProperty("targets") + private final java.util.List targets; + + /** + * Managed Targets associated with the Product. + * + * @return the value + */ + public java.util.List getTargets() { + return targets; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComplianceReportProduct("); + sb.append("super=").append(super.toString()); + sb.append("productName=").append(String.valueOf(this.productName)); + sb.append(", targets=").append(String.valueOf(this.targets)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComplianceReportProduct)) { + return false; + } + + ComplianceReportProduct other = (ComplianceReportProduct) o; + return java.util.Objects.equals(this.productName, other.productName) + && java.util.Objects.equals(this.targets, other.targets) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.productName == null ? 43 : this.productName.hashCode()); + result = (result * PRIME) + (this.targets == null ? 43 : this.targets.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportResource.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportResource.java new file mode 100644 index 00000000000..b6feab681f2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportResource.java @@ -0,0 +1,453 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Details of the Resource
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComplianceReportResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ComplianceReportResource + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "resourceId", + "resourceName", + "resourceType", + "tenancyId", + "tenancyName", + "compartment", + "resourceRegion", + "complianceState", + "products" + }) + public ComplianceReportResource( + String resourceId, + String resourceName, + String resourceType, + String tenancyId, + String tenancyName, + String compartment, + String resourceRegion, + ComplianceState complianceState, + java.util.List products) { + super(); + this.resourceId = resourceId; + this.resourceName = resourceName; + this.resourceType = resourceType; + this.tenancyId = tenancyId; + this.tenancyName = tenancyName; + this.compartment = compartment; + this.resourceRegion = resourceRegion; + this.complianceState = complianceState; + this.products = products; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID to identify the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The OCID to identify the resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** Display name of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * Display name of the resource. + * + * @param resourceName the value to set + * @return this builder + */ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** Type of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private String resourceType; + + /** + * Type of the resource. + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(String resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** TenancyId of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * TenancyId of the resource. + * + * @param tenancyId the value to set + * @return this builder + */ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** Tenancy the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyName") + private String tenancyName; + + /** + * Tenancy the resource belongs to. + * + * @param tenancyName the value to set + * @return this builder + */ + public Builder tenancyName(String tenancyName) { + this.tenancyName = tenancyName; + this.__explicitlySet__.add("tenancyName"); + return this; + } + /** Compartment the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartment") + private String compartment; + + /** + * Compartment the resource belongs to. + * + * @param compartment the value to set + * @return this builder + */ + public Builder compartment(String compartment) { + this.compartment = compartment; + this.__explicitlySet__.add("compartment"); + return this; + } + /** Region the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Region the resource belongs to. + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** Last known compliance state of fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private ComplianceState complianceState; + + /** + * Last known compliance state of fleet. + * + * @param complianceState the value to set + * @return this builder + */ + public Builder complianceState(ComplianceState complianceState) { + this.complianceState = complianceState; + this.__explicitlySet__.add("complianceState"); + return this; + } + /** + * Products assocaited with the Fleet.Only products belonging to managed targets will be + * shown. + */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * Products assocaited with the Fleet.Only products belonging to managed targets will be + * shown. + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComplianceReportResource build() { + ComplianceReportResource model = + new ComplianceReportResource( + this.resourceId, + this.resourceName, + this.resourceType, + this.tenancyId, + this.tenancyName, + this.compartment, + this.resourceRegion, + this.complianceState, + this.products); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComplianceReportResource model) { + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("tenancyName")) { + this.tenancyName(model.getTenancyName()); + } + if (model.wasPropertyExplicitlySet("compartment")) { + this.compartment(model.getCompartment()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("complianceState")) { + this.complianceState(model.getComplianceState()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID to identify the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The OCID to identify the resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** Display name of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * Display name of the resource. + * + * @return the value + */ + public String getResourceName() { + return resourceName; + } + + /** Type of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final String resourceType; + + /** + * Type of the resource. + * + * @return the value + */ + public String getResourceType() { + return resourceType; + } + + /** TenancyId of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * TenancyId of the resource. + * + * @return the value + */ + public String getTenancyId() { + return tenancyId; + } + + /** Tenancy the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyName") + private final String tenancyName; + + /** + * Tenancy the resource belongs to. + * + * @return the value + */ + public String getTenancyName() { + return tenancyName; + } + + /** Compartment the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartment") + private final String compartment; + + /** + * Compartment the resource belongs to. + * + * @return the value + */ + public String getCompartment() { + return compartment; + } + + /** Region the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Region the resource belongs to. + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** Last known compliance state of fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private final ComplianceState complianceState; + + /** + * Last known compliance state of fleet. + * + * @return the value + */ + public ComplianceState getComplianceState() { + return complianceState; + } + + /** + * Products assocaited with the Fleet.Only products belonging to managed targets will be shown. + */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * Products assocaited with the Fleet.Only products belonging to managed targets will be shown. + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComplianceReportResource("); + sb.append("super=").append(super.toString()); + sb.append("resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", tenancyName=").append(String.valueOf(this.tenancyName)); + sb.append(", compartment=").append(String.valueOf(this.compartment)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", complianceState=").append(String.valueOf(this.complianceState)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComplianceReportResource)) { + return false; + } + + ComplianceReportResource other = (ComplianceReportResource) o; + return java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.tenancyName, other.tenancyName) + && java.util.Objects.equals(this.compartment, other.compartment) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.complianceState, other.complianceState) + && java.util.Objects.equals(this.products, other.products) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = (result * PRIME) + (this.tenancyName == null ? 43 : this.tenancyName.hashCode()); + result = (result * PRIME) + (this.compartment == null ? 43 : this.compartment.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = + (result * PRIME) + + (this.complianceState == null ? 43 : this.complianceState.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportTarget.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportTarget.java new file mode 100644 index 00000000000..2c32834785b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceReportTarget.java @@ -0,0 +1,339 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Details of the Patch.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComplianceReportTarget.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ComplianceReportTarget + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "targetId", + "targetName", + "version", + "complianceState", + "installedPatches", + "recommendedPatches" + }) + public ComplianceReportTarget( + String targetId, + String targetName, + String version, + ComplianceState complianceState, + java.util.List installedPatches, + java.util.List recommendedPatches) { + super(); + this.targetId = targetId; + this.targetName = targetName; + this.version = version; + this.complianceState = complianceState; + this.installedPatches = installedPatches; + this.recommendedPatches = recommendedPatches; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Target Identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * Target Identifier. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** Target Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetName") + private String targetName; + + /** + * Target Name. + * + * @param targetName the value to set + * @return this builder + */ + public Builder targetName(String targetName) { + this.targetName = targetName; + this.__explicitlySet__.add("targetName"); + return this; + } + /** Current version. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * Current version. + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** Last known compliance state of target. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private ComplianceState complianceState; + + /** + * Last known compliance state of target. + * + * @param complianceState the value to set + * @return this builder + */ + public Builder complianceState(ComplianceState complianceState) { + this.complianceState = complianceState; + this.__explicitlySet__.add("complianceState"); + return this; + } + /** Installed Patches for the Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("installedPatches") + private java.util.List installedPatches; + + /** + * Installed Patches for the Target. + * + * @param installedPatches the value to set + * @return this builder + */ + public Builder installedPatches( + java.util.List installedPatches) { + this.installedPatches = installedPatches; + this.__explicitlySet__.add("installedPatches"); + return this; + } + /** Recommended Patches for the Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendedPatches") + private java.util.List recommendedPatches; + + /** + * Recommended Patches for the Target. + * + * @param recommendedPatches the value to set + * @return this builder + */ + public Builder recommendedPatches( + java.util.List recommendedPatches) { + this.recommendedPatches = recommendedPatches; + this.__explicitlySet__.add("recommendedPatches"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComplianceReportTarget build() { + ComplianceReportTarget model = + new ComplianceReportTarget( + this.targetId, + this.targetName, + this.version, + this.complianceState, + this.installedPatches, + this.recommendedPatches); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComplianceReportTarget model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("targetName")) { + this.targetName(model.getTargetName()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("complianceState")) { + this.complianceState(model.getComplianceState()); + } + if (model.wasPropertyExplicitlySet("installedPatches")) { + this.installedPatches(model.getInstalledPatches()); + } + if (model.wasPropertyExplicitlySet("recommendedPatches")) { + this.recommendedPatches(model.getRecommendedPatches()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Target Identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * Target Identifier. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** Target Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetName") + private final String targetName; + + /** + * Target Name. + * + * @return the value + */ + public String getTargetName() { + return targetName; + } + + /** Current version. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * Current version. + * + * @return the value + */ + public String getVersion() { + return version; + } + + /** Last known compliance state of target. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private final ComplianceState complianceState; + + /** + * Last known compliance state of target. + * + * @return the value + */ + public ComplianceState getComplianceState() { + return complianceState; + } + + /** Installed Patches for the Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("installedPatches") + private final java.util.List installedPatches; + + /** + * Installed Patches for the Target. + * + * @return the value + */ + public java.util.List getInstalledPatches() { + return installedPatches; + } + + /** Recommended Patches for the Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("recommendedPatches") + private final java.util.List recommendedPatches; + + /** + * Recommended Patches for the Target. + * + * @return the value + */ + public java.util.List getRecommendedPatches() { + return recommendedPatches; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComplianceReportTarget("); + sb.append("super=").append(super.toString()); + sb.append("targetId=").append(String.valueOf(this.targetId)); + sb.append(", targetName=").append(String.valueOf(this.targetName)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", complianceState=").append(String.valueOf(this.complianceState)); + sb.append(", installedPatches=").append(String.valueOf(this.installedPatches)); + sb.append(", recommendedPatches=").append(String.valueOf(this.recommendedPatches)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComplianceReportTarget)) { + return false; + } + + ComplianceReportTarget other = (ComplianceReportTarget) o; + return java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetName, other.targetName) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.complianceState, other.complianceState) + && java.util.Objects.equals(this.installedPatches, other.installedPatches) + && java.util.Objects.equals(this.recommendedPatches, other.recommendedPatches) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.targetName == null ? 43 : this.targetName.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.complianceState == null ? 43 : this.complianceState.hashCode()); + result = + (result * PRIME) + + (this.installedPatches == null ? 43 : this.installedPatches.hashCode()); + result = + (result * PRIME) + + (this.recommendedPatches == null + ? 43 + : this.recommendedPatches.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceState.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceState.java new file mode 100644 index 00000000000..085ca400bcc --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComplianceState.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Possible values for compliance state. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum ComplianceState implements com.oracle.bmc.http.internal.BmcEnum { + Unknown("UNKNOWN"), + Compliant("COMPLIANT"), + NonCompliant("NON_COMPLIANT"), + Warning("WARNING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ComplianceState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ComplianceState v : ComplianceState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ComplianceState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ComplianceState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ComplianceState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComponentProperties.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComponentProperties.java new file mode 100644 index 00000000000..a9e5912de66 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ComponentProperties.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The properties of the task.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComponentProperties.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ComponentProperties + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"runOn", "condition", "actionOnFailure"}) + public ComponentProperties(String runOn, String condition, ActionOnFailure actionOnFailure) { + super(); + this.runOn = runOn; + this.condition = condition; + this.actionOnFailure = actionOnFailure; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The hosts to execute on. */ + @com.fasterxml.jackson.annotation.JsonProperty("runOn") + private String runOn; + + /** + * The hosts to execute on. + * + * @param runOn the value to set + * @return this builder + */ + public Builder runOn(String runOn) { + this.runOn = runOn; + this.__explicitlySet__.add("runOn"); + return this; + } + /** The condition in which the task is to be executed. */ + @com.fasterxml.jackson.annotation.JsonProperty("condition") + private String condition; + + /** + * The condition in which the task is to be executed. + * + * @param condition the value to set + * @return this builder + */ + public Builder condition(String condition) { + this.condition = condition; + this.__explicitlySet__.add("condition"); + return this; + } + /** The action to be taken in case of task failure. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOnFailure") + private ActionOnFailure actionOnFailure; + + /** + * The action to be taken in case of task failure. + * + * @param actionOnFailure the value to set + * @return this builder + */ + public Builder actionOnFailure(ActionOnFailure actionOnFailure) { + this.actionOnFailure = actionOnFailure; + this.__explicitlySet__.add("actionOnFailure"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComponentProperties build() { + ComponentProperties model = + new ComponentProperties(this.runOn, this.condition, this.actionOnFailure); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComponentProperties model) { + if (model.wasPropertyExplicitlySet("runOn")) { + this.runOn(model.getRunOn()); + } + if (model.wasPropertyExplicitlySet("condition")) { + this.condition(model.getCondition()); + } + if (model.wasPropertyExplicitlySet("actionOnFailure")) { + this.actionOnFailure(model.getActionOnFailure()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The hosts to execute on. */ + @com.fasterxml.jackson.annotation.JsonProperty("runOn") + private final String runOn; + + /** + * The hosts to execute on. + * + * @return the value + */ + public String getRunOn() { + return runOn; + } + + /** The condition in which the task is to be executed. */ + @com.fasterxml.jackson.annotation.JsonProperty("condition") + private final String condition; + + /** + * The condition in which the task is to be executed. + * + * @return the value + */ + public String getCondition() { + return condition; + } + + /** The action to be taken in case of task failure. */ + public enum ActionOnFailure implements com.oracle.bmc.http.internal.BmcEnum { + Abort("ABORT"), + Continue("CONTINUE"), + Rollback("ROLLBACK"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ActionOnFailure.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionOnFailure v : ActionOnFailure.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionOnFailure(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionOnFailure create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionOnFailure', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The action to be taken in case of task failure. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOnFailure") + private final ActionOnFailure actionOnFailure; + + /** + * The action to be taken in case of task failure. + * + * @return the value + */ + public ActionOnFailure getActionOnFailure() { + return actionOnFailure; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComponentProperties("); + sb.append("super=").append(super.toString()); + sb.append("runOn=").append(String.valueOf(this.runOn)); + sb.append(", condition=").append(String.valueOf(this.condition)); + sb.append(", actionOnFailure=").append(String.valueOf(this.actionOnFailure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComponentProperties)) { + return false; + } + + ComponentProperties other = (ComponentProperties) o; + return java.util.Objects.equals(this.runOn, other.runOn) + && java.util.Objects.equals(this.condition, other.condition) + && java.util.Objects.equals(this.actionOnFailure, other.actionOnFailure) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.runOn == null ? 43 : this.runOn.hashCode()); + result = (result * PRIME) + (this.condition == null ? 43 : this.condition.hashCode()); + result = + (result * PRIME) + + (this.actionOnFailure == null ? 43 : this.actionOnFailure.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Condition.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Condition.java new file mode 100644 index 00000000000..df7f0d56b7c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Condition.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Rule condition
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Condition.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Condition extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"attrGroup", "attrKey", "attrValue"}) + public Condition(String attrGroup, String attrKey, String attrValue) { + super(); + this.attrGroup = attrGroup; + this.attrKey = attrKey; + this.attrValue = attrValue; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Attribute Group. */ + @com.fasterxml.jackson.annotation.JsonProperty("attrGroup") + private String attrGroup; + + /** + * Attribute Group. + * + * @param attrGroup the value to set + * @return this builder + */ + public Builder attrGroup(String attrGroup) { + this.attrGroup = attrGroup; + this.__explicitlySet__.add("attrGroup"); + return this; + } + /** Attribute Key. */ + @com.fasterxml.jackson.annotation.JsonProperty("attrKey") + private String attrKey; + + /** + * Attribute Key. + * + * @param attrKey the value to set + * @return this builder + */ + public Builder attrKey(String attrKey) { + this.attrKey = attrKey; + this.__explicitlySet__.add("attrKey"); + return this; + } + /** Attribute Value. */ + @com.fasterxml.jackson.annotation.JsonProperty("attrValue") + private String attrValue; + + /** + * Attribute Value. + * + * @param attrValue the value to set + * @return this builder + */ + public Builder attrValue(String attrValue) { + this.attrValue = attrValue; + this.__explicitlySet__.add("attrValue"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Condition build() { + Condition model = new Condition(this.attrGroup, this.attrKey, this.attrValue); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Condition model) { + if (model.wasPropertyExplicitlySet("attrGroup")) { + this.attrGroup(model.getAttrGroup()); + } + if (model.wasPropertyExplicitlySet("attrKey")) { + this.attrKey(model.getAttrKey()); + } + if (model.wasPropertyExplicitlySet("attrValue")) { + this.attrValue(model.getAttrValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Attribute Group. */ + @com.fasterxml.jackson.annotation.JsonProperty("attrGroup") + private final String attrGroup; + + /** + * Attribute Group. + * + * @return the value + */ + public String getAttrGroup() { + return attrGroup; + } + + /** Attribute Key. */ + @com.fasterxml.jackson.annotation.JsonProperty("attrKey") + private final String attrKey; + + /** + * Attribute Key. + * + * @return the value + */ + public String getAttrKey() { + return attrKey; + } + + /** Attribute Value. */ + @com.fasterxml.jackson.annotation.JsonProperty("attrValue") + private final String attrValue; + + /** + * Attribute Value. + * + * @return the value + */ + public String getAttrValue() { + return attrValue; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Condition("); + sb.append("super=").append(super.toString()); + sb.append("attrGroup=").append(String.valueOf(this.attrGroup)); + sb.append(", attrKey=").append(String.valueOf(this.attrKey)); + sb.append(", attrValue=").append(String.valueOf(this.attrValue)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Condition)) { + return false; + } + + Condition other = (Condition) o; + return java.util.Objects.equals(this.attrGroup, other.attrGroup) + && java.util.Objects.equals(this.attrKey, other.attrKey) + && java.util.Objects.equals(this.attrValue, other.attrValue) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.attrGroup == null ? 43 : this.attrGroup.hashCode()); + result = (result * PRIME) + (this.attrKey == null ? 43 : this.attrKey.hashCode()); + result = (result * PRIME) + (this.attrValue == null ? 43 : this.attrValue.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ConfirmTargetsDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ConfirmTargetsDetails.java new file mode 100644 index 00000000000..78f7a88d73c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ConfirmTargetsDetails.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Details of the targets that needs to be confirmed for FAMS management
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConfirmTargetsDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ConfirmTargetsDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"targets"}) + public ConfirmTargetsDetails(java.util.List targets) { + super(); + this.targets = targets; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The targets to confirm. */ + @com.fasterxml.jackson.annotation.JsonProperty("targets") + private java.util.List targets; + + /** + * The targets to confirm. + * + * @param targets the value to set + * @return this builder + */ + public Builder targets(java.util.List targets) { + this.targets = targets; + this.__explicitlySet__.add("targets"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConfirmTargetsDetails build() { + ConfirmTargetsDetails model = new ConfirmTargetsDetails(this.targets); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConfirmTargetsDetails model) { + if (model.wasPropertyExplicitlySet("targets")) { + this.targets(model.getTargets()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The targets to confirm. */ + @com.fasterxml.jackson.annotation.JsonProperty("targets") + private final java.util.List targets; + + /** + * The targets to confirm. + * + * @return the value + */ + public java.util.List getTargets() { + return targets; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ConfirmTargetsDetails("); + sb.append("super=").append(super.toString()); + sb.append("targets=").append(String.valueOf(this.targets)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfirmTargetsDetails)) { + return false; + } + + ConfirmTargetsDetails other = (ConfirmTargetsDetails) o; + return java.util.Objects.equals(this.targets, other.targets) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targets == null ? 43 : this.targets.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ContentDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ContentDetails.java new file mode 100644 index 00000000000..c4c2e0c79e7 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ContentDetails.java @@ -0,0 +1,123 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Content Source Details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType", + defaultImpl = ContentDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ObjectStorageBucketContentDetails.class, + name = "OBJECT_STORAGE_BUCKET") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ContentDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ContentDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ContentDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ContentDetails)) { + return false; + } + + ContentDetails other = (ContentDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Content Source Details. */ + public enum SourceType implements com.oracle.bmc.http.internal.BmcEnum { + ObjectStorageBucket("OBJECT_STORAGE_BUCKET"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(SourceType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SourceType v : SourceType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SourceType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SourceType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SourceType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetCredentialDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetCredentialDetails.java new file mode 100644 index 00000000000..3e83d529f63 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetCredentialDetails.java @@ -0,0 +1,275 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information about new FleetCredential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateFleetCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateFleetCredentialDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "compartmentId", + "entitySpecifics", + "user", + "password" + }) + public CreateFleetCredentialDetails( + String displayName, + String compartmentId, + CredentialEntitySpecificDetails entitySpecifics, + CredentialDetails user, + CredentialDetails password) { + super(); + this.displayName = displayName; + this.compartmentId = compartmentId; + this.entitySpecifics = entitySpecifics; + this.user = user; + this.password = password; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitySpecifics") + private CredentialEntitySpecificDetails entitySpecifics; + + public Builder entitySpecifics(CredentialEntitySpecificDetails entitySpecifics) { + this.entitySpecifics = entitySpecifics; + this.__explicitlySet__.add("entitySpecifics"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("user") + private CredentialDetails user; + + public Builder user(CredentialDetails user) { + this.user = user; + this.__explicitlySet__.add("user"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private CredentialDetails password; + + public Builder password(CredentialDetails password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateFleetCredentialDetails build() { + CreateFleetCredentialDetails model = + new CreateFleetCredentialDetails( + this.displayName, + this.compartmentId, + this.entitySpecifics, + this.user, + this.password); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateFleetCredentialDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("entitySpecifics")) { + this.entitySpecifics(model.getEntitySpecifics()); + } + if (model.wasPropertyExplicitlySet("user")) { + this.user(model.getUser()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitySpecifics") + private final CredentialEntitySpecificDetails entitySpecifics; + + public CredentialEntitySpecificDetails getEntitySpecifics() { + return entitySpecifics; + } + + @com.fasterxml.jackson.annotation.JsonProperty("user") + private final CredentialDetails user; + + public CredentialDetails getUser() { + return user; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final CredentialDetails password; + + public CredentialDetails getPassword() { + return password; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateFleetCredentialDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", entitySpecifics=").append(String.valueOf(this.entitySpecifics)); + sb.append(", user=").append(String.valueOf(this.user)); + sb.append(", password=").append(String.valueOf(this.password)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetCredentialDetails)) { + return false; + } + + CreateFleetCredentialDetails other = (CreateFleetCredentialDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.entitySpecifics, other.entitySpecifics) + && java.util.Objects.equals(this.user, other.user) + && java.util.Objects.equals(this.password, other.password) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.entitySpecifics == null ? 43 : this.entitySpecifics.hashCode()); + result = (result * PRIME) + (this.user == null ? 43 : this.user.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetDetails.java new file mode 100644 index 00000000000..4d98c716bd7 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetDetails.java @@ -0,0 +1,712 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information about new Fleet.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateFleetDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateFleetDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "compartmentId", + "fleetType", + "products", + "applicationType", + "environmentType", + "groupType", + "resourceSelectionType", + "ruleSelectionCriteria", + "notificationPreferences", + "resources", + "isTargetAutoConfirm", + "freeformTags", + "definedTags" + }) + public CreateFleetDetails( + String displayName, + String description, + String compartmentId, + Fleet.FleetType fleetType, + java.util.List products, + String applicationType, + String environmentType, + Fleet.GroupType groupType, + Fleet.ResourceSelectionType resourceSelectionType, + SelectionCriteria ruleSelectionCriteria, + NotificationPreferences notificationPreferences, + java.util.List resources, + Boolean isTargetAutoConfirm, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.fleetType = fleetType; + this.products = products; + this.applicationType = applicationType; + this.environmentType = environmentType; + this.groupType = groupType; + this.resourceSelectionType = resourceSelectionType; + this.ruleSelectionCriteria = ruleSelectionCriteria; + this.notificationPreferences = notificationPreferences; + this.resources = resources; + this.isTargetAutoConfirm = isTargetAutoConfirm; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Type of the Fleet */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetType") + private Fleet.FleetType fleetType; + + /** + * Type of the Fleet + * + * @param fleetType the value to set + * @return this builder + */ + public Builder fleetType(Fleet.FleetType fleetType) { + this.fleetType = fleetType; + this.__explicitlySet__.add("fleetType"); + return this; + } + /** Products associated with the Fleet */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * Products associated with the Fleet + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + /** Application Type associated with the Fleet.Applicable for Environment fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private String applicationType; + + /** + * Application Type associated with the Fleet.Applicable for Environment fleet types. + * + * @param applicationType the value to set + * @return this builder + */ + public Builder applicationType(String applicationType) { + this.applicationType = applicationType; + this.__explicitlySet__.add("applicationType"); + return this; + } + /** Environment Type associated with the Fleet.Applicable for Environment fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private String environmentType; + + /** + * Environment Type associated with the Fleet.Applicable for Environment fleet types. + * + * @param environmentType the value to set + * @return this builder + */ + public Builder environmentType(String environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + /** Group Type associated with Group Fleet.Applicable for Group fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("groupType") + private Fleet.GroupType groupType; + + /** + * Group Type associated with Group Fleet.Applicable for Group fleet types. + * + * @param groupType the value to set + * @return this builder + */ + public Builder groupType(Fleet.GroupType groupType) { + this.groupType = groupType; + this.__explicitlySet__.add("groupType"); + return this; + } + /** Type of resource selection in a fleet */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceSelectionType") + private Fleet.ResourceSelectionType resourceSelectionType; + + /** + * Type of resource selection in a fleet + * + * @param resourceSelectionType the value to set + * @return this builder + */ + public Builder resourceSelectionType(Fleet.ResourceSelectionType resourceSelectionType) { + this.resourceSelectionType = resourceSelectionType; + this.__explicitlySet__.add("resourceSelectionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ruleSelectionCriteria") + private SelectionCriteria ruleSelectionCriteria; + + public Builder ruleSelectionCriteria(SelectionCriteria ruleSelectionCriteria) { + this.ruleSelectionCriteria = ruleSelectionCriteria; + this.__explicitlySet__.add("ruleSelectionCriteria"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("notificationPreferences") + private NotificationPreferences notificationPreferences; + + public Builder notificationPreferences(NotificationPreferences notificationPreferences) { + this.notificationPreferences = notificationPreferences; + this.__explicitlySet__.add("notificationPreferences"); + return this; + } + /** Resources to be added during fleet creation when Resource selection type is Manual. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * Resources to be added during fleet creation when Resource selection type is Manual. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** A value which represents if auto confirming of the targets can be enabled */ + @com.fasterxml.jackson.annotation.JsonProperty("isTargetAutoConfirm") + private Boolean isTargetAutoConfirm; + + /** + * A value which represents if auto confirming of the targets can be enabled + * + * @param isTargetAutoConfirm the value to set + * @return this builder + */ + public Builder isTargetAutoConfirm(Boolean isTargetAutoConfirm) { + this.isTargetAutoConfirm = isTargetAutoConfirm; + this.__explicitlySet__.add("isTargetAutoConfirm"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateFleetDetails build() { + CreateFleetDetails model = + new CreateFleetDetails( + this.displayName, + this.description, + this.compartmentId, + this.fleetType, + this.products, + this.applicationType, + this.environmentType, + this.groupType, + this.resourceSelectionType, + this.ruleSelectionCriteria, + this.notificationPreferences, + this.resources, + this.isTargetAutoConfirm, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateFleetDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("fleetType")) { + this.fleetType(model.getFleetType()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + if (model.wasPropertyExplicitlySet("applicationType")) { + this.applicationType(model.getApplicationType()); + } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + if (model.wasPropertyExplicitlySet("groupType")) { + this.groupType(model.getGroupType()); + } + if (model.wasPropertyExplicitlySet("resourceSelectionType")) { + this.resourceSelectionType(model.getResourceSelectionType()); + } + if (model.wasPropertyExplicitlySet("ruleSelectionCriteria")) { + this.ruleSelectionCriteria(model.getRuleSelectionCriteria()); + } + if (model.wasPropertyExplicitlySet("notificationPreferences")) { + this.notificationPreferences(model.getNotificationPreferences()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("isTargetAutoConfirm")) { + this.isTargetAutoConfirm(model.getIsTargetAutoConfirm()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Type of the Fleet */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetType") + private final Fleet.FleetType fleetType; + + /** + * Type of the Fleet + * + * @return the value + */ + public Fleet.FleetType getFleetType() { + return fleetType; + } + + /** Products associated with the Fleet */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * Products associated with the Fleet + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + /** Application Type associated with the Fleet.Applicable for Environment fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private final String applicationType; + + /** + * Application Type associated with the Fleet.Applicable for Environment fleet types. + * + * @return the value + */ + public String getApplicationType() { + return applicationType; + } + + /** Environment Type associated with the Fleet.Applicable for Environment fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final String environmentType; + + /** + * Environment Type associated with the Fleet.Applicable for Environment fleet types. + * + * @return the value + */ + public String getEnvironmentType() { + return environmentType; + } + + /** Group Type associated with Group Fleet.Applicable for Group fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("groupType") + private final Fleet.GroupType groupType; + + /** + * Group Type associated with Group Fleet.Applicable for Group fleet types. + * + * @return the value + */ + public Fleet.GroupType getGroupType() { + return groupType; + } + + /** Type of resource selection in a fleet */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceSelectionType") + private final Fleet.ResourceSelectionType resourceSelectionType; + + /** + * Type of resource selection in a fleet + * + * @return the value + */ + public Fleet.ResourceSelectionType getResourceSelectionType() { + return resourceSelectionType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ruleSelectionCriteria") + private final SelectionCriteria ruleSelectionCriteria; + + public SelectionCriteria getRuleSelectionCriteria() { + return ruleSelectionCriteria; + } + + @com.fasterxml.jackson.annotation.JsonProperty("notificationPreferences") + private final NotificationPreferences notificationPreferences; + + public NotificationPreferences getNotificationPreferences() { + return notificationPreferences; + } + + /** Resources to be added during fleet creation when Resource selection type is Manual. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * Resources to be added during fleet creation when Resource selection type is Manual. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** A value which represents if auto confirming of the targets can be enabled */ + @com.fasterxml.jackson.annotation.JsonProperty("isTargetAutoConfirm") + private final Boolean isTargetAutoConfirm; + + /** + * A value which represents if auto confirming of the targets can be enabled + * + * @return the value + */ + public Boolean getIsTargetAutoConfirm() { + return isTargetAutoConfirm; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateFleetDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", fleetType=").append(String.valueOf(this.fleetType)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(", applicationType=").append(String.valueOf(this.applicationType)); + sb.append(", environmentType=").append(String.valueOf(this.environmentType)); + sb.append(", groupType=").append(String.valueOf(this.groupType)); + sb.append(", resourceSelectionType=").append(String.valueOf(this.resourceSelectionType)); + sb.append(", ruleSelectionCriteria=").append(String.valueOf(this.ruleSelectionCriteria)); + sb.append(", notificationPreferences=") + .append(String.valueOf(this.notificationPreferences)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", isTargetAutoConfirm=").append(String.valueOf(this.isTargetAutoConfirm)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetDetails)) { + return false; + } + + CreateFleetDetails other = (CreateFleetDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.fleetType, other.fleetType) + && java.util.Objects.equals(this.products, other.products) + && java.util.Objects.equals(this.applicationType, other.applicationType) + && java.util.Objects.equals(this.environmentType, other.environmentType) + && java.util.Objects.equals(this.groupType, other.groupType) + && java.util.Objects.equals(this.resourceSelectionType, other.resourceSelectionType) + && java.util.Objects.equals(this.ruleSelectionCriteria, other.ruleSelectionCriteria) + && java.util.Objects.equals( + this.notificationPreferences, other.notificationPreferences) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.isTargetAutoConfirm, other.isTargetAutoConfirm) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.fleetType == null ? 43 : this.fleetType.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + result = + (result * PRIME) + + (this.applicationType == null ? 43 : this.applicationType.hashCode()); + result = + (result * PRIME) + + (this.environmentType == null ? 43 : this.environmentType.hashCode()); + result = (result * PRIME) + (this.groupType == null ? 43 : this.groupType.hashCode()); + result = + (result * PRIME) + + (this.resourceSelectionType == null + ? 43 + : this.resourceSelectionType.hashCode()); + result = + (result * PRIME) + + (this.ruleSelectionCriteria == null + ? 43 + : this.ruleSelectionCriteria.hashCode()); + result = + (result * PRIME) + + (this.notificationPreferences == null + ? 43 + : this.notificationPreferences.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.isTargetAutoConfirm == null + ? 43 + : this.isTargetAutoConfirm.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetPropertyDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetPropertyDetails.java new file mode 100644 index 00000000000..e75c5a1c542 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetPropertyDetails.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information about new FleetProperty.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateFleetPropertyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateFleetPropertyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId", "value", "propertyId"}) + public CreateFleetPropertyDetails(String compartmentId, String value, String propertyId) { + super(); + this.compartmentId = compartmentId; + this.value = value; + this.propertyId = propertyId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Value of the Property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * Value of the Property + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + /** Property Id. */ + @com.fasterxml.jackson.annotation.JsonProperty("propertyId") + private String propertyId; + + /** + * Property Id. + * + * @param propertyId the value to set + * @return this builder + */ + public Builder propertyId(String propertyId) { + this.propertyId = propertyId; + this.__explicitlySet__.add("propertyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateFleetPropertyDetails build() { + CreateFleetPropertyDetails model = + new CreateFleetPropertyDetails(this.compartmentId, this.value, this.propertyId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateFleetPropertyDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + if (model.wasPropertyExplicitlySet("propertyId")) { + this.propertyId(model.getPropertyId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Value of the Property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * Value of the Property + * + * @return the value + */ + public String getValue() { + return value; + } + + /** Property Id. */ + @com.fasterxml.jackson.annotation.JsonProperty("propertyId") + private final String propertyId; + + /** + * Property Id. + * + * @return the value + */ + public String getPropertyId() { + return propertyId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateFleetPropertyDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", propertyId=").append(String.valueOf(this.propertyId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetPropertyDetails)) { + return false; + } + + CreateFleetPropertyDetails other = (CreateFleetPropertyDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.value, other.value) + && java.util.Objects.equals(this.propertyId, other.propertyId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + (this.propertyId == null ? 43 : this.propertyId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetResourceDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetResourceDetails.java new file mode 100644 index 00000000000..e482f485e29 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateFleetResourceDetails.java @@ -0,0 +1,295 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information about new FleetResource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateFleetResourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateFleetResourceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "resourceId", + "tenancyId", + "compartmentId", + "resourceRegion", + "resourceType" + }) + public CreateFleetResourceDetails( + String resourceId, + String tenancyId, + String compartmentId, + String resourceRegion, + String resourceType) { + super(); + this.resourceId = resourceId; + this.tenancyId = tenancyId; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.resourceType = resourceType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The OCID of the resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @param tenancyId the value to set + * @return this builder + */ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** Type of the Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private String resourceType; + + /** + * Type of the Resource. + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(String resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateFleetResourceDetails build() { + CreateFleetResourceDetails model = + new CreateFleetResourceDetails( + this.resourceId, + this.tenancyId, + this.compartmentId, + this.resourceRegion, + this.resourceType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateFleetResourceDetails model) { + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @return the value + */ + public String getTenancyId() { + return tenancyId; + } + + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** Type of the Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final String resourceType; + + /** + * Type of the Resource. + * + * @return the value + */ + public String getResourceType() { + return resourceType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateFleetResourceDetails("); + sb.append("super=").append(super.toString()); + sb.append("resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetResourceDetails)) { + return false; + } + + CreateFleetResourceDetails other = (CreateFleetResourceDetails) o; + return java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateMaintenanceWindowDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateMaintenanceWindowDetails.java new file mode 100644 index 00000000000..e4769e66a4c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateMaintenanceWindowDetails.java @@ -0,0 +1,610 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information about new MaintenanceWindow.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateMaintenanceWindowDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateMaintenanceWindowDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "description", + "isOutage", + "maintenanceWindowType", + "timeScheduleStart", + "duration", + "isRecurring", + "recurrences", + "taskInitiationCutoff", + "freeformTags", + "definedTags" + }) + public CreateMaintenanceWindowDetails( + String compartmentId, + String displayName, + String description, + Boolean isOutage, + MaintenanceWindowType maintenanceWindowType, + java.util.Date timeScheduleStart, + String duration, + Boolean isRecurring, + String recurrences, + Integer taskInitiationCutoff, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.isOutage = isOutage; + this.maintenanceWindowType = maintenanceWindowType; + this.timeScheduleStart = timeScheduleStart; + this.duration = duration; + this.isRecurring = isRecurring; + this.recurrences = recurrences; + this.taskInitiationCutoff = taskInitiationCutoff; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Does the maintenenace window cause outage? */ + @com.fasterxml.jackson.annotation.JsonProperty("isOutage") + private Boolean isOutage; + + /** + * Does the maintenenace window cause outage? + * + * @param isOutage the value to set + * @return this builder + */ + public Builder isOutage(Boolean isOutage) { + this.isOutage = isOutage; + this.__explicitlySet__.add("isOutage"); + return this; + } + /** Type of maintenenace window */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowType") + private MaintenanceWindowType maintenanceWindowType; + + /** + * Type of maintenenace window + * + * @param maintenanceWindowType the value to set + * @return this builder + */ + public Builder maintenanceWindowType(MaintenanceWindowType maintenanceWindowType) { + this.maintenanceWindowType = maintenanceWindowType; + this.__explicitlySet__.add("maintenanceWindowType"); + return this; + } + /** Start time of schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleStart") + private java.util.Date timeScheduleStart; + + /** + * Start time of schedule + * + * @param timeScheduleStart the value to set + * @return this builder + */ + public Builder timeScheduleStart(java.util.Date timeScheduleStart) { + this.timeScheduleStart = timeScheduleStart; + this.__explicitlySet__.add("timeScheduleStart"); + return this; + } + /** Duration if schedule type is Custom */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private String duration; + + /** + * Duration if schedule type is Custom + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(String duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + /** Is this is a recurring maintenance window */ + @com.fasterxml.jackson.annotation.JsonProperty("isRecurring") + private Boolean isRecurring; + + /** + * Is this is a recurring maintenance window + * + * @param isRecurring the value to set + * @return this builder + */ + public Builder isRecurring(Boolean isRecurring) { + this.isRecurring = isRecurring; + this.__explicitlySet__.add("isRecurring"); + return this; + } + /** Recurrence rule specification if recurring */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrences") + private String recurrences; + + /** + * Recurrence rule specification if recurring + * + * @param recurrences the value to set + * @return this builder + */ + public Builder recurrences(String recurrences) { + this.recurrences = recurrences; + this.__explicitlySet__.add("recurrences"); + return this; + } + /** Task initiation cutoff */ + @com.fasterxml.jackson.annotation.JsonProperty("taskInitiationCutoff") + private Integer taskInitiationCutoff; + + /** + * Task initiation cutoff + * + * @param taskInitiationCutoff the value to set + * @return this builder + */ + public Builder taskInitiationCutoff(Integer taskInitiationCutoff) { + this.taskInitiationCutoff = taskInitiationCutoff; + this.__explicitlySet__.add("taskInitiationCutoff"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateMaintenanceWindowDetails build() { + CreateMaintenanceWindowDetails model = + new CreateMaintenanceWindowDetails( + this.compartmentId, + this.displayName, + this.description, + this.isOutage, + this.maintenanceWindowType, + this.timeScheduleStart, + this.duration, + this.isRecurring, + this.recurrences, + this.taskInitiationCutoff, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateMaintenanceWindowDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("isOutage")) { + this.isOutage(model.getIsOutage()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindowType")) { + this.maintenanceWindowType(model.getMaintenanceWindowType()); + } + if (model.wasPropertyExplicitlySet("timeScheduleStart")) { + this.timeScheduleStart(model.getTimeScheduleStart()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + if (model.wasPropertyExplicitlySet("isRecurring")) { + this.isRecurring(model.getIsRecurring()); + } + if (model.wasPropertyExplicitlySet("recurrences")) { + this.recurrences(model.getRecurrences()); + } + if (model.wasPropertyExplicitlySet("taskInitiationCutoff")) { + this.taskInitiationCutoff(model.getTaskInitiationCutoff()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Does the maintenenace window cause outage? */ + @com.fasterxml.jackson.annotation.JsonProperty("isOutage") + private final Boolean isOutage; + + /** + * Does the maintenenace window cause outage? + * + * @return the value + */ + public Boolean getIsOutage() { + return isOutage; + } + + /** Type of maintenenace window */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowType") + private final MaintenanceWindowType maintenanceWindowType; + + /** + * Type of maintenenace window + * + * @return the value + */ + public MaintenanceWindowType getMaintenanceWindowType() { + return maintenanceWindowType; + } + + /** Start time of schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleStart") + private final java.util.Date timeScheduleStart; + + /** + * Start time of schedule + * + * @return the value + */ + public java.util.Date getTimeScheduleStart() { + return timeScheduleStart; + } + + /** Duration if schedule type is Custom */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final String duration; + + /** + * Duration if schedule type is Custom + * + * @return the value + */ + public String getDuration() { + return duration; + } + + /** Is this is a recurring maintenance window */ + @com.fasterxml.jackson.annotation.JsonProperty("isRecurring") + private final Boolean isRecurring; + + /** + * Is this is a recurring maintenance window + * + * @return the value + */ + public Boolean getIsRecurring() { + return isRecurring; + } + + /** Recurrence rule specification if recurring */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrences") + private final String recurrences; + + /** + * Recurrence rule specification if recurring + * + * @return the value + */ + public String getRecurrences() { + return recurrences; + } + + /** Task initiation cutoff */ + @com.fasterxml.jackson.annotation.JsonProperty("taskInitiationCutoff") + private final Integer taskInitiationCutoff; + + /** + * Task initiation cutoff + * + * @return the value + */ + public Integer getTaskInitiationCutoff() { + return taskInitiationCutoff; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateMaintenanceWindowDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", isOutage=").append(String.valueOf(this.isOutage)); + sb.append(", maintenanceWindowType=").append(String.valueOf(this.maintenanceWindowType)); + sb.append(", timeScheduleStart=").append(String.valueOf(this.timeScheduleStart)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(", isRecurring=").append(String.valueOf(this.isRecurring)); + sb.append(", recurrences=").append(String.valueOf(this.recurrences)); + sb.append(", taskInitiationCutoff=").append(String.valueOf(this.taskInitiationCutoff)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateMaintenanceWindowDetails)) { + return false; + } + + CreateMaintenanceWindowDetails other = (CreateMaintenanceWindowDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.isOutage, other.isOutage) + && java.util.Objects.equals(this.maintenanceWindowType, other.maintenanceWindowType) + && java.util.Objects.equals(this.timeScheduleStart, other.timeScheduleStart) + && java.util.Objects.equals(this.duration, other.duration) + && java.util.Objects.equals(this.isRecurring, other.isRecurring) + && java.util.Objects.equals(this.recurrences, other.recurrences) + && java.util.Objects.equals(this.taskInitiationCutoff, other.taskInitiationCutoff) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.isOutage == null ? 43 : this.isOutage.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindowType == null + ? 43 + : this.maintenanceWindowType.hashCode()); + result = + (result * PRIME) + + (this.timeScheduleStart == null ? 43 : this.timeScheduleStart.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.hashCode()); + result = (result * PRIME) + (this.isRecurring == null ? 43 : this.isRecurring.hashCode()); + result = (result * PRIME) + (this.recurrences == null ? 43 : this.recurrences.hashCode()); + result = + (result * PRIME) + + (this.taskInitiationCutoff == null + ? 43 + : this.taskInitiationCutoff.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateOnboardingDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateOnboardingDetails.java new file mode 100644 index 00000000000..56ef22e8a9e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateOnboardingDetails.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information about enabling onboarding.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOnboardingDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOnboardingDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "isFamsTagEnabled", + "isCostTrackingTagEnabled" + }) + public CreateOnboardingDetails( + String compartmentId, Boolean isFamsTagEnabled, Boolean isCostTrackingTagEnabled) { + super(); + this.compartmentId = compartmentId; + this.isFamsTagEnabled = isFamsTagEnabled; + this.isCostTrackingTagEnabled = isCostTrackingTagEnabled; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** A value determining FAMS tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isFamsTagEnabled") + private Boolean isFamsTagEnabled; + + /** + * A value determining FAMS tag is enabled or not + * + * @param isFamsTagEnabled the value to set + * @return this builder + */ + public Builder isFamsTagEnabled(Boolean isFamsTagEnabled) { + this.isFamsTagEnabled = isFamsTagEnabled; + this.__explicitlySet__.add("isFamsTagEnabled"); + return this; + } + /** A value determining if cost tracking tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isCostTrackingTagEnabled") + private Boolean isCostTrackingTagEnabled; + + /** + * A value determining if cost tracking tag is enabled or not + * + * @param isCostTrackingTagEnabled the value to set + * @return this builder + */ + public Builder isCostTrackingTagEnabled(Boolean isCostTrackingTagEnabled) { + this.isCostTrackingTagEnabled = isCostTrackingTagEnabled; + this.__explicitlySet__.add("isCostTrackingTagEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOnboardingDetails build() { + CreateOnboardingDetails model = + new CreateOnboardingDetails( + this.compartmentId, + this.isFamsTagEnabled, + this.isCostTrackingTagEnabled); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOnboardingDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("isFamsTagEnabled")) { + this.isFamsTagEnabled(model.getIsFamsTagEnabled()); + } + if (model.wasPropertyExplicitlySet("isCostTrackingTagEnabled")) { + this.isCostTrackingTagEnabled(model.getIsCostTrackingTagEnabled()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** A value determining FAMS tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isFamsTagEnabled") + private final Boolean isFamsTagEnabled; + + /** + * A value determining FAMS tag is enabled or not + * + * @return the value + */ + public Boolean getIsFamsTagEnabled() { + return isFamsTagEnabled; + } + + /** A value determining if cost tracking tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isCostTrackingTagEnabled") + private final Boolean isCostTrackingTagEnabled; + + /** + * A value determining if cost tracking tag is enabled or not + * + * @return the value + */ + public Boolean getIsCostTrackingTagEnabled() { + return isCostTrackingTagEnabled; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOnboardingDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", isFamsTagEnabled=").append(String.valueOf(this.isFamsTagEnabled)); + sb.append(", isCostTrackingTagEnabled=") + .append(String.valueOf(this.isCostTrackingTagEnabled)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOnboardingDetails)) { + return false; + } + + CreateOnboardingDetails other = (CreateOnboardingDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.isFamsTagEnabled, other.isFamsTagEnabled) + && java.util.Objects.equals( + this.isCostTrackingTagEnabled, other.isCostTrackingTagEnabled) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.isFamsTagEnabled == null ? 43 : this.isFamsTagEnabled.hashCode()); + result = + (result * PRIME) + + (this.isCostTrackingTagEnabled == null + ? 43 + : this.isCostTrackingTagEnabled.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreatePropertyDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreatePropertyDetails.java new file mode 100644 index 00000000000..0520474b771 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreatePropertyDetails.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information about new Property.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreatePropertyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreatePropertyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "selection", + "valueType", + "values" + }) + public CreatePropertyDetails( + String compartmentId, + String displayName, + Selection selection, + ValueType valueType, + java.util.List values) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.selection = selection; + this.valueType = valueType; + this.values = values; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Text selection of the category */ + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private Selection selection; + + /** + * Text selection of the category + * + * @param selection the value to set + * @return this builder + */ + public Builder selection(Selection selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** Format of the value */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private ValueType valueType; + + /** + * Format of the value + * + * @param valueType the value to set + * @return this builder + */ + public Builder valueType(ValueType valueType) { + this.valueType = valueType; + this.__explicitlySet__.add("valueType"); + return this; + } + /** Values of the property (must be a single value if selection = 'single choice') */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private java.util.List values; + + /** + * Values of the property (must be a single value if selection = 'single choice') + * + * @param values the value to set + * @return this builder + */ + public Builder values(java.util.List values) { + this.values = values; + this.__explicitlySet__.add("values"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreatePropertyDetails build() { + CreatePropertyDetails model = + new CreatePropertyDetails( + this.compartmentId, + this.displayName, + this.selection, + this.valueType, + this.values); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreatePropertyDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("valueType")) { + this.valueType(model.getValueType()); + } + if (model.wasPropertyExplicitlySet("values")) { + this.values(model.getValues()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Text selection of the category */ + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private final Selection selection; + + /** + * Text selection of the category + * + * @return the value + */ + public Selection getSelection() { + return selection; + } + + /** Format of the value */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private final ValueType valueType; + + /** + * Format of the value + * + * @return the value + */ + public ValueType getValueType() { + return valueType; + } + + /** Values of the property (must be a single value if selection = 'single choice') */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private final java.util.List values; + + /** + * Values of the property (must be a single value if selection = 'single choice') + * + * @return the value + */ + public java.util.List getValues() { + return values; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreatePropertyDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", selection=").append(String.valueOf(this.selection)); + sb.append(", valueType=").append(String.valueOf(this.valueType)); + sb.append(", values=").append(String.valueOf(this.values)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreatePropertyDetails)) { + return false; + } + + CreatePropertyDetails other = (CreatePropertyDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.selection, other.selection) + && java.util.Objects.equals(this.valueType, other.valueType) + && java.util.Objects.equals(this.values, other.values) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.selection == null ? 43 : this.selection.hashCode()); + result = (result * PRIME) + (this.valueType == null ? 43 : this.valueType.hashCode()); + result = (result * PRIME) + (this.values == null ? 43 : this.values.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateSchedulerDefinitionDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateSchedulerDefinitionDetails.java new file mode 100644 index 00000000000..2c5d1cf8ab5 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CreateSchedulerDefinitionDetails.java @@ -0,0 +1,480 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information about new SchedulerDefinition.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateSchedulerDefinitionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateSchedulerDefinitionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "compartmentId", + "activityInitiationCutOff", + "schedule", + "actionGroups", + "runBooks", + "freeformTags", + "definedTags" + }) + public CreateSchedulerDefinitionDetails( + String displayName, + String description, + String compartmentId, + Integer activityInitiationCutOff, + Schedule schedule, + java.util.List actionGroups, + java.util.List runBooks, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.activityInitiationCutOff = activityInitiationCutOff; + this.schedule = schedule; + this.actionGroups = actionGroups; + this.runBooks = runBooks; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Activity Initiation Cut Off */ + @com.fasterxml.jackson.annotation.JsonProperty("activityInitiationCutOff") + private Integer activityInitiationCutOff; + + /** + * Activity Initiation Cut Off + * + * @param activityInitiationCutOff the value to set + * @return this builder + */ + public Builder activityInitiationCutOff(Integer activityInitiationCutOff) { + this.activityInitiationCutOff = activityInitiationCutOff; + this.__explicitlySet__.add("activityInitiationCutOff"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private Schedule schedule; + + public Builder schedule(Schedule schedule) { + this.schedule = schedule; + this.__explicitlySet__.add("schedule"); + return this; + } + /** Action Groups associated with the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroups") + private java.util.List actionGroups; + + /** + * Action Groups associated with the Schedule. + * + * @param actionGroups the value to set + * @return this builder + */ + public Builder actionGroups(java.util.List actionGroups) { + this.actionGroups = actionGroups; + this.__explicitlySet__.add("actionGroups"); + return this; + } + /** Runbooks. */ + @com.fasterxml.jackson.annotation.JsonProperty("runBooks") + private java.util.List runBooks; + + /** + * Runbooks. + * + * @param runBooks the value to set + * @return this builder + */ + public Builder runBooks(java.util.List runBooks) { + this.runBooks = runBooks; + this.__explicitlySet__.add("runBooks"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateSchedulerDefinitionDetails build() { + CreateSchedulerDefinitionDetails model = + new CreateSchedulerDefinitionDetails( + this.displayName, + this.description, + this.compartmentId, + this.activityInitiationCutOff, + this.schedule, + this.actionGroups, + this.runBooks, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateSchedulerDefinitionDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("activityInitiationCutOff")) { + this.activityInitiationCutOff(model.getActivityInitiationCutOff()); + } + if (model.wasPropertyExplicitlySet("schedule")) { + this.schedule(model.getSchedule()); + } + if (model.wasPropertyExplicitlySet("actionGroups")) { + this.actionGroups(model.getActionGroups()); + } + if (model.wasPropertyExplicitlySet("runBooks")) { + this.runBooks(model.getRunBooks()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Activity Initiation Cut Off */ + @com.fasterxml.jackson.annotation.JsonProperty("activityInitiationCutOff") + private final Integer activityInitiationCutOff; + + /** + * Activity Initiation Cut Off + * + * @return the value + */ + public Integer getActivityInitiationCutOff() { + return activityInitiationCutOff; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private final Schedule schedule; + + public Schedule getSchedule() { + return schedule; + } + + /** Action Groups associated with the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroups") + private final java.util.List actionGroups; + + /** + * Action Groups associated with the Schedule. + * + * @return the value + */ + public java.util.List getActionGroups() { + return actionGroups; + } + + /** Runbooks. */ + @com.fasterxml.jackson.annotation.JsonProperty("runBooks") + private final java.util.List runBooks; + + /** + * Runbooks. + * + * @return the value + */ + public java.util.List getRunBooks() { + return runBooks; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateSchedulerDefinitionDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", activityInitiationCutOff=") + .append(String.valueOf(this.activityInitiationCutOff)); + sb.append(", schedule=").append(String.valueOf(this.schedule)); + sb.append(", actionGroups=").append(String.valueOf(this.actionGroups)); + sb.append(", runBooks=").append(String.valueOf(this.runBooks)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSchedulerDefinitionDetails)) { + return false; + } + + CreateSchedulerDefinitionDetails other = (CreateSchedulerDefinitionDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.activityInitiationCutOff, other.activityInitiationCutOff) + && java.util.Objects.equals(this.schedule, other.schedule) + && java.util.Objects.equals(this.actionGroups, other.actionGroups) + && java.util.Objects.equals(this.runBooks, other.runBooks) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.activityInitiationCutOff == null + ? 43 + : this.activityInitiationCutOff.hashCode()); + result = (result * PRIME) + (this.schedule == null ? 43 : this.schedule.hashCode()); + result = (result * PRIME) + (this.actionGroups == null ? 43 : this.actionGroups.hashCode()); + result = (result * PRIME) + (this.runBooks == null ? 43 : this.runBooks.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CredentialDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CredentialDetails.java new file mode 100644 index 00000000000..e3f2ea40954 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CredentialDetails.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Credential Details
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType", + defaultImpl = CredentialDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PlainTextCredentialDetails.class, + name = "PLAIN_TEXT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = KeyEncryptionCredentialDetails.class, + name = "KEY_ENCRYPTION"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = VaultSecretCredentialDetails.class, + name = "VAULT_SECRET") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CredentialDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CredentialDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CredentialDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CredentialDetails)) { + return false; + } + + CredentialDetails other = (CredentialDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Credential Type */ + public enum CredentialType implements com.oracle.bmc.http.internal.BmcEnum { + PlainText("PLAIN_TEXT"), + VaultSecret("VAULT_SECRET"), + KeyEncryption("KEY_ENCRYPTION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CredentialType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CredentialType v : CredentialType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CredentialType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CredentialType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CredentialType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CredentialEntitySpecificDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CredentialEntitySpecificDetails.java new file mode 100644 index 00000000000..b61f318b4f0 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/CredentialEntitySpecificDetails.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Credential Details
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialLevel", + defaultImpl = CredentialEntitySpecificDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = TargetCredentialEntitySpecificDetails.class, + name = "TARGET") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CredentialEntitySpecificDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CredentialEntitySpecificDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CredentialEntitySpecificDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CredentialEntitySpecificDetails)) { + return false; + } + + CredentialEntitySpecificDetails other = (CredentialEntitySpecificDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Credential Level. */ + public enum CredentialLevel implements com.oracle.bmc.http.internal.BmcEnum { + Target("TARGET"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CredentialLevel.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CredentialLevel v : CredentialLevel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CredentialLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CredentialLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CredentialLevel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Details.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Details.java new file mode 100644 index 00000000000..d66f029711b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Details.java @@ -0,0 +1,267 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The details of the task.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Details.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Details extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "executionDetails", + "platform", + "osType", + "scope", + "properties" + }) + public Details( + ExecutionDetails executionDetails, + String platform, + OsType osType, + TaskScope scope, + Properties properties) { + super(); + this.executionDetails = executionDetails; + this.platform = platform; + this.osType = osType; + this.scope = scope; + this.properties = properties; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("executionDetails") + private ExecutionDetails executionDetails; + + public Builder executionDetails(ExecutionDetails executionDetails) { + this.executionDetails = executionDetails; + this.__explicitlySet__.add("executionDetails"); + return this; + } + /** The platform of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private String platform; + + /** + * The platform of the runbook. + * + * @param platform the value to set + * @return this builder + */ + public Builder platform(String platform) { + this.platform = platform; + this.__explicitlySet__.add("platform"); + return this; + } + /** The OS for the task */ + @com.fasterxml.jackson.annotation.JsonProperty("osType") + private OsType osType; + + /** + * The OS for the task + * + * @param osType the value to set + * @return this builder + */ + public Builder osType(OsType osType) { + this.osType = osType; + this.__explicitlySet__.add("osType"); + return this; + } + /** The scope of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private TaskScope scope; + + /** + * The scope of the task + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(TaskScope scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private Properties properties; + + public Builder properties(Properties properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Details build() { + Details model = + new Details( + this.executionDetails, + this.platform, + this.osType, + this.scope, + this.properties); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Details model) { + if (model.wasPropertyExplicitlySet("executionDetails")) { + this.executionDetails(model.getExecutionDetails()); + } + if (model.wasPropertyExplicitlySet("platform")) { + this.platform(model.getPlatform()); + } + if (model.wasPropertyExplicitlySet("osType")) { + this.osType(model.getOsType()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("executionDetails") + private final ExecutionDetails executionDetails; + + public ExecutionDetails getExecutionDetails() { + return executionDetails; + } + + /** The platform of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private final String platform; + + /** + * The platform of the runbook. + * + * @return the value + */ + public String getPlatform() { + return platform; + } + + /** The OS for the task */ + @com.fasterxml.jackson.annotation.JsonProperty("osType") + private final OsType osType; + + /** + * The OS for the task + * + * @return the value + */ + public OsType getOsType() { + return osType; + } + + /** The scope of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final TaskScope scope; + + /** + * The scope of the task + * + * @return the value + */ + public TaskScope getScope() { + return scope; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final Properties properties; + + public Properties getProperties() { + return properties; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Details("); + sb.append("super=").append(super.toString()); + sb.append("executionDetails=").append(String.valueOf(this.executionDetails)); + sb.append(", platform=").append(String.valueOf(this.platform)); + sb.append(", osType=").append(String.valueOf(this.osType)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Details)) { + return false; + } + + Details other = (Details) o; + return java.util.Objects.equals(this.executionDetails, other.executionDetails) + && java.util.Objects.equals(this.platform, other.platform) + && java.util.Objects.equals(this.osType, other.osType) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.properties, other.properties) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.executionDetails == null ? 43 : this.executionDetails.hashCode()); + result = (result * PRIME) + (this.platform == null ? 43 : this.platform.hashCode()); + result = (result * PRIME) + (this.osType == null ? 43 : this.osType.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/DiscoveredTarget.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/DiscoveredTarget.java new file mode 100644 index 00000000000..8229b7b9c2a --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/DiscoveredTarget.java @@ -0,0 +1,286 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * A target that is discovered by the Software discovery process.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DiscoveredTarget.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DiscoveredTarget + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "targetId", + "targetName", + "product", + "resourceId", + "version" + }) + public DiscoveredTarget( + String targetId, String targetName, String product, String resourceId, String version) { + super(); + this.targetId = targetId; + this.targetName = targetName; + this.product = product; + this.resourceId = resourceId; + this.version = version; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * OCID of the Target. + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** Target Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetName") + private String targetName; + + /** + * Target Name. + * + * @param targetName the value to set + * @return this builder + */ + public Builder targetName(String targetName) { + this.targetName = targetName; + this.__explicitlySet__.add("targetName"); + return this; + } + /** Product that the target belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private String product; + + /** + * Product that the target belongs to. + * + * @param product the value to set + * @return this builder + */ + public Builder product(String product) { + this.product = product; + this.__explicitlySet__.add("product"); + return this; + } + /** Unique key that identify the resource that target belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * Unique key that identify the resource that target belongs to. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** Current version of Target */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * Current version of Target + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DiscoveredTarget build() { + DiscoveredTarget model = + new DiscoveredTarget( + this.targetId, + this.targetName, + this.product, + this.resourceId, + this.version); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiscoveredTarget model) { + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("targetName")) { + this.targetName(model.getTargetName()); + } + if (model.wasPropertyExplicitlySet("product")) { + this.product(model.getProduct()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * OCID of the Target. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** Target Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetName") + private final String targetName; + + /** + * Target Name. + * + * @return the value + */ + public String getTargetName() { + return targetName; + } + + /** Product that the target belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private final String product; + + /** + * Product that the target belongs to. + * + * @return the value + */ + public String getProduct() { + return product; + } + + /** Unique key that identify the resource that target belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * Unique key that identify the resource that target belongs to. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** Current version of Target */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * Current version of Target + * + * @return the value + */ + public String getVersion() { + return version; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DiscoveredTarget("); + sb.append("super=").append(super.toString()); + sb.append("targetId=").append(String.valueOf(this.targetId)); + sb.append(", targetName=").append(String.valueOf(this.targetName)); + sb.append(", product=").append(String.valueOf(this.product)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DiscoveredTarget)) { + return false; + } + + DiscoveredTarget other = (DiscoveredTarget) o; + return java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.targetName, other.targetName) + && java.util.Objects.equals(this.product, other.product) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.version, other.version) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.targetName == null ? 43 : this.targetName.hashCode()); + result = (result * PRIME) + (this.product == null ? 43 : this.product.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/EntityExecutionDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/EntityExecutionDetails.java new file mode 100644 index 00000000000..3f94b5cf592 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/EntityExecutionDetails.java @@ -0,0 +1,409 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Activity Resource and execution details including outcome.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EntityExecutionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EntityExecutionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "resourceId", + "resourceDisplayName", + "description", + "sequence", + "targets", + "status", + "timeStarted", + "timeEnded" + }) + public EntityExecutionDetails( + String resourceId, + String resourceDisplayName, + String description, + String sequence, + java.util.List targets, + JobStatus status, + java.util.Date timeStarted, + java.util.Date timeEnded) { + super(); + this.resourceId = resourceId; + this.resourceDisplayName = resourceDisplayName; + this.description = description; + this.sequence = sequence; + this.targets = targets; + this.status = status; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Resource Identifier associated with the Work Request */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * Resource Identifier associated with the Work Request + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** Resource Display Name */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceDisplayName") + private String resourceDisplayName; + + /** + * Resource Display Name + * + * @param resourceDisplayName the value to set + * @return this builder + */ + public Builder resourceDisplayName(String resourceDisplayName) { + this.resourceDisplayName = resourceDisplayName; + this.__explicitlySet__.add("resourceDisplayName"); + return this; + } + /** Description of the Work Request */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the Work Request + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The sequence of the Resource */ + @com.fasterxml.jackson.annotation.JsonProperty("sequence") + private String sequence; + + /** + * The sequence of the Resource + * + * @param sequence the value to set + * @return this builder + */ + public Builder sequence(String sequence) { + this.sequence = sequence; + this.__explicitlySet__.add("sequence"); + return this; + } + /** Targets associated. */ + @com.fasterxml.jackson.annotation.JsonProperty("targets") + private java.util.List targets; + + /** + * Targets associated. + * + * @param targets the value to set + * @return this builder + */ + public Builder targets(java.util.List targets) { + this.targets = targets; + this.__explicitlySet__.add("targets"); + return this; + } + /** Status of the Job at Resource Level */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private JobStatus status; + + /** + * Status of the Job at Resource Level + * + * @param status the value to set + * @return this builder + */ + public Builder status(JobStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The time the task started for the resource. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The time the task started for the resource. An RFC3339 formatted datetime string + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** The time the task ended for the resource. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The time the task ended for the resource. An RFC3339 formatted datetime string + * + * @param timeEnded the value to set + * @return this builder + */ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EntityExecutionDetails build() { + EntityExecutionDetails model = + new EntityExecutionDetails( + this.resourceId, + this.resourceDisplayName, + this.description, + this.sequence, + this.targets, + this.status, + this.timeStarted, + this.timeEnded); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EntityExecutionDetails model) { + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("resourceDisplayName")) { + this.resourceDisplayName(model.getResourceDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("sequence")) { + this.sequence(model.getSequence()); + } + if (model.wasPropertyExplicitlySet("targets")) { + this.targets(model.getTargets()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Resource Identifier associated with the Work Request */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * Resource Identifier associated with the Work Request + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** Resource Display Name */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceDisplayName") + private final String resourceDisplayName; + + /** + * Resource Display Name + * + * @return the value + */ + public String getResourceDisplayName() { + return resourceDisplayName; + } + + /** Description of the Work Request */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the Work Request + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The sequence of the Resource */ + @com.fasterxml.jackson.annotation.JsonProperty("sequence") + private final String sequence; + + /** + * The sequence of the Resource + * + * @return the value + */ + public String getSequence() { + return sequence; + } + + /** Targets associated. */ + @com.fasterxml.jackson.annotation.JsonProperty("targets") + private final java.util.List targets; + + /** + * Targets associated. + * + * @return the value + */ + public java.util.List getTargets() { + return targets; + } + + /** Status of the Job at Resource Level */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final JobStatus status; + + /** + * Status of the Job at Resource Level + * + * @return the value + */ + public JobStatus getStatus() { + return status; + } + + /** The time the task started for the resource. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The time the task started for the resource. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** The time the task ended for the resource. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The time the task ended for the resource. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EntityExecutionDetails("); + sb.append("super=").append(super.toString()); + sb.append("resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", resourceDisplayName=").append(String.valueOf(this.resourceDisplayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", sequence=").append(String.valueOf(this.sequence)); + sb.append(", targets=").append(String.valueOf(this.targets)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EntityExecutionDetails)) { + return false; + } + + EntityExecutionDetails other = (EntityExecutionDetails) o; + return java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.resourceDisplayName, other.resourceDisplayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.sequence, other.sequence) + && java.util.Objects.equals(this.targets, other.targets) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.resourceDisplayName == null + ? 43 + : this.resourceDisplayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.sequence == null ? 43 : this.sequence.hashCode()); + result = (result * PRIME) + (this.targets == null ? 43 : this.targets.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Execution.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Execution.java new file mode 100644 index 00000000000..41a9a3f6703 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Execution.java @@ -0,0 +1,555 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Task Execution associated with the Job.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Execution.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Execution extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "taskRecordId", + "stepName", + "processReferenceId", + "sequence", + "subjects", + "status", + "outcome", + "targetId", + "timeStarted", + "timeEnded", + "systemTags" + }) + public Execution( + String id, + String taskRecordId, + String stepName, + String processReferenceId, + String sequence, + java.util.List subjects, + JobStatus status, + Outcome outcome, + String targetId, + java.util.Date timeStarted, + java.util.Date timeEnded, + java.util.Map> systemTags) { + super(); + this.id = id; + this.taskRecordId = taskRecordId; + this.stepName = stepName; + this.processReferenceId = processReferenceId; + this.sequence = sequence; + this.subjects = subjects; + this.status = status; + this.outcome = outcome; + this.targetId = targetId; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique Id assocaited with the Task Execution */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique Id assocaited with the Task Execution + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of taskRecord */ + @com.fasterxml.jackson.annotation.JsonProperty("taskRecordId") + private String taskRecordId; + + /** + * The OCID of taskRecord + * + * @param taskRecordId the value to set + * @return this builder + */ + public Builder taskRecordId(String taskRecordId) { + this.taskRecordId = taskRecordId; + this.__explicitlySet__.add("taskRecordId"); + return this; + } + /** Name of the step */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + /** + * Name of the step + * + * @param stepName the value to set + * @return this builder + */ + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + return this; + } + /** Unique process reference identifier returned by the execution client */ + @com.fasterxml.jackson.annotation.JsonProperty("processReferenceId") + private String processReferenceId; + + /** + * Unique process reference identifier returned by the execution client + * + * @param processReferenceId the value to set + * @return this builder + */ + public Builder processReferenceId(String processReferenceId) { + this.processReferenceId = processReferenceId; + this.__explicitlySet__.add("processReferenceId"); + return this; + } + /** The sequence of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("sequence") + private String sequence; + + /** + * The sequence of the task + * + * @param sequence the value to set + * @return this builder + */ + public Builder sequence(String sequence) { + this.sequence = sequence; + this.__explicitlySet__.add("sequence"); + return this; + } + /** Subjects which are tied to the task */ + @com.fasterxml.jackson.annotation.JsonProperty("subjects") + private java.util.List subjects; + + /** + * Subjects which are tied to the task + * + * @param subjects the value to set + * @return this builder + */ + public Builder subjects(java.util.List subjects) { + this.subjects = subjects; + this.__explicitlySet__.add("subjects"); + return this; + } + /** Status of the Task */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private JobStatus status; + + /** + * Status of the Task + * + * @param status the value to set + * @return this builder + */ + public Builder status(JobStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("outcome") + private Outcome outcome; + + public Builder outcome(Outcome outcome) { + this.outcome = outcome; + this.__explicitlySet__.add("outcome"); + return this; + } + /** Target associated with the execution */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * Target associated with the execution + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The time the task started. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The time the task started. An RFC3339 formatted datetime string + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** The time the task ended. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The time the task ended. An RFC3339 formatted datetime string + * + * @param timeEnded the value to set + * @return this builder + */ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Execution build() { + Execution model = + new Execution( + this.id, + this.taskRecordId, + this.stepName, + this.processReferenceId, + this.sequence, + this.subjects, + this.status, + this.outcome, + this.targetId, + this.timeStarted, + this.timeEnded, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Execution model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("taskRecordId")) { + this.taskRecordId(model.getTaskRecordId()); + } + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("processReferenceId")) { + this.processReferenceId(model.getProcessReferenceId()); + } + if (model.wasPropertyExplicitlySet("sequence")) { + this.sequence(model.getSequence()); + } + if (model.wasPropertyExplicitlySet("subjects")) { + this.subjects(model.getSubjects()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("outcome")) { + this.outcome(model.getOutcome()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique Id assocaited with the Task Execution */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique Id assocaited with the Task Execution + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of taskRecord */ + @com.fasterxml.jackson.annotation.JsonProperty("taskRecordId") + private final String taskRecordId; + + /** + * The OCID of taskRecord + * + * @return the value + */ + public String getTaskRecordId() { + return taskRecordId; + } + + /** Name of the step */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private final String stepName; + + /** + * Name of the step + * + * @return the value + */ + public String getStepName() { + return stepName; + } + + /** Unique process reference identifier returned by the execution client */ + @com.fasterxml.jackson.annotation.JsonProperty("processReferenceId") + private final String processReferenceId; + + /** + * Unique process reference identifier returned by the execution client + * + * @return the value + */ + public String getProcessReferenceId() { + return processReferenceId; + } + + /** The sequence of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("sequence") + private final String sequence; + + /** + * The sequence of the task + * + * @return the value + */ + public String getSequence() { + return sequence; + } + + /** Subjects which are tied to the task */ + @com.fasterxml.jackson.annotation.JsonProperty("subjects") + private final java.util.List subjects; + + /** + * Subjects which are tied to the task + * + * @return the value + */ + public java.util.List getSubjects() { + return subjects; + } + + /** Status of the Task */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final JobStatus status; + + /** + * Status of the Task + * + * @return the value + */ + public JobStatus getStatus() { + return status; + } + + @com.fasterxml.jackson.annotation.JsonProperty("outcome") + private final Outcome outcome; + + public Outcome getOutcome() { + return outcome; + } + + /** Target associated with the execution */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * Target associated with the execution + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The time the task started. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The time the task started. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** The time the task ended. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The time the task ended. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Execution("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", taskRecordId=").append(String.valueOf(this.taskRecordId)); + sb.append(", stepName=").append(String.valueOf(this.stepName)); + sb.append(", processReferenceId=").append(String.valueOf(this.processReferenceId)); + sb.append(", sequence=").append(String.valueOf(this.sequence)); + sb.append(", subjects=").append(String.valueOf(this.subjects)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", outcome=").append(String.valueOf(this.outcome)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Execution)) { + return false; + } + + Execution other = (Execution) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.taskRecordId, other.taskRecordId) + && java.util.Objects.equals(this.stepName, other.stepName) + && java.util.Objects.equals(this.processReferenceId, other.processReferenceId) + && java.util.Objects.equals(this.sequence, other.sequence) + && java.util.Objects.equals(this.subjects, other.subjects) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.outcome, other.outcome) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.taskRecordId == null ? 43 : this.taskRecordId.hashCode()); + result = (result * PRIME) + (this.stepName == null ? 43 : this.stepName.hashCode()); + result = + (result * PRIME) + + (this.processReferenceId == null + ? 43 + : this.processReferenceId.hashCode()); + result = (result * PRIME) + (this.sequence == null ? 43 : this.sequence.hashCode()); + result = (result * PRIME) + (this.subjects == null ? 43 : this.subjects.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.outcome == null ? 43 : this.outcome.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionCollection.java new file mode 100644 index 00000000000..4b98804dac5 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecutionCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecutionCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ExecutionCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of Resource Level Executions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of Resource Level Executions. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecutionCollection build() { + ExecutionCollection model = new ExecutionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecutionCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of Resource Level Executions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of Resource Level Executions. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecutionCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecutionCollection)) { + return false; + } + + ExecutionCollection other = (ExecutionCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionDetails.java new file mode 100644 index 00000000000..b17e5e956b7 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionDetails.java @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Content Source Details
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "executionType", + defaultImpl = ExecutionDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ScriptBasedExecutionDetails.class, + name = "SCRIPT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ApiBasedExecutionDetails.class, + name = "API") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ExecutionDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ExecutionDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecutionDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecutionDetails)) { + return false; + } + + ExecutionDetails other = (ExecutionDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionSummary.java new file mode 100644 index 00000000000..cbad78d25b2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionSummary.java @@ -0,0 +1,492 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Task associated with the Job.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ExecutionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecutionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "taskRecordId", + "stepName", + "processReferenceId", + "sequence", + "status", + "targetId", + "timeStarted", + "timeEnded", + "systemTags" + }) + public ExecutionSummary( + String id, + String taskRecordId, + String stepName, + String processReferenceId, + String sequence, + JobStatus status, + String targetId, + java.util.Date timeStarted, + java.util.Date timeEnded, + java.util.Map> systemTags) { + super(); + this.id = id; + this.taskRecordId = taskRecordId; + this.stepName = stepName; + this.processReferenceId = processReferenceId; + this.sequence = sequence; + this.status = status; + this.targetId = targetId; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique Id assocaited with the Task Execution */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique Id assocaited with the Task Execution + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The OCID of taskRecord */ + @com.fasterxml.jackson.annotation.JsonProperty("taskRecordId") + private String taskRecordId; + + /** + * The OCID of taskRecord + * + * @param taskRecordId the value to set + * @return this builder + */ + public Builder taskRecordId(String taskRecordId) { + this.taskRecordId = taskRecordId; + this.__explicitlySet__.add("taskRecordId"); + return this; + } + /** Name of the Step */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + /** + * Name of the Step + * + * @param stepName the value to set + * @return this builder + */ + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + return this; + } + /** Unique process reference identifier returned by the execution client */ + @com.fasterxml.jackson.annotation.JsonProperty("processReferenceId") + private String processReferenceId; + + /** + * Unique process reference identifier returned by the execution client + * + * @param processReferenceId the value to set + * @return this builder + */ + public Builder processReferenceId(String processReferenceId) { + this.processReferenceId = processReferenceId; + this.__explicitlySet__.add("processReferenceId"); + return this; + } + /** The sequence of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("sequence") + private String sequence; + + /** + * The sequence of the task + * + * @param sequence the value to set + * @return this builder + */ + public Builder sequence(String sequence) { + this.sequence = sequence; + this.__explicitlySet__.add("sequence"); + return this; + } + /** Status of the Task */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private JobStatus status; + + /** + * Status of the Task + * + * @param status the value to set + * @return this builder + */ + public Builder status(JobStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Target associated with the execution */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * Target associated with the execution + * + * @param targetId the value to set + * @return this builder + */ + public Builder targetId(String targetId) { + this.targetId = targetId; + this.__explicitlySet__.add("targetId"); + return this; + } + /** The time the task started. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The time the task started. An RFC3339 formatted datetime string + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** The time the task ended. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The time the task ended. An RFC3339 formatted datetime string + * + * @param timeEnded the value to set + * @return this builder + */ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecutionSummary build() { + ExecutionSummary model = + new ExecutionSummary( + this.id, + this.taskRecordId, + this.stepName, + this.processReferenceId, + this.sequence, + this.status, + this.targetId, + this.timeStarted, + this.timeEnded, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecutionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("taskRecordId")) { + this.taskRecordId(model.getTaskRecordId()); + } + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("processReferenceId")) { + this.processReferenceId(model.getProcessReferenceId()); + } + if (model.wasPropertyExplicitlySet("sequence")) { + this.sequence(model.getSequence()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique Id assocaited with the Task Execution */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique Id assocaited with the Task Execution + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of taskRecord */ + @com.fasterxml.jackson.annotation.JsonProperty("taskRecordId") + private final String taskRecordId; + + /** + * The OCID of taskRecord + * + * @return the value + */ + public String getTaskRecordId() { + return taskRecordId; + } + + /** Name of the Step */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private final String stepName; + + /** + * Name of the Step + * + * @return the value + */ + public String getStepName() { + return stepName; + } + + /** Unique process reference identifier returned by the execution client */ + @com.fasterxml.jackson.annotation.JsonProperty("processReferenceId") + private final String processReferenceId; + + /** + * Unique process reference identifier returned by the execution client + * + * @return the value + */ + public String getProcessReferenceId() { + return processReferenceId; + } + + /** The sequence of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("sequence") + private final String sequence; + + /** + * The sequence of the task + * + * @return the value + */ + public String getSequence() { + return sequence; + } + + /** Status of the Task */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final JobStatus status; + + /** + * Status of the Task + * + * @return the value + */ + public JobStatus getStatus() { + return status; + } + + /** Target associated with the execution */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * Target associated with the execution + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The time the task started. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The time the task started. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** The time the task ended. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The time the task ended. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecutionSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", taskRecordId=").append(String.valueOf(this.taskRecordId)); + sb.append(", stepName=").append(String.valueOf(this.stepName)); + sb.append(", processReferenceId=").append(String.valueOf(this.processReferenceId)); + sb.append(", sequence=").append(String.valueOf(this.sequence)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecutionSummary)) { + return false; + } + + ExecutionSummary other = (ExecutionSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.taskRecordId, other.taskRecordId) + && java.util.Objects.equals(this.stepName, other.stepName) + && java.util.Objects.equals(this.processReferenceId, other.processReferenceId) + && java.util.Objects.equals(this.sequence, other.sequence) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.taskRecordId == null ? 43 : this.taskRecordId.hashCode()); + result = (result * PRIME) + (this.stepName == null ? 43 : this.stepName.hashCode()); + result = + (result * PRIME) + + (this.processReferenceId == null + ? 43 + : this.processReferenceId.hashCode()); + result = (result * PRIME) + (this.sequence == null ? 43 : this.sequence.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionWorkflowDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionWorkflowDetails.java new file mode 100644 index 00000000000..599b88534cb --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ExecutionWorkflowDetails.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Execution Workflow.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExecutionWorkflowDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExecutionWorkflowDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"workflow"}) + public ExecutionWorkflowDetails(java.util.List workflow) { + super(); + this.workflow = workflow; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Execution Workflow for the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("workflow") + private java.util.List workflow; + + /** + * Execution Workflow for the runbook. + * + * @param workflow the value to set + * @return this builder + */ + public Builder workflow(java.util.List workflow) { + this.workflow = workflow; + this.__explicitlySet__.add("workflow"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExecutionWorkflowDetails build() { + ExecutionWorkflowDetails model = new ExecutionWorkflowDetails(this.workflow); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExecutionWorkflowDetails model) { + if (model.wasPropertyExplicitlySet("workflow")) { + this.workflow(model.getWorkflow()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Execution Workflow for the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("workflow") + private final java.util.List workflow; + + /** + * Execution Workflow for the runbook. + * + * @return the value + */ + public java.util.List getWorkflow() { + return workflow; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExecutionWorkflowDetails("); + sb.append("super=").append(super.toString()); + sb.append("workflow=").append(String.valueOf(this.workflow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExecutionWorkflowDetails)) { + return false; + } + + ExecutionWorkflowDetails other = (ExecutionWorkflowDetails) o; + return java.util.Objects.equals(this.workflow, other.workflow) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.workflow == null ? 43 : this.workflow.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Fleet.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Fleet.java new file mode 100644 index 00000000000..dbcb998d11c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Fleet.java @@ -0,0 +1,1266 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Description of Fleet.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Fleet.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Fleet extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "resourceRegion", + "displayName", + "description", + "timeCreated", + "timeUpdated", + "fleetType", + "products", + "applicationType", + "environmentType", + "groupType", + "resourceSelectionType", + "ruleSelectionCriteria", + "notificationPreferences", + "resources", + "properties", + "credentials", + "isTargetAutoConfirm", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public Fleet( + String id, + String compartmentId, + String resourceRegion, + String displayName, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + FleetType fleetType, + java.util.List products, + String applicationType, + String environmentType, + GroupType groupType, + ResourceSelectionType resourceSelectionType, + SelectionCriteria ruleSelectionCriteria, + NotificationPreferences notificationPreferences, + java.util.List resources, + java.util.List properties, + java.util.List credentials, + Boolean isTargetAutoConfirm, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.displayName = displayName; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.fleetType = fleetType; + this.products = products; + this.applicationType = applicationType; + this.environmentType = environmentType; + this.groupType = groupType; + this.resourceSelectionType = resourceSelectionType; + this.ruleSelectionCriteria = ruleSelectionCriteria; + this.notificationPreferences = notificationPreferences; + this.resources = resources; + this.properties = properties; + this.credentials = credentials; + this.isTargetAutoConfirm = isTargetAutoConfirm; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Type of the Fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetType") + private FleetType fleetType; + + /** + * Type of the Fleet. + * + * @param fleetType the value to set + * @return this builder + */ + public Builder fleetType(FleetType fleetType) { + this.fleetType = fleetType; + this.__explicitlySet__.add("fleetType"); + return this; + } + /** Products associated with the Fleet */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * Products associated with the Fleet + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + /** Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private String applicationType; + + /** + * Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + * + * @param applicationType the value to set + * @return this builder + */ + public Builder applicationType(String applicationType) { + this.applicationType = applicationType; + this.__explicitlySet__.add("applicationType"); + return this; + } + /** Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private String environmentType; + + /** + * Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + * + * @param environmentType the value to set + * @return this builder + */ + public Builder environmentType(String environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + /** Group Type associated with Group Fleet.Applicable for GROUP fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("groupType") + private GroupType groupType; + + /** + * Group Type associated with Group Fleet.Applicable for GROUP fleet types. + * + * @param groupType the value to set + * @return this builder + */ + public Builder groupType(GroupType groupType) { + this.groupType = groupType; + this.__explicitlySet__.add("groupType"); + return this; + } + /** Type of resource selection in a fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceSelectionType") + private ResourceSelectionType resourceSelectionType; + + /** + * Type of resource selection in a fleet. + * + * @param resourceSelectionType the value to set + * @return this builder + */ + public Builder resourceSelectionType(ResourceSelectionType resourceSelectionType) { + this.resourceSelectionType = resourceSelectionType; + this.__explicitlySet__.add("resourceSelectionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ruleSelectionCriteria") + private SelectionCriteria ruleSelectionCriteria; + + public Builder ruleSelectionCriteria(SelectionCriteria ruleSelectionCriteria) { + this.ruleSelectionCriteria = ruleSelectionCriteria; + this.__explicitlySet__.add("ruleSelectionCriteria"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("notificationPreferences") + private NotificationPreferences notificationPreferences; + + public Builder notificationPreferences(NotificationPreferences notificationPreferences) { + this.notificationPreferences = notificationPreferences; + this.__explicitlySet__.add("notificationPreferences"); + return this; + } + /** Resources to be added during fleet creation when Resource selection type is Manual. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * Resources to be added during fleet creation when Resource selection type is Manual. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** Properties to be added during fleet creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.List properties; + + /** + * Properties to be added during fleet creation. + * + * @param properties the value to set + * @return this builder + */ + public Builder properties(java.util.List properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + /** Credentials to be added during fleet creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("credentials") + private java.util.List credentials; + + /** + * Credentials to be added during fleet creation. + * + * @param credentials the value to set + * @return this builder + */ + public Builder credentials(java.util.List credentials) { + this.credentials = credentials; + this.__explicitlySet__.add("credentials"); + return this; + } + /** A value which represents if auto confirming of the targets can be enabled */ + @com.fasterxml.jackson.annotation.JsonProperty("isTargetAutoConfirm") + private Boolean isTargetAutoConfirm; + + /** + * A value which represents if auto confirming of the targets can be enabled + * + * @param isTargetAutoConfirm the value to set + * @return this builder + */ + public Builder isTargetAutoConfirm(Boolean isTargetAutoConfirm) { + this.isTargetAutoConfirm = isTargetAutoConfirm; + this.__explicitlySet__.add("isTargetAutoConfirm"); + return this; + } + /** The lifecycle state of the Fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The lifecycle state of the Fleet. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Fleet build() { + Fleet model = + new Fleet( + this.id, + this.compartmentId, + this.resourceRegion, + this.displayName, + this.description, + this.timeCreated, + this.timeUpdated, + this.fleetType, + this.products, + this.applicationType, + this.environmentType, + this.groupType, + this.resourceSelectionType, + this.ruleSelectionCriteria, + this.notificationPreferences, + this.resources, + this.properties, + this.credentials, + this.isTargetAutoConfirm, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Fleet model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("fleetType")) { + this.fleetType(model.getFleetType()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + if (model.wasPropertyExplicitlySet("applicationType")) { + this.applicationType(model.getApplicationType()); + } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + if (model.wasPropertyExplicitlySet("groupType")) { + this.groupType(model.getGroupType()); + } + if (model.wasPropertyExplicitlySet("resourceSelectionType")) { + this.resourceSelectionType(model.getResourceSelectionType()); + } + if (model.wasPropertyExplicitlySet("ruleSelectionCriteria")) { + this.ruleSelectionCriteria(model.getRuleSelectionCriteria()); + } + if (model.wasPropertyExplicitlySet("notificationPreferences")) { + this.notificationPreferences(model.getNotificationPreferences()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + if (model.wasPropertyExplicitlySet("credentials")) { + this.credentials(model.getCredentials()); + } + if (model.wasPropertyExplicitlySet("isTargetAutoConfirm")) { + this.isTargetAutoConfirm(model.getIsTargetAutoConfirm()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Type of the Fleet. */ + public enum FleetType implements com.oracle.bmc.http.internal.BmcEnum { + Product("PRODUCT"), + Environment("ENVIRONMENT"), + Generic("GENERIC"), + Group("GROUP"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(FleetType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FleetType v : FleetType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + FleetType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FleetType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'FleetType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of the Fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetType") + private final FleetType fleetType; + + /** + * Type of the Fleet. + * + * @return the value + */ + public FleetType getFleetType() { + return fleetType; + } + + /** Products associated with the Fleet */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * Products associated with the Fleet + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + /** Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private final String applicationType; + + /** + * Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + * + * @return the value + */ + public String getApplicationType() { + return applicationType; + } + + /** Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final String environmentType; + + /** + * Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + * + * @return the value + */ + public String getEnvironmentType() { + return environmentType; + } + + /** Group Type associated with Group Fleet.Applicable for GROUP fleet types. */ + public enum GroupType implements com.oracle.bmc.http.internal.BmcEnum { + Environment("ENVIRONMENT"), + Product("PRODUCT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GroupType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (GroupType v : GroupType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + GroupType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static GroupType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'GroupType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Group Type associated with Group Fleet.Applicable for GROUP fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("groupType") + private final GroupType groupType; + + /** + * Group Type associated with Group Fleet.Applicable for GROUP fleet types. + * + * @return the value + */ + public GroupType getGroupType() { + return groupType; + } + + /** Type of resource selection in a fleet. */ + public enum ResourceSelectionType implements com.oracle.bmc.http.internal.BmcEnum { + Dynamic("DYNAMIC"), + Manual("MANUAL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ResourceSelectionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ResourceSelectionType v : ResourceSelectionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ResourceSelectionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ResourceSelectionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ResourceSelectionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of resource selection in a fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceSelectionType") + private final ResourceSelectionType resourceSelectionType; + + /** + * Type of resource selection in a fleet. + * + * @return the value + */ + public ResourceSelectionType getResourceSelectionType() { + return resourceSelectionType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ruleSelectionCriteria") + private final SelectionCriteria ruleSelectionCriteria; + + public SelectionCriteria getRuleSelectionCriteria() { + return ruleSelectionCriteria; + } + + @com.fasterxml.jackson.annotation.JsonProperty("notificationPreferences") + private final NotificationPreferences notificationPreferences; + + public NotificationPreferences getNotificationPreferences() { + return notificationPreferences; + } + + /** Resources to be added during fleet creation when Resource selection type is Manual. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * Resources to be added during fleet creation when Resource selection type is Manual. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** Properties to be added during fleet creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final java.util.List properties; + + /** + * Properties to be added during fleet creation. + * + * @return the value + */ + public java.util.List getProperties() { + return properties; + } + + /** Credentials to be added during fleet creation. */ + @com.fasterxml.jackson.annotation.JsonProperty("credentials") + private final java.util.List credentials; + + /** + * Credentials to be added during fleet creation. + * + * @return the value + */ + public java.util.List getCredentials() { + return credentials; + } + + /** A value which represents if auto confirming of the targets can be enabled */ + @com.fasterxml.jackson.annotation.JsonProperty("isTargetAutoConfirm") + private final Boolean isTargetAutoConfirm; + + /** + * A value which represents if auto confirming of the targets can be enabled + * + * @return the value + */ + public Boolean getIsTargetAutoConfirm() { + return isTargetAutoConfirm; + } + + /** The lifecycle state of the Fleet. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Inactive("INACTIVE"), + Creating("CREATING"), + Deleted("DELETED"), + Deleting("DELETING"), + Failed("FAILED"), + Updating("UPDATING"), + NeedsAttention("NEEDS_ATTENTION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The lifecycle state of the Fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The lifecycle state of the Fleet. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Fleet("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", fleetType=").append(String.valueOf(this.fleetType)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(", applicationType=").append(String.valueOf(this.applicationType)); + sb.append(", environmentType=").append(String.valueOf(this.environmentType)); + sb.append(", groupType=").append(String.valueOf(this.groupType)); + sb.append(", resourceSelectionType=").append(String.valueOf(this.resourceSelectionType)); + sb.append(", ruleSelectionCriteria=").append(String.valueOf(this.ruleSelectionCriteria)); + sb.append(", notificationPreferences=") + .append(String.valueOf(this.notificationPreferences)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", isTargetAutoConfirm=").append(String.valueOf(this.isTargetAutoConfirm)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Fleet)) { + return false; + } + + Fleet other = (Fleet) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.fleetType, other.fleetType) + && java.util.Objects.equals(this.products, other.products) + && java.util.Objects.equals(this.applicationType, other.applicationType) + && java.util.Objects.equals(this.environmentType, other.environmentType) + && java.util.Objects.equals(this.groupType, other.groupType) + && java.util.Objects.equals(this.resourceSelectionType, other.resourceSelectionType) + && java.util.Objects.equals(this.ruleSelectionCriteria, other.ruleSelectionCriteria) + && java.util.Objects.equals( + this.notificationPreferences, other.notificationPreferences) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.isTargetAutoConfirm, other.isTargetAutoConfirm) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.fleetType == null ? 43 : this.fleetType.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + result = + (result * PRIME) + + (this.applicationType == null ? 43 : this.applicationType.hashCode()); + result = + (result * PRIME) + + (this.environmentType == null ? 43 : this.environmentType.hashCode()); + result = (result * PRIME) + (this.groupType == null ? 43 : this.groupType.hashCode()); + result = + (result * PRIME) + + (this.resourceSelectionType == null + ? 43 + : this.resourceSelectionType.hashCode()); + result = + (result * PRIME) + + (this.ruleSelectionCriteria == null + ? 43 + : this.ruleSelectionCriteria.hashCode()); + result = + (result * PRIME) + + (this.notificationPreferences == null + ? 43 + : this.notificationPreferences.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.isTargetAutoConfirm == null + ? 43 + : this.isTargetAutoConfirm.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCollection.java new file mode 100644 index 00000000000..79a425160d6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a fleet search. Contains both FleetSummary items and other information, such as + * metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FleetCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public FleetCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of fleets. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of fleets. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetCollection build() { + FleetCollection model = new FleetCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of fleets. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of fleets. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetCollection)) { + return false; + } + + FleetCollection other = (FleetCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCredential.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCredential.java new file mode 100644 index 00000000000..724afa3b6ec --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCredential.java @@ -0,0 +1,569 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Description of FleetCredential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FleetCredential.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetCredential + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "timeCreated", + "timeUpdated", + "entitySpecifics", + "user", + "password", + "lifecycleState", + "lifecycleDetails", + "systemTags" + }) + public FleetCredential( + String id, + String displayName, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + CredentialEntitySpecificDetails entitySpecifics, + CredentialDetails user, + CredentialDetails password, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.entitySpecifics = entitySpecifics; + this.user = user; + this.password = password; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique id of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitySpecifics") + private CredentialEntitySpecificDetails entitySpecifics; + + public Builder entitySpecifics(CredentialEntitySpecificDetails entitySpecifics) { + this.entitySpecifics = entitySpecifics; + this.__explicitlySet__.add("entitySpecifics"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("user") + private CredentialDetails user; + + public Builder user(CredentialDetails user) { + this.user = user; + this.__explicitlySet__.add("user"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private CredentialDetails password; + + public Builder password(CredentialDetails password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + /** The current state of the FleetCredential. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the FleetCredential. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetCredential build() { + FleetCredential model = + new FleetCredential( + this.id, + this.displayName, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.entitySpecifics, + this.user, + this.password, + this.lifecycleState, + this.lifecycleDetails, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetCredential model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("entitySpecifics")) { + this.entitySpecifics(model.getEntitySpecifics()); + } + if (model.wasPropertyExplicitlySet("user")) { + this.user(model.getUser()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique id of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitySpecifics") + private final CredentialEntitySpecificDetails entitySpecifics; + + public CredentialEntitySpecificDetails getEntitySpecifics() { + return entitySpecifics; + } + + @com.fasterxml.jackson.annotation.JsonProperty("user") + private final CredentialDetails user; + + public CredentialDetails getUser() { + return user; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final CredentialDetails password; + + public CredentialDetails getPassword() { + return password; + } + + /** The current state of the FleetCredential. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the FleetCredential. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the FleetCredential. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetCredential("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", entitySpecifics=").append(String.valueOf(this.entitySpecifics)); + sb.append(", user=").append(String.valueOf(this.user)); + sb.append(", password=").append(String.valueOf(this.password)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetCredential)) { + return false; + } + + FleetCredential other = (FleetCredential) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.entitySpecifics, other.entitySpecifics) + && java.util.Objects.equals(this.user, other.user) + && java.util.Objects.equals(this.password, other.password) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.entitySpecifics == null ? 43 : this.entitySpecifics.hashCode()); + result = (result * PRIME) + (this.user == null ? 43 : this.user.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCredentialCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCredentialCollection.java new file mode 100644 index 00000000000..0feb07f6aae --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCredentialCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a fleetCredential search. Contains boh FleetCredentialSummary items and other + * information, such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FleetCredentialCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetCredentialCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public FleetCredentialCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of fleetCredentials. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of fleetCredentials. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetCredentialCollection build() { + FleetCredentialCollection model = new FleetCredentialCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetCredentialCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of fleetCredentials. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of fleetCredentials. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetCredentialCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetCredentialCollection)) { + return false; + } + + FleetCredentialCollection other = (FleetCredentialCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCredentialSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCredentialSummary.java new file mode 100644 index 00000000000..d4ec3b3d8e2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetCredentialSummary.java @@ -0,0 +1,523 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the FleetCredential.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FleetCredentialSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetCredentialSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "timeCreated", + "timeUpdated", + "entitySpecifics", + "user", + "password", + "lifecycleState", + "lifecycleDetails", + "systemTags" + }) + public FleetCredentialSummary( + String id, + String displayName, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + CredentialEntitySpecificDetails entitySpecifics, + CredentialDetails user, + CredentialDetails password, + FleetCredential.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.entitySpecifics = entitySpecifics; + this.user = user; + this.password = password; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique id of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitySpecifics") + private CredentialEntitySpecificDetails entitySpecifics; + + public Builder entitySpecifics(CredentialEntitySpecificDetails entitySpecifics) { + this.entitySpecifics = entitySpecifics; + this.__explicitlySet__.add("entitySpecifics"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("user") + private CredentialDetails user; + + public Builder user(CredentialDetails user) { + this.user = user; + this.__explicitlySet__.add("user"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private CredentialDetails password; + + public Builder password(CredentialDetails password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + /** The current state of the FleetCredential. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private FleetCredential.LifecycleState lifecycleState; + + /** + * The current state of the FleetCredential. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(FleetCredential.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetCredentialSummary build() { + FleetCredentialSummary model = + new FleetCredentialSummary( + this.id, + this.displayName, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.entitySpecifics, + this.user, + this.password, + this.lifecycleState, + this.lifecycleDetails, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetCredentialSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("entitySpecifics")) { + this.entitySpecifics(model.getEntitySpecifics()); + } + if (model.wasPropertyExplicitlySet("user")) { + this.user(model.getUser()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique id of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitySpecifics") + private final CredentialEntitySpecificDetails entitySpecifics; + + public CredentialEntitySpecificDetails getEntitySpecifics() { + return entitySpecifics; + } + + @com.fasterxml.jackson.annotation.JsonProperty("user") + private final CredentialDetails user; + + public CredentialDetails getUser() { + return user; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final CredentialDetails password; + + public CredentialDetails getPassword() { + return password; + } + + /** The current state of the FleetCredential. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final FleetCredential.LifecycleState lifecycleState; + + /** + * The current state of the FleetCredential. + * + * @return the value + */ + public FleetCredential.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetCredentialSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", entitySpecifics=").append(String.valueOf(this.entitySpecifics)); + sb.append(", user=").append(String.valueOf(this.user)); + sb.append(", password=").append(String.valueOf(this.password)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetCredentialSummary)) { + return false; + } + + FleetCredentialSummary other = (FleetCredentialSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.entitySpecifics, other.entitySpecifics) + && java.util.Objects.equals(this.user, other.user) + && java.util.Objects.equals(this.password, other.password) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.entitySpecifics == null ? 43 : this.entitySpecifics.hashCode()); + result = (result * PRIME) + (this.user == null ? 43 : this.user.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetProductCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetProductCollection.java new file mode 100644 index 00000000000..92313e2c63b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetProductCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a fleetProduct search. Contains boh FleetProductSummary items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FleetProductCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetProductCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public FleetProductCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of fleetProducts. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of fleetProducts. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetProductCollection build() { + FleetProductCollection model = new FleetProductCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetProductCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of fleetProducts. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of fleetProducts. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetProductCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetProductCollection)) { + return false; + } + + FleetProductCollection other = (FleetProductCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetProductSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetProductSummary.java new file mode 100644 index 00000000000..639892fe109 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetProductSummary.java @@ -0,0 +1,305 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the FleetProduct.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FleetProductSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetProductSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "targetCount", + "resource", + "systemTags" + }) + public FleetProductSummary( + String compartmentId, + String displayName, + Integer targetCount, + TargetResource resource, + java.util.Map> systemTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.targetCount = targetCount; + this.resource = resource; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Root Compartment Id. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Root Compartment Id. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Count of targets associated with the Product */ + @com.fasterxml.jackson.annotation.JsonProperty("targetCount") + private Integer targetCount; + + /** + * Count of targets associated with the Product + * + * @param targetCount the value to set + * @return this builder + */ + public Builder targetCount(Integer targetCount) { + this.targetCount = targetCount; + this.__explicitlySet__.add("targetCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resource") + private TargetResource resource; + + public Builder resource(TargetResource resource) { + this.resource = resource; + this.__explicitlySet__.add("resource"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetProductSummary build() { + FleetProductSummary model = + new FleetProductSummary( + this.compartmentId, + this.displayName, + this.targetCount, + this.resource, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetProductSummary model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("targetCount")) { + this.targetCount(model.getTargetCount()); + } + if (model.wasPropertyExplicitlySet("resource")) { + this.resource(model.getResource()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Root Compartment Id. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Root Compartment Id. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Count of targets associated with the Product */ + @com.fasterxml.jackson.annotation.JsonProperty("targetCount") + private final Integer targetCount; + + /** + * Count of targets associated with the Product + * + * @return the value + */ + public Integer getTargetCount() { + return targetCount; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resource") + private final TargetResource resource; + + public TargetResource getResource() { + return resource; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetProductSummary("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", targetCount=").append(String.valueOf(this.targetCount)); + sb.append(", resource=").append(String.valueOf(this.resource)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetProductSummary)) { + return false; + } + + FleetProductSummary other = (FleetProductSummary) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.targetCount, other.targetCount) + && java.util.Objects.equals(this.resource, other.resource) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.targetCount == null ? 43 : this.targetCount.hashCode()); + result = (result * PRIME) + (this.resource == null ? 43 : this.resource.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetProperty.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetProperty.java new file mode 100644 index 00000000000..2070c2b0965 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetProperty.java @@ -0,0 +1,634 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Property associated with a Fleet.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FleetProperty.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetProperty extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeCreated", + "timeUpdated", + "value", + "propertyId", + "selectionType", + "valueType", + "allowedValues", + "lifecycleState", + "systemTags" + }) + public FleetProperty( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String value, + String propertyId, + Selection selectionType, + ValueType valueType, + java.util.List allowedValues, + LifecycleState lifecycleState, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.value = value; + this.propertyId = propertyId; + this.selectionType = selectionType; + this.valueType = valueType; + this.allowedValues = allowedValues; + this.lifecycleState = lifecycleState; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique id of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Value of the Property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * Value of the Property + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + /** Property Id Ocid. */ + @com.fasterxml.jackson.annotation.JsonProperty("propertyId") + private String propertyId; + + /** + * Property Id Ocid. + * + * @param propertyId the value to set + * @return this builder + */ + public Builder propertyId(String propertyId) { + this.propertyId = propertyId; + this.__explicitlySet__.add("propertyId"); + return this; + } + /** Text selection of the category */ + @com.fasterxml.jackson.annotation.JsonProperty("selectionType") + private Selection selectionType; + + /** + * Text selection of the category + * + * @param selectionType the value to set + * @return this builder + */ + public Builder selectionType(Selection selectionType) { + this.selectionType = selectionType; + this.__explicitlySet__.add("selectionType"); + return this; + } + /** Format of the value */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private ValueType valueType; + + /** + * Format of the value + * + * @param valueType the value to set + * @return this builder + */ + public Builder valueType(ValueType valueType) { + this.valueType = valueType; + this.__explicitlySet__.add("valueType"); + return this; + } + /** Values of the category (must be a single value if selection = 'single choice') */ + @com.fasterxml.jackson.annotation.JsonProperty("allowedValues") + private java.util.List allowedValues; + + /** + * Values of the category (must be a single value if selection = 'single choice') + * + * @param allowedValues the value to set + * @return this builder + */ + public Builder allowedValues(java.util.List allowedValues) { + this.allowedValues = allowedValues; + this.__explicitlySet__.add("allowedValues"); + return this; + } + /** The current state of the FleetProperty. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the FleetProperty. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetProperty build() { + FleetProperty model = + new FleetProperty( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.value, + this.propertyId, + this.selectionType, + this.valueType, + this.allowedValues, + this.lifecycleState, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetProperty model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + if (model.wasPropertyExplicitlySet("propertyId")) { + this.propertyId(model.getPropertyId()); + } + if (model.wasPropertyExplicitlySet("selectionType")) { + this.selectionType(model.getSelectionType()); + } + if (model.wasPropertyExplicitlySet("valueType")) { + this.valueType(model.getValueType()); + } + if (model.wasPropertyExplicitlySet("allowedValues")) { + this.allowedValues(model.getAllowedValues()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique id of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Value of the Property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * Value of the Property + * + * @return the value + */ + public String getValue() { + return value; + } + + /** Property Id Ocid. */ + @com.fasterxml.jackson.annotation.JsonProperty("propertyId") + private final String propertyId; + + /** + * Property Id Ocid. + * + * @return the value + */ + public String getPropertyId() { + return propertyId; + } + + /** Text selection of the category */ + @com.fasterxml.jackson.annotation.JsonProperty("selectionType") + private final Selection selectionType; + + /** + * Text selection of the category + * + * @return the value + */ + public Selection getSelectionType() { + return selectionType; + } + + /** Format of the value */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private final ValueType valueType; + + /** + * Format of the value + * + * @return the value + */ + public ValueType getValueType() { + return valueType; + } + + /** Values of the category (must be a single value if selection = 'single choice') */ + @com.fasterxml.jackson.annotation.JsonProperty("allowedValues") + private final java.util.List allowedValues; + + /** + * Values of the category (must be a single value if selection = 'single choice') + * + * @return the value + */ + public java.util.List getAllowedValues() { + return allowedValues; + } + + /** The current state of the FleetProperty. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the FleetProperty. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the FleetProperty. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetProperty("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", propertyId=").append(String.valueOf(this.propertyId)); + sb.append(", selectionType=").append(String.valueOf(this.selectionType)); + sb.append(", valueType=").append(String.valueOf(this.valueType)); + sb.append(", allowedValues=").append(String.valueOf(this.allowedValues)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetProperty)) { + return false; + } + + FleetProperty other = (FleetProperty) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.value, other.value) + && java.util.Objects.equals(this.propertyId, other.propertyId) + && java.util.Objects.equals(this.selectionType, other.selectionType) + && java.util.Objects.equals(this.valueType, other.valueType) + && java.util.Objects.equals(this.allowedValues, other.allowedValues) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + (this.propertyId == null ? 43 : this.propertyId.hashCode()); + result = + (result * PRIME) + + (this.selectionType == null ? 43 : this.selectionType.hashCode()); + result = (result * PRIME) + (this.valueType == null ? 43 : this.valueType.hashCode()); + result = + (result * PRIME) + + (this.allowedValues == null ? 43 : this.allowedValues.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetPropertyCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetPropertyCollection.java new file mode 100644 index 00000000000..9329c6fd7de --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetPropertyCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a fleetProperty search. Contains boh FleetPropertySummary items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FleetPropertyCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetPropertyCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public FleetPropertyCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of fleetPropertys. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of fleetPropertys. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetPropertyCollection build() { + FleetPropertyCollection model = new FleetPropertyCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetPropertyCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of fleetPropertys. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of fleetPropertys. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetPropertyCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetPropertyCollection)) { + return false; + } + + FleetPropertyCollection other = (FleetPropertyCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetPropertySummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetPropertySummary.java new file mode 100644 index 00000000000..29f8925d6e6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetPropertySummary.java @@ -0,0 +1,509 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the FleetProperty.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FleetPropertySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetPropertySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "propertyId", + "displayName", + "timeCreated", + "timeUpdated", + "value", + "valueType", + "lifecycleState", + "systemTags" + }) + public FleetPropertySummary( + String id, + String compartmentId, + String propertyId, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String value, + ValueType valueType, + FleetProperty.LifecycleState lifecycleState, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.propertyId = propertyId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.value = value; + this.valueType = valueType; + this.lifecycleState = lifecycleState; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique id of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Property Id. */ + @com.fasterxml.jackson.annotation.JsonProperty("propertyId") + private String propertyId; + + /** + * Property Id. + * + * @param propertyId the value to set + * @return this builder + */ + public Builder propertyId(String propertyId) { + this.propertyId = propertyId; + this.__explicitlySet__.add("propertyId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Value of the Property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * Value of the Property + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + /** Type of the FleetProperty. */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private ValueType valueType; + + /** + * Type of the FleetProperty. + * + * @param valueType the value to set + * @return this builder + */ + public Builder valueType(ValueType valueType) { + this.valueType = valueType; + this.__explicitlySet__.add("valueType"); + return this; + } + /** The current state of the FleetProperty. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private FleetProperty.LifecycleState lifecycleState; + + /** + * The current state of the FleetProperty. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(FleetProperty.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetPropertySummary build() { + FleetPropertySummary model = + new FleetPropertySummary( + this.id, + this.compartmentId, + this.propertyId, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.value, + this.valueType, + this.lifecycleState, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetPropertySummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("propertyId")) { + this.propertyId(model.getPropertyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + if (model.wasPropertyExplicitlySet("valueType")) { + this.valueType(model.getValueType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique id of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Property Id. */ + @com.fasterxml.jackson.annotation.JsonProperty("propertyId") + private final String propertyId; + + /** + * Property Id. + * + * @return the value + */ + public String getPropertyId() { + return propertyId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Value of the Property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * Value of the Property + * + * @return the value + */ + public String getValue() { + return value; + } + + /** Type of the FleetProperty. */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private final ValueType valueType; + + /** + * Type of the FleetProperty. + * + * @return the value + */ + public ValueType getValueType() { + return valueType; + } + + /** The current state of the FleetProperty. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final FleetProperty.LifecycleState lifecycleState; + + /** + * The current state of the FleetProperty. + * + * @return the value + */ + public FleetProperty.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetPropertySummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", propertyId=").append(String.valueOf(this.propertyId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", valueType=").append(String.valueOf(this.valueType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetPropertySummary)) { + return false; + } + + FleetPropertySummary other = (FleetPropertySummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.propertyId, other.propertyId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.value, other.value) + && java.util.Objects.equals(this.valueType, other.valueType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.propertyId == null ? 43 : this.propertyId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + (this.valueType == null ? 43 : this.valueType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetResource.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetResource.java new file mode 100644 index 00000000000..b48fe471785 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetResource.java @@ -0,0 +1,977 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Resource added to a Fleet.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FleetResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetResource extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "tenancyId", + "resourceRegion", + "timeCreated", + "timeUpdated", + "compartmentId", + "displayName", + "resourceId", + "compartment", + "complianceState", + "tenancyName", + "resourceType", + "productCount", + "targetCount", + "product", + "applicationType", + "environmentType", + "lifecycleState", + "lifecycleDetails", + "systemTags" + }) + public FleetResource( + String id, + String tenancyId, + String resourceRegion, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String compartmentId, + String displayName, + String resourceId, + String compartment, + ComplianceState complianceState, + String tenancyName, + String resourceType, + Integer productCount, + Integer targetCount, + String product, + String applicationType, + String environmentType, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map> systemTags) { + super(); + this.id = id; + this.tenancyId = tenancyId; + this.resourceRegion = resourceRegion; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.resourceId = resourceId; + this.compartment = compartment; + this.complianceState = complianceState; + this.tenancyName = tenancyName; + this.resourceType = resourceType; + this.productCount = productCount; + this.targetCount = targetCount; + this.product = product; + this.applicationType = applicationType; + this.environmentType = environmentType; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique id of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @param tenancyId the value to set + * @return this builder + */ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The OCID of the resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** Resource Compartment */ + @com.fasterxml.jackson.annotation.JsonProperty("compartment") + private String compartment; + + /** + * Resource Compartment + * + * @param compartment the value to set + * @return this builder + */ + public Builder compartment(String compartment) { + this.compartment = compartment; + this.__explicitlySet__.add("compartment"); + return this; + } + /** Compliance State of the Resource */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private ComplianceState complianceState; + + /** + * Compliance State of the Resource + * + * @param complianceState the value to set + * @return this builder + */ + public Builder complianceState(ComplianceState complianceState) { + this.complianceState = complianceState; + this.__explicitlySet__.add("complianceState"); + return this; + } + /** Resource Tenancy Name */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyName") + private String tenancyName; + + /** + * Resource Tenancy Name + * + * @param tenancyName the value to set + * @return this builder + */ + public Builder tenancyName(String tenancyName) { + this.tenancyName = tenancyName; + this.__explicitlySet__.add("tenancyName"); + return this; + } + /** Type of the Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private String resourceType; + + /** + * Type of the Resource. + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(String resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** Count of products within the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("productCount") + private Integer productCount; + + /** + * Count of products within the resource. + * + * @param productCount the value to set + * @return this builder + */ + public Builder productCount(Integer productCount) { + this.productCount = productCount; + this.__explicitlySet__.add("productCount"); + return this; + } + /** Count of targets within the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetCount") + private Integer targetCount; + + /** + * Count of targets within the resource. + * + * @param targetCount the value to set + * @return this builder + */ + public Builder targetCount(Integer targetCount) { + this.targetCount = targetCount; + this.__explicitlySet__.add("targetCount"); + return this; + } + /** + * Product associated with the resource when resource type is fleet.Will only be returned + * for PRODUCT fleets that are part of a GROUP Fleet + */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private String product; + + /** + * Product associated with the resource when resource type is fleet.Will only be returned + * for PRODUCT fleets that are part of a GROUP Fleet + * + * @param product the value to set + * @return this builder + */ + public Builder product(String product) { + this.product = product; + this.__explicitlySet__.add("product"); + return this; + } + /** + * Application Type associated with the resource when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private String applicationType; + + /** + * Application Type associated with the resource when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + * @param applicationType the value to set + * @return this builder + */ + public Builder applicationType(String applicationType) { + this.applicationType = applicationType; + this.__explicitlySet__.add("applicationType"); + return this; + } + /** + * Environment Type associated with the Fleet when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private String environmentType; + + /** + * Environment Type associated with the Fleet when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + * @param environmentType the value to set + * @return this builder + */ + public Builder environmentType(String environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + /** The current state of the FleetResource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the FleetResource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetResource build() { + FleetResource model = + new FleetResource( + this.id, + this.tenancyId, + this.resourceRegion, + this.timeCreated, + this.timeUpdated, + this.compartmentId, + this.displayName, + this.resourceId, + this.compartment, + this.complianceState, + this.tenancyName, + this.resourceType, + this.productCount, + this.targetCount, + this.product, + this.applicationType, + this.environmentType, + this.lifecycleState, + this.lifecycleDetails, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetResource model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("compartment")) { + this.compartment(model.getCompartment()); + } + if (model.wasPropertyExplicitlySet("complianceState")) { + this.complianceState(model.getComplianceState()); + } + if (model.wasPropertyExplicitlySet("tenancyName")) { + this.tenancyName(model.getTenancyName()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("productCount")) { + this.productCount(model.getProductCount()); + } + if (model.wasPropertyExplicitlySet("targetCount")) { + this.targetCount(model.getTargetCount()); + } + if (model.wasPropertyExplicitlySet("product")) { + this.product(model.getProduct()); + } + if (model.wasPropertyExplicitlySet("applicationType")) { + this.applicationType(model.getApplicationType()); + } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique id of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @return the value + */ + public String getTenancyId() { + return tenancyId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** Resource Compartment */ + @com.fasterxml.jackson.annotation.JsonProperty("compartment") + private final String compartment; + + /** + * Resource Compartment + * + * @return the value + */ + public String getCompartment() { + return compartment; + } + + /** Compliance State of the Resource */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private final ComplianceState complianceState; + + /** + * Compliance State of the Resource + * + * @return the value + */ + public ComplianceState getComplianceState() { + return complianceState; + } + + /** Resource Tenancy Name */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyName") + private final String tenancyName; + + /** + * Resource Tenancy Name + * + * @return the value + */ + public String getTenancyName() { + return tenancyName; + } + + /** Type of the Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final String resourceType; + + /** + * Type of the Resource. + * + * @return the value + */ + public String getResourceType() { + return resourceType; + } + + /** Count of products within the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("productCount") + private final Integer productCount; + + /** + * Count of products within the resource. + * + * @return the value + */ + public Integer getProductCount() { + return productCount; + } + + /** Count of targets within the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetCount") + private final Integer targetCount; + + /** + * Count of targets within the resource. + * + * @return the value + */ + public Integer getTargetCount() { + return targetCount; + } + + /** + * Product associated with the resource when resource type is fleet.Will only be returned for + * PRODUCT fleets that are part of a GROUP Fleet + */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private final String product; + + /** + * Product associated with the resource when resource type is fleet.Will only be returned for + * PRODUCT fleets that are part of a GROUP Fleet + * + * @return the value + */ + public String getProduct() { + return product; + } + + /** + * Application Type associated with the resource when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private final String applicationType; + + /** + * Application Type associated with the resource when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + * @return the value + */ + public String getApplicationType() { + return applicationType; + } + + /** + * Environment Type associated with the Fleet when resource type is fleet.Will only be returned + * for ENVIRONMENT fleets that are part of a GROUP Fleet. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final String environmentType; + + /** + * Environment Type associated with the Fleet when resource type is fleet.Will only be returned + * for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + * @return the value + */ + public String getEnvironmentType() { + return environmentType; + } + + /** The current state of the FleetResource. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Deleted("DELETED"), + Failed("FAILED"), + NeedsAttention("NEEDS_ATTENTION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the FleetResource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the FleetResource. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetResource("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", compartment=").append(String.valueOf(this.compartment)); + sb.append(", complianceState=").append(String.valueOf(this.complianceState)); + sb.append(", tenancyName=").append(String.valueOf(this.tenancyName)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", productCount=").append(String.valueOf(this.productCount)); + sb.append(", targetCount=").append(String.valueOf(this.targetCount)); + sb.append(", product=").append(String.valueOf(this.product)); + sb.append(", applicationType=").append(String.valueOf(this.applicationType)); + sb.append(", environmentType=").append(String.valueOf(this.environmentType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetResource)) { + return false; + } + + FleetResource other = (FleetResource) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.compartment, other.compartment) + && java.util.Objects.equals(this.complianceState, other.complianceState) + && java.util.Objects.equals(this.tenancyName, other.tenancyName) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.productCount, other.productCount) + && java.util.Objects.equals(this.targetCount, other.targetCount) + && java.util.Objects.equals(this.product, other.product) + && java.util.Objects.equals(this.applicationType, other.applicationType) + && java.util.Objects.equals(this.environmentType, other.environmentType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.compartment == null ? 43 : this.compartment.hashCode()); + result = + (result * PRIME) + + (this.complianceState == null ? 43 : this.complianceState.hashCode()); + result = (result * PRIME) + (this.tenancyName == null ? 43 : this.tenancyName.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = (result * PRIME) + (this.productCount == null ? 43 : this.productCount.hashCode()); + result = (result * PRIME) + (this.targetCount == null ? 43 : this.targetCount.hashCode()); + result = (result * PRIME) + (this.product == null ? 43 : this.product.hashCode()); + result = + (result * PRIME) + + (this.applicationType == null ? 43 : this.applicationType.hashCode()); + result = + (result * PRIME) + + (this.environmentType == null ? 43 : this.environmentType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetResourceCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetResourceCollection.java new file mode 100644 index 00000000000..165cfdea617 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetResourceCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a fleetResource search. Contains boh FleetResourceSummary items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FleetResourceCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetResourceCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public FleetResourceCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of fleetResources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of fleetResources. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetResourceCollection build() { + FleetResourceCollection model = new FleetResourceCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetResourceCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of fleetResources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of fleetResources. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetResourceCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetResourceCollection)) { + return false; + } + + FleetResourceCollection other = (FleetResourceCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetResourceSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetResourceSummary.java new file mode 100644 index 00000000000..fa597057e18 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetResourceSummary.java @@ -0,0 +1,931 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the FleetResource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FleetResourceSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetResourceSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "tenancyId", + "resourceRegion", + "timeCreated", + "timeUpdated", + "compartmentId", + "displayName", + "resourceId", + "complianceState", + "tenancyName", + "compartment", + "resourceType", + "productCount", + "targetCount", + "product", + "applicationType", + "environmentType", + "lifecycleState", + "lifecycleDetails", + "systemTags" + }) + public FleetResourceSummary( + String id, + String tenancyId, + String resourceRegion, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String compartmentId, + String displayName, + String resourceId, + ComplianceState complianceState, + String tenancyName, + String compartment, + String resourceType, + Integer productCount, + Integer targetCount, + String product, + String applicationType, + String environmentType, + FleetResource.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map> systemTags) { + super(); + this.id = id; + this.tenancyId = tenancyId; + this.resourceRegion = resourceRegion; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.resourceId = resourceId; + this.complianceState = complianceState; + this.tenancyName = tenancyName; + this.compartment = compartment; + this.resourceType = resourceType; + this.productCount = productCount; + this.targetCount = targetCount; + this.product = product; + this.applicationType = applicationType; + this.environmentType = environmentType; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique id of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @param tenancyId the value to set + * @return this builder + */ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The OCID of the resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** Compliance State of the Resource */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private ComplianceState complianceState; + + /** + * Compliance State of the Resource + * + * @param complianceState the value to set + * @return this builder + */ + public Builder complianceState(ComplianceState complianceState) { + this.complianceState = complianceState; + this.__explicitlySet__.add("complianceState"); + return this; + } + /** Resource Tenancy Name */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyName") + private String tenancyName; + + /** + * Resource Tenancy Name + * + * @param tenancyName the value to set + * @return this builder + */ + public Builder tenancyName(String tenancyName) { + this.tenancyName = tenancyName; + this.__explicitlySet__.add("tenancyName"); + return this; + } + /** Resource Compartment */ + @com.fasterxml.jackson.annotation.JsonProperty("compartment") + private String compartment; + + /** + * Resource Compartment + * + * @param compartment the value to set + * @return this builder + */ + public Builder compartment(String compartment) { + this.compartment = compartment; + this.__explicitlySet__.add("compartment"); + return this; + } + /** Type of the Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private String resourceType; + + /** + * Type of the Resource. + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(String resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** Count of products within the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("productCount") + private Integer productCount; + + /** + * Count of products within the resource. + * + * @param productCount the value to set + * @return this builder + */ + public Builder productCount(Integer productCount) { + this.productCount = productCount; + this.__explicitlySet__.add("productCount"); + return this; + } + /** Count of targets within the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetCount") + private Integer targetCount; + + /** + * Count of targets within the resource. + * + * @param targetCount the value to set + * @return this builder + */ + public Builder targetCount(Integer targetCount) { + this.targetCount = targetCount; + this.__explicitlySet__.add("targetCount"); + return this; + } + /** + * Product associated with the resource when resource type is fleet.Will only be returned + * for PRODUCT fleets that are part of a GROUP Fleet + */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private String product; + + /** + * Product associated with the resource when resource type is fleet.Will only be returned + * for PRODUCT fleets that are part of a GROUP Fleet + * + * @param product the value to set + * @return this builder + */ + public Builder product(String product) { + this.product = product; + this.__explicitlySet__.add("product"); + return this; + } + /** + * Application Type associated with the resource when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private String applicationType; + + /** + * Application Type associated with the resource when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + * @param applicationType the value to set + * @return this builder + */ + public Builder applicationType(String applicationType) { + this.applicationType = applicationType; + this.__explicitlySet__.add("applicationType"); + return this; + } + /** + * Environment Type associated with the Fleet when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private String environmentType; + + /** + * Environment Type associated with the Fleet when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + * @param environmentType the value to set + * @return this builder + */ + public Builder environmentType(String environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + /** The current state of the FleetResource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private FleetResource.LifecycleState lifecycleState; + + /** + * The current state of the FleetResource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(FleetResource.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetResourceSummary build() { + FleetResourceSummary model = + new FleetResourceSummary( + this.id, + this.tenancyId, + this.resourceRegion, + this.timeCreated, + this.timeUpdated, + this.compartmentId, + this.displayName, + this.resourceId, + this.complianceState, + this.tenancyName, + this.compartment, + this.resourceType, + this.productCount, + this.targetCount, + this.product, + this.applicationType, + this.environmentType, + this.lifecycleState, + this.lifecycleDetails, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetResourceSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("complianceState")) { + this.complianceState(model.getComplianceState()); + } + if (model.wasPropertyExplicitlySet("tenancyName")) { + this.tenancyName(model.getTenancyName()); + } + if (model.wasPropertyExplicitlySet("compartment")) { + this.compartment(model.getCompartment()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("productCount")) { + this.productCount(model.getProductCount()); + } + if (model.wasPropertyExplicitlySet("targetCount")) { + this.targetCount(model.getTargetCount()); + } + if (model.wasPropertyExplicitlySet("product")) { + this.product(model.getProduct()); + } + if (model.wasPropertyExplicitlySet("applicationType")) { + this.applicationType(model.getApplicationType()); + } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique id of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @return the value + */ + public String getTenancyId() { + return tenancyId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** Compliance State of the Resource */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private final ComplianceState complianceState; + + /** + * Compliance State of the Resource + * + * @return the value + */ + public ComplianceState getComplianceState() { + return complianceState; + } + + /** Resource Tenancy Name */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyName") + private final String tenancyName; + + /** + * Resource Tenancy Name + * + * @return the value + */ + public String getTenancyName() { + return tenancyName; + } + + /** Resource Compartment */ + @com.fasterxml.jackson.annotation.JsonProperty("compartment") + private final String compartment; + + /** + * Resource Compartment + * + * @return the value + */ + public String getCompartment() { + return compartment; + } + + /** Type of the Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final String resourceType; + + /** + * Type of the Resource. + * + * @return the value + */ + public String getResourceType() { + return resourceType; + } + + /** Count of products within the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("productCount") + private final Integer productCount; + + /** + * Count of products within the resource. + * + * @return the value + */ + public Integer getProductCount() { + return productCount; + } + + /** Count of targets within the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetCount") + private final Integer targetCount; + + /** + * Count of targets within the resource. + * + * @return the value + */ + public Integer getTargetCount() { + return targetCount; + } + + /** + * Product associated with the resource when resource type is fleet.Will only be returned for + * PRODUCT fleets that are part of a GROUP Fleet + */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private final String product; + + /** + * Product associated with the resource when resource type is fleet.Will only be returned for + * PRODUCT fleets that are part of a GROUP Fleet + * + * @return the value + */ + public String getProduct() { + return product; + } + + /** + * Application Type associated with the resource when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationType") + private final String applicationType; + + /** + * Application Type associated with the resource when resource type is fleet.Will only be + * returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + * @return the value + */ + public String getApplicationType() { + return applicationType; + } + + /** + * Environment Type associated with the Fleet when resource type is fleet.Will only be returned + * for ENVIRONMENT fleets that are part of a GROUP Fleet. + */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final String environmentType; + + /** + * Environment Type associated with the Fleet when resource type is fleet.Will only be returned + * for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + * @return the value + */ + public String getEnvironmentType() { + return environmentType; + } + + /** The current state of the FleetResource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final FleetResource.LifecycleState lifecycleState; + + /** + * The current state of the FleetResource. + * + * @return the value + */ + public FleetResource.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetResourceSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", complianceState=").append(String.valueOf(this.complianceState)); + sb.append(", tenancyName=").append(String.valueOf(this.tenancyName)); + sb.append(", compartment=").append(String.valueOf(this.compartment)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", productCount=").append(String.valueOf(this.productCount)); + sb.append(", targetCount=").append(String.valueOf(this.targetCount)); + sb.append(", product=").append(String.valueOf(this.product)); + sb.append(", applicationType=").append(String.valueOf(this.applicationType)); + sb.append(", environmentType=").append(String.valueOf(this.environmentType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetResourceSummary)) { + return false; + } + + FleetResourceSummary other = (FleetResourceSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.complianceState, other.complianceState) + && java.util.Objects.equals(this.tenancyName, other.tenancyName) + && java.util.Objects.equals(this.compartment, other.compartment) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.productCount, other.productCount) + && java.util.Objects.equals(this.targetCount, other.targetCount) + && java.util.Objects.equals(this.product, other.product) + && java.util.Objects.equals(this.applicationType, other.applicationType) + && java.util.Objects.equals(this.environmentType, other.environmentType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.complianceState == null ? 43 : this.complianceState.hashCode()); + result = (result * PRIME) + (this.tenancyName == null ? 43 : this.tenancyName.hashCode()); + result = (result * PRIME) + (this.compartment == null ? 43 : this.compartment.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = (result * PRIME) + (this.productCount == null ? 43 : this.productCount.hashCode()); + result = (result * PRIME) + (this.targetCount == null ? 43 : this.targetCount.hashCode()); + result = (result * PRIME) + (this.product == null ? 43 : this.product.hashCode()); + result = + (result * PRIME) + + (this.applicationType == null ? 43 : this.applicationType.hashCode()); + result = + (result * PRIME) + + (this.environmentType == null ? 43 : this.environmentType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetSummary.java new file mode 100644 index 00000000000..bd17dc92e5d --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetSummary.java @@ -0,0 +1,652 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the Fleet.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FleetSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "resourceRegion", + "displayName", + "timeCreated", + "timeUpdated", + "fleetType", + "environmentType", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public FleetSummary( + String id, + String compartmentId, + String resourceRegion, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Fleet.FleetType fleetType, + String environmentType, + Fleet.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.fleetType = fleetType; + this.environmentType = environmentType; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Type of the Fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetType") + private Fleet.FleetType fleetType; + + /** + * Type of the Fleet. + * + * @param fleetType the value to set + * @return this builder + */ + public Builder fleetType(Fleet.FleetType fleetType) { + this.fleetType = fleetType; + this.__explicitlySet__.add("fleetType"); + return this; + } + /** Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private String environmentType; + + /** + * Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + * + * @param environmentType the value to set + * @return this builder + */ + public Builder environmentType(String environmentType) { + this.environmentType = environmentType; + this.__explicitlySet__.add("environmentType"); + return this; + } + /** The current state of the Fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Fleet.LifecycleState lifecycleState; + + /** + * The current state of the Fleet. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Fleet.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetSummary build() { + FleetSummary model = + new FleetSummary( + this.id, + this.compartmentId, + this.resourceRegion, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.fleetType, + this.environmentType, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("fleetType")) { + this.fleetType(model.getFleetType()); + } + if (model.wasPropertyExplicitlySet("environmentType")) { + this.environmentType(model.getEnvironmentType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Type of the Fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("fleetType") + private final Fleet.FleetType fleetType; + + /** + * Type of the Fleet. + * + * @return the value + */ + public Fleet.FleetType getFleetType() { + return fleetType; + } + + /** Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. */ + @com.fasterxml.jackson.annotation.JsonProperty("environmentType") + private final String environmentType; + + /** + * Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + * + * @return the value + */ + public String getEnvironmentType() { + return environmentType; + } + + /** The current state of the Fleet. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Fleet.LifecycleState lifecycleState; + + /** + * The current state of the Fleet. + * + * @return the value + */ + public Fleet.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", fleetType=").append(String.valueOf(this.fleetType)); + sb.append(", environmentType=").append(String.valueOf(this.environmentType)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetSummary)) { + return false; + } + + FleetSummary other = (FleetSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.fleetType, other.fleetType) + && java.util.Objects.equals(this.environmentType, other.environmentType) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.fleetType == null ? 43 : this.fleetType.hashCode()); + result = + (result * PRIME) + + (this.environmentType == null ? 43 : this.environmentType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetTarget.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetTarget.java new file mode 100644 index 00000000000..2d5803af2e6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetTarget.java @@ -0,0 +1,531 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Description of FleetTarget.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FleetTarget.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetTarget extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeCreated", + "version", + "product", + "resource", + "complianceState", + "lifecycleState", + "systemTags" + }) + public FleetTarget( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + String version, + String product, + TargetResource resource, + ComplianceState complianceState, + LifecycleState lifecycleState, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.version = version; + this.product = product; + this.resource = resource; + this.complianceState = complianceState; + this.lifecycleState = lifecycleState; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** Current version of Target */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * Current version of Target + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** Product to which the target belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private String product; + + /** + * Product to which the target belongs to. + * + * @param product the value to set + * @return this builder + */ + public Builder product(String product) { + this.product = product; + this.__explicitlySet__.add("product"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resource") + private TargetResource resource; + + public Builder resource(TargetResource resource) { + this.resource = resource; + this.__explicitlySet__.add("resource"); + return this; + } + /** Last known compliance state of Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private ComplianceState complianceState; + + /** + * Last known compliance state of Target. + * + * @param complianceState the value to set + * @return this builder + */ + public Builder complianceState(ComplianceState complianceState) { + this.complianceState = complianceState; + this.__explicitlySet__.add("complianceState"); + return this; + } + /** The current state of the FleetTarget. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the FleetTarget. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetTarget build() { + FleetTarget model = + new FleetTarget( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.version, + this.product, + this.resource, + this.complianceState, + this.lifecycleState, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetTarget model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("product")) { + this.product(model.getProduct()); + } + if (model.wasPropertyExplicitlySet("resource")) { + this.resource(model.getResource()); + } + if (model.wasPropertyExplicitlySet("complianceState")) { + this.complianceState(model.getComplianceState()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Current version of Target */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * Current version of Target + * + * @return the value + */ + public String getVersion() { + return version; + } + + /** Product to which the target belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private final String product; + + /** + * Product to which the target belongs to. + * + * @return the value + */ + public String getProduct() { + return product; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resource") + private final TargetResource resource; + + public TargetResource getResource() { + return resource; + } + + /** Last known compliance state of Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private final ComplianceState complianceState; + + /** + * Last known compliance state of Target. + * + * @return the value + */ + public ComplianceState getComplianceState() { + return complianceState; + } + + /** The current state of the FleetTarget. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Deleted("DELETED"), + Failed("FAILED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + map.put(v.getValue(), v); + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LifecycleState: " + key); + } + }; + /** The current state of the FleetTarget. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the FleetTarget. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetTarget("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", product=").append(String.valueOf(this.product)); + sb.append(", resource=").append(String.valueOf(this.resource)); + sb.append(", complianceState=").append(String.valueOf(this.complianceState)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetTarget)) { + return false; + } + + FleetTarget other = (FleetTarget) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.product, other.product) + && java.util.Objects.equals(this.resource, other.resource) + && java.util.Objects.equals(this.complianceState, other.complianceState) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.product == null ? 43 : this.product.hashCode()); + result = (result * PRIME) + (this.resource == null ? 43 : this.resource.hashCode()); + result = + (result * PRIME) + + (this.complianceState == null ? 43 : this.complianceState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetTargetCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetTargetCollection.java new file mode 100644 index 00000000000..004882d99c5 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetTargetCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a fleetTarget search. Contains both FleetTargetSummary items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FleetTargetCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetTargetCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public FleetTargetCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of fleetTargets. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of fleetTargets. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetTargetCollection build() { + FleetTargetCollection model = new FleetTargetCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetTargetCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of fleetTargets. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of fleetTargets. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetTargetCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetTargetCollection)) { + return false; + } + + FleetTargetCollection other = (FleetTargetCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetTargetSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetTargetSummary.java new file mode 100644 index 00000000000..6e86ebd528b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/FleetTargetSummary.java @@ -0,0 +1,461 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the FleetTarget.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FleetTargetSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class FleetTargetSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "version", + "product", + "resource", + "complianceState", + "lifecycleState", + "systemTags" + }) + public FleetTargetSummary( + String id, + String compartmentId, + String displayName, + String version, + String product, + TargetResource resource, + ComplianceState complianceState, + FleetTarget.LifecycleState lifecycleState, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.version = version; + this.product = product; + this.resource = resource; + this.complianceState = complianceState; + this.lifecycleState = lifecycleState; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Current version of Target */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * Current version of Target + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** Product to which the target belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private String product; + + /** + * Product to which the target belongs to. + * + * @param product the value to set + * @return this builder + */ + public Builder product(String product) { + this.product = product; + this.__explicitlySet__.add("product"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resource") + private TargetResource resource; + + public Builder resource(TargetResource resource) { + this.resource = resource; + this.__explicitlySet__.add("resource"); + return this; + } + /** Last known compliance state of Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private ComplianceState complianceState; + + /** + * Last known compliance state of Target. + * + * @param complianceState the value to set + * @return this builder + */ + public Builder complianceState(ComplianceState complianceState) { + this.complianceState = complianceState; + this.__explicitlySet__.add("complianceState"); + return this; + } + /** The current state of the FleetTarget. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private FleetTarget.LifecycleState lifecycleState; + + /** + * The current state of the FleetTarget. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(FleetTarget.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FleetTargetSummary build() { + FleetTargetSummary model = + new FleetTargetSummary( + this.id, + this.compartmentId, + this.displayName, + this.version, + this.product, + this.resource, + this.complianceState, + this.lifecycleState, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FleetTargetSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("product")) { + this.product(model.getProduct()); + } + if (model.wasPropertyExplicitlySet("resource")) { + this.resource(model.getResource()); + } + if (model.wasPropertyExplicitlySet("complianceState")) { + this.complianceState(model.getComplianceState()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Current version of Target */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * Current version of Target + * + * @return the value + */ + public String getVersion() { + return version; + } + + /** Product to which the target belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("product") + private final String product; + + /** + * Product to which the target belongs to. + * + * @return the value + */ + public String getProduct() { + return product; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resource") + private final TargetResource resource; + + public TargetResource getResource() { + return resource; + } + + /** Last known compliance state of Target. */ + @com.fasterxml.jackson.annotation.JsonProperty("complianceState") + private final ComplianceState complianceState; + + /** + * Last known compliance state of Target. + * + * @return the value + */ + public ComplianceState getComplianceState() { + return complianceState; + } + + /** The current state of the FleetTarget. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final FleetTarget.LifecycleState lifecycleState; + + /** + * The current state of the FleetTarget. + * + * @return the value + */ + public FleetTarget.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FleetTargetSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", product=").append(String.valueOf(this.product)); + sb.append(", resource=").append(String.valueOf(this.resource)); + sb.append(", complianceState=").append(String.valueOf(this.complianceState)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FleetTargetSummary)) { + return false; + } + + FleetTargetSummary other = (FleetTargetSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.product, other.product) + && java.util.Objects.equals(this.resource, other.resource) + && java.util.Objects.equals(this.complianceState, other.complianceState) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.product == null ? 43 : this.product.hashCode()); + result = (result * PRIME) + (this.resource == null ? 43 : this.resource.hashCode()); + result = + (result * PRIME) + + (this.complianceState == null ? 43 : this.complianceState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/GenerateComplianceReportDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/GenerateComplianceReportDetails.java new file mode 100644 index 00000000000..b8aea78b2d6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/GenerateComplianceReportDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Request to generate compliance report fort the fleet
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateComplianceReportDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GenerateComplianceReportDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"areDetailsRequired"}) + public GenerateComplianceReportDetails(String areDetailsRequired) { + super(); + this.areDetailsRequired = areDetailsRequired; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Are compliance details required at target level also */ + @com.fasterxml.jackson.annotation.JsonProperty("areDetailsRequired") + private String areDetailsRequired; + + /** + * Are compliance details required at target level also + * + * @param areDetailsRequired the value to set + * @return this builder + */ + public Builder areDetailsRequired(String areDetailsRequired) { + this.areDetailsRequired = areDetailsRequired; + this.__explicitlySet__.add("areDetailsRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GenerateComplianceReportDetails build() { + GenerateComplianceReportDetails model = + new GenerateComplianceReportDetails(this.areDetailsRequired); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateComplianceReportDetails model) { + if (model.wasPropertyExplicitlySet("areDetailsRequired")) { + this.areDetailsRequired(model.getAreDetailsRequired()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Are compliance details required at target level also */ + @com.fasterxml.jackson.annotation.JsonProperty("areDetailsRequired") + private final String areDetailsRequired; + + /** + * Are compliance details required at target level also + * + * @return the value + */ + public String getAreDetailsRequired() { + return areDetailsRequired; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GenerateComplianceReportDetails("); + sb.append("super=").append(super.toString()); + sb.append("areDetailsRequired=").append(String.valueOf(this.areDetailsRequired)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateComplianceReportDetails)) { + return false; + } + + GenerateComplianceReportDetails other = (GenerateComplianceReportDetails) o; + return java.util.Objects.equals(this.areDetailsRequired, other.areDetailsRequired) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.areDetailsRequired == null + ? 43 + : this.areDetailsRequired.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Group.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Group.java new file mode 100644 index 00000000000..5891fc2d39f --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Group.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The group of the runbook
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Group.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Group extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "name", "properties"}) + public Group(Type type, String name, ComponentProperties properties) { + super(); + this.type = type; + this.name = name; + this.properties = properties; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The type of the group */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * The type of the group + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The name of the group */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the group + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private ComponentProperties properties; + + public Builder properties(ComponentProperties properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Group build() { + Group model = new Group(this.type, this.name, this.properties); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Group model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The type of the group */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + ParallelTaskGroup("PARALLEL_TASK_GROUP"), + ParallelResourceGroup("PARALLEL_RESOURCE_GROUP"), + RollingResourceGroup("ROLLING_RESOURCE_GROUP"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** The type of the group */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * The type of the group + * + * @return the value + */ + public Type getType() { + return type; + } + + /** The name of the group */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the group + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final ComponentProperties properties; + + public ComponentProperties getProperties() { + return properties; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Group("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Group)) { + return false; + } + + Group other = (Group) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.properties, other.properties) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InputArgument.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InputArgument.java new file mode 100644 index 00000000000..a0b00d1374c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InputArgument.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The details of the Input argument.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = InputArgument.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OutputVariableInputArgument.class, + name = "OUTPUT_VARIABLE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = StringInputArgument.class, + name = "STRING") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class InputArgument extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "description"}) + protected InputArgument(String name, String description) { + super(); + this.name = name; + this.description = description; + } + + /** The name of the argument */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the argument + * + * @return the value + */ + public String getName() { + return name; + } + + /** The description of the argument. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the argument. + * + * @return the value + */ + public String getDescription() { + return description; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InputArgument("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InputArgument)) { + return false; + } + + InputArgument other = (InputArgument) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.description, other.description) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Input argument Type. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + String("STRING"), + OutputVariable("OUTPUT_VARIABLE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InputParameter.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InputParameter.java new file mode 100644 index 00000000000..7c5fcdfeefa --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InputParameter.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Input Parameters for the Task
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = InputParameter.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InputParameter + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"stepName", "arguments"}) + public InputParameter(String stepName, java.util.List arguments) { + super(); + this.stepName = stepName; + this.arguments = arguments; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** stepName for which the input parameters are provided */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + /** + * stepName for which the input parameters are provided + * + * @param stepName the value to set + * @return this builder + */ + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + return this; + } + /** Arguments for the Task */ + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + private java.util.List arguments; + + /** + * Arguments for the Task + * + * @param arguments the value to set + * @return this builder + */ + public Builder arguments(java.util.List arguments) { + this.arguments = arguments; + this.__explicitlySet__.add("arguments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InputParameter build() { + InputParameter model = new InputParameter(this.stepName, this.arguments); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InputParameter model) { + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("arguments")) { + this.arguments(model.getArguments()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** stepName for which the input parameters are provided */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private final String stepName; + + /** + * stepName for which the input parameters are provided + * + * @return the value + */ + public String getStepName() { + return stepName; + } + + /** Arguments for the Task */ + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + private final java.util.List arguments; + + /** + * Arguments for the Task + * + * @return the value + */ + public java.util.List getArguments() { + return arguments; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InputParameter("); + sb.append("super=").append(super.toString()); + sb.append("stepName=").append(String.valueOf(this.stepName)); + sb.append(", arguments=").append(String.valueOf(this.arguments)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InputParameter)) { + return false; + } + + InputParameter other = (InputParameter) o; + return java.util.Objects.equals(this.stepName, other.stepName) + && java.util.Objects.equals(this.arguments, other.arguments) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.stepName == null ? 43 : this.stepName.hashCode()); + result = (result * PRIME) + (this.arguments == null ? 43 : this.arguments.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InventoryResourceCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InventoryResourceCollection.java new file mode 100644 index 00000000000..48e4f306620 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InventoryResourceCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a inventoryResource search. Contains both InventoryResourceSummary items and other + * information, such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InventoryResourceCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InventoryResourceCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public InventoryResourceCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of InventoryResources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of InventoryResources. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InventoryResourceCollection build() { + InventoryResourceCollection model = new InventoryResourceCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InventoryResourceCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of InventoryResources. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of InventoryResources. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InventoryResourceCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InventoryResourceCollection)) { + return false; + } + + InventoryResourceCollection other = (InventoryResourceCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InventoryResourceSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InventoryResourceSummary.java new file mode 100644 index 00000000000..61dce9e2b29 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/InventoryResourceSummary.java @@ -0,0 +1,622 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * InventoryResource Search Summary.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InventoryResourceSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InventoryResourceSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "type", + "resourceCompartmentId", + "availabilityDomain", + "resourceRegion", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public InventoryResourceSummary( + String id, + String compartmentId, + String displayName, + String type, + String resourceCompartmentId, + String availabilityDomain, + String resourceRegion, + String lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.type = type; + this.resourceCompartmentId = resourceCompartmentId; + this.availabilityDomain = availabilityDomain; + this.resourceRegion = resourceRegion; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Type of the Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * Type of the Resource. + * + * @param type the value to set + * @return this builder + */ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** Compartment Id of the resource */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceCompartmentId") + private String resourceCompartmentId; + + /** + * Compartment Id of the resource + * + * @param resourceCompartmentId the value to set + * @return this builder + */ + public Builder resourceCompartmentId(String resourceCompartmentId) { + this.resourceCompartmentId = resourceCompartmentId; + this.__explicitlySet__.add("resourceCompartmentId"); + return this; + } + /** Availability Domain of the resource */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * Availability Domain of the resource + * + * @param availabilityDomain the value to set + * @return this builder + */ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** Region the resource belongs to */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Region the resource belongs to + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** The current state of the Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private String lifecycleState; + + /** + * The current state of the Resource. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(String lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InventoryResourceSummary build() { + InventoryResourceSummary model = + new InventoryResourceSummary( + this.id, + this.compartmentId, + this.displayName, + this.type, + this.resourceCompartmentId, + this.availabilityDomain, + this.resourceRegion, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InventoryResourceSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("resourceCompartmentId")) { + this.resourceCompartmentId(model.getResourceCompartmentId()); + } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Type of the Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * Type of the Resource. + * + * @return the value + */ + public String getType() { + return type; + } + + /** Compartment Id of the resource */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceCompartmentId") + private final String resourceCompartmentId; + + /** + * Compartment Id of the resource + * + * @return the value + */ + public String getResourceCompartmentId() { + return resourceCompartmentId; + } + + /** Availability Domain of the resource */ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * Availability Domain of the resource + * + * @return the value + */ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** Region the resource belongs to */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Region the resource belongs to + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** The current state of the Resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final String lifecycleState; + + /** + * The current state of the Resource. + * + * @return the value + */ + public String getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InventoryResourceSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", resourceCompartmentId=").append(String.valueOf(this.resourceCompartmentId)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InventoryResourceSummary)) { + return false; + } + + InventoryResourceSummary other = (InventoryResourceSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.resourceCompartmentId, other.resourceCompartmentId) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.resourceCompartmentId == null + ? 43 + : this.resourceCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/JobActivity.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/JobActivity.java new file mode 100644 index 00000000000..f2ae29c20fb --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/JobActivity.java @@ -0,0 +1,372 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Description of JobActivity.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobActivity.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class JobActivity extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "status", + "timeStarted", + "timeEnded", + "runbookId", + "runbookName", + "resourceLevelExecutions" + }) + public JobActivity( + String id, + JobStatus status, + java.util.Date timeStarted, + java.util.Date timeEnded, + String runbookId, + String runbookName, + java.util.List resourceLevelExecutions) { + super(); + this.id = id; + this.status = status; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.runbookId = runbookId; + this.runbookName = runbookName; + this.resourceLevelExecutions = resourceLevelExecutions; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Unique activity id at action group level */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Unique activity id at action group level + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Status of the Job at Action Group Level */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private JobStatus status; + + /** + * Status of the Job at Action Group Level + * + * @param status the value to set + * @return this builder + */ + public Builder status(JobStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The time the the Scheduler Job started. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The time the the Scheduler Job started. An RFC3339 formatted datetime string + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** The time the Scheduler Job ended. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * The time the Scheduler Job ended. An RFC3339 formatted datetime string + * + * @param timeEnded the value to set + * @return this builder + */ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** ID of the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookId") + private String runbookId; + + /** + * ID of the runbook + * + * @param runbookId the value to set + * @return this builder + */ + public Builder runbookId(String runbookId) { + this.runbookId = runbookId; + this.__explicitlySet__.add("runbookId"); + return this; + } + /** Name of the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookName") + private String runbookName; + + /** + * Name of the runbook + * + * @param runbookName the value to set + * @return this builder + */ + public Builder runbookName(String runbookName) { + this.runbookName = runbookName; + this.__explicitlySet__.add("runbookName"); + return this; + } + /** Resources execution details and outcomes associated with the Task. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceLevelExecutions") + private java.util.List resourceLevelExecutions; + + /** + * Resources execution details and outcomes associated with the Task. + * + * @param resourceLevelExecutions the value to set + * @return this builder + */ + public Builder resourceLevelExecutions( + java.util.List resourceLevelExecutions) { + this.resourceLevelExecutions = resourceLevelExecutions; + this.__explicitlySet__.add("resourceLevelExecutions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobActivity build() { + JobActivity model = + new JobActivity( + this.id, + this.status, + this.timeStarted, + this.timeEnded, + this.runbookId, + this.runbookName, + this.resourceLevelExecutions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobActivity model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("runbookId")) { + this.runbookId(model.getRunbookId()); + } + if (model.wasPropertyExplicitlySet("runbookName")) { + this.runbookName(model.getRunbookName()); + } + if (model.wasPropertyExplicitlySet("resourceLevelExecutions")) { + this.resourceLevelExecutions(model.getResourceLevelExecutions()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Unique activity id at action group level */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Unique activity id at action group level + * + * @return the value + */ + public String getId() { + return id; + } + + /** Status of the Job at Action Group Level */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final JobStatus status; + + /** + * Status of the Job at Action Group Level + * + * @return the value + */ + public JobStatus getStatus() { + return status; + } + + /** The time the the Scheduler Job started. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The time the the Scheduler Job started. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** The time the Scheduler Job ended. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * The time the Scheduler Job ended. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** ID of the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookId") + private final String runbookId; + + /** + * ID of the runbook + * + * @return the value + */ + public String getRunbookId() { + return runbookId; + } + + /** Name of the runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookName") + private final String runbookName; + + /** + * Name of the runbook + * + * @return the value + */ + public String getRunbookName() { + return runbookName; + } + + /** Resources execution details and outcomes associated with the Task. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceLevelExecutions") + private final java.util.List resourceLevelExecutions; + + /** + * Resources execution details and outcomes associated with the Task. + * + * @return the value + */ + public java.util.List getResourceLevelExecutions() { + return resourceLevelExecutions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("JobActivity("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", runbookId=").append(String.valueOf(this.runbookId)); + sb.append(", runbookName=").append(String.valueOf(this.runbookName)); + sb.append(", resourceLevelExecutions=") + .append(String.valueOf(this.resourceLevelExecutions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof JobActivity)) { + return false; + } + + JobActivity other = (JobActivity) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals(this.runbookId, other.runbookId) + && java.util.Objects.equals(this.runbookName, other.runbookName) + && java.util.Objects.equals( + this.resourceLevelExecutions, other.resourceLevelExecutions) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = (result * PRIME) + (this.runbookId == null ? 43 : this.runbookId.hashCode()); + result = (result * PRIME) + (this.runbookName == null ? 43 : this.runbookName.hashCode()); + result = + (result * PRIME) + + (this.resourceLevelExecutions == null + ? 43 + : this.resourceLevelExecutions.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/JobStatus.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/JobStatus.java new file mode 100644 index 00000000000..14a7a04781e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/JobStatus.java @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Possible Job status. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum JobStatus implements com.oracle.bmc.http.internal.BmcEnum { + Accepted("ACCEPTED"), + Waiting("WAITING"), + InProgress("IN_PROGRESS"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceled("CANCELED"), + Skipped("SKIPPED"), + Ignored("IGNORED"), + NotApplicable("NOT_APPLICABLE"), + Aborted("ABORTED"), + TimedOut("TIMED_OUT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(JobStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (JobStatus v : JobStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + JobStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static JobStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'JobStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/KeyEncryptionCredentialDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/KeyEncryptionCredentialDetails.java new file mode 100644 index 00000000000..4c581a50979 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/KeyEncryptionCredentialDetails.java @@ -0,0 +1,243 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Details for Credentials using key encryption.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = KeyEncryptionCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class KeyEncryptionCredentialDetails extends CredentialDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The value corresponding to the credential */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * The value corresponding to the credential + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + /** OCID for the Vault Key that will be used to encrypt/decrypt the value given. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + /** + * OCID for the Vault Key that will be used to encrypt/decrypt the value given. + * + * @param keyId the value to set + * @return this builder + */ + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + /** The Vault Key version. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyVersion") + private String keyVersion; + + /** + * The Vault Key version. + * + * @param keyVersion the value to set + * @return this builder + */ + public Builder keyVersion(String keyVersion) { + this.keyVersion = keyVersion; + this.__explicitlySet__.add("keyVersion"); + return this; + } + /** OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public KeyEncryptionCredentialDetails build() { + KeyEncryptionCredentialDetails model = + new KeyEncryptionCredentialDetails( + this.value, this.keyId, this.keyVersion, this.vaultId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(KeyEncryptionCredentialDetails model) { + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("keyVersion")) { + this.keyVersion(model.getKeyVersion()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public KeyEncryptionCredentialDetails( + String value, String keyId, String keyVersion, String vaultId) { + super(); + this.value = value; + this.keyId = keyId; + this.keyVersion = keyVersion; + this.vaultId = vaultId; + } + + /** The value corresponding to the credential */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * The value corresponding to the credential + * + * @return the value + */ + public String getValue() { + return value; + } + + /** OCID for the Vault Key that will be used to encrypt/decrypt the value given. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; + + /** + * OCID for the Vault Key that will be used to encrypt/decrypt the value given. + * + * @return the value + */ + public String getKeyId() { + return keyId; + } + + /** The Vault Key version. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyVersion") + private final String keyVersion; + + /** + * The Vault Key version. + * + * @return the value + */ + public String getKeyVersion() { + return keyVersion; + } + + /** OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("KeyEncryptionCredentialDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", keyId=").append(String.valueOf(this.keyId)); + sb.append(", keyVersion=").append(String.valueOf(this.keyVersion)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof KeyEncryptionCredentialDetails)) { + return false; + } + + KeyEncryptionCredentialDetails other = (KeyEncryptionCredentialDetails) o; + return java.util.Objects.equals(this.value, other.value) + && java.util.Objects.equals(this.keyId, other.keyId) + && java.util.Objects.equals(this.keyVersion, other.keyVersion) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); + result = (result * PRIME) + (this.keyVersion == null ? 43 : this.keyVersion.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/LifeCycleActionGroupType.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/LifeCycleActionGroupType.java new file mode 100644 index 00000000000..fe6d45db45f --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/LifeCycleActionGroupType.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Possible Action Group types. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum LifeCycleActionGroupType implements com.oracle.bmc.http.internal.BmcEnum { + Product("PRODUCT"), + Environment("ENVIRONMENT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifeCycleActionGroupType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifeCycleActionGroupType v : LifeCycleActionGroupType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifeCycleActionGroupType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifeCycleActionGroupType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifeCycleActionGroupType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindow.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindow.java new file mode 100644 index 00000000000..a9915fe8182 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindow.java @@ -0,0 +1,948 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Details of Maintenance Window.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceWindow.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaintenanceWindow + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "resourceRegion", + "displayName", + "description", + "timeCreated", + "timeUpdated", + "maintenanceWindowType", + "isOutage", + "timeScheduleStart", + "duration", + "isRecurring", + "recurrences", + "taskInitiationCutoff", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public MaintenanceWindow( + String id, + String compartmentId, + String resourceRegion, + String displayName, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + MaintenanceWindowType maintenanceWindowType, + Boolean isOutage, + java.util.Date timeScheduleStart, + String duration, + Boolean isRecurring, + String recurrences, + Integer taskInitiationCutoff, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.displayName = displayName; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.maintenanceWindowType = maintenanceWindowType; + this.isOutage = isOutage; + this.timeScheduleStart = timeScheduleStart; + this.duration = duration; + this.isRecurring = isRecurring; + this.recurrences = recurrences; + this.taskInitiationCutoff = taskInitiationCutoff; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Type of the MaintenanceWindow. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowType") + private MaintenanceWindowType maintenanceWindowType; + + /** + * Type of the MaintenanceWindow. + * + * @param maintenanceWindowType the value to set + * @return this builder + */ + public Builder maintenanceWindowType(MaintenanceWindowType maintenanceWindowType) { + this.maintenanceWindowType = maintenanceWindowType; + this.__explicitlySet__.add("maintenanceWindowType"); + return this; + } + /** Does the maintenenace window cause outage? */ + @com.fasterxml.jackson.annotation.JsonProperty("isOutage") + private Boolean isOutage; + + /** + * Does the maintenenace window cause outage? + * + * @param isOutage the value to set + * @return this builder + */ + public Builder isOutage(Boolean isOutage) { + this.isOutage = isOutage; + this.__explicitlySet__.add("isOutage"); + return this; + } + /** Start time of schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleStart") + private java.util.Date timeScheduleStart; + + /** + * Start time of schedule + * + * @param timeScheduleStart the value to set + * @return this builder + */ + public Builder timeScheduleStart(java.util.Date timeScheduleStart) { + this.timeScheduleStart = timeScheduleStart; + this.__explicitlySet__.add("timeScheduleStart"); + return this; + } + /** Duration if schedule type is Custom */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private String duration; + + /** + * Duration if schedule type is Custom + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(String duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + /** Is this is a recurring maintenance window */ + @com.fasterxml.jackson.annotation.JsonProperty("isRecurring") + private Boolean isRecurring; + + /** + * Is this is a recurring maintenance window + * + * @param isRecurring the value to set + * @return this builder + */ + public Builder isRecurring(Boolean isRecurring) { + this.isRecurring = isRecurring; + this.__explicitlySet__.add("isRecurring"); + return this; + } + /** Recurrence rule specification if recurring */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrences") + private String recurrences; + + /** + * Recurrence rule specification if recurring + * + * @param recurrences the value to set + * @return this builder + */ + public Builder recurrences(String recurrences) { + this.recurrences = recurrences; + this.__explicitlySet__.add("recurrences"); + return this; + } + /** Task initiation cutoff */ + @com.fasterxml.jackson.annotation.JsonProperty("taskInitiationCutoff") + private Integer taskInitiationCutoff; + + /** + * Task initiation cutoff + * + * @param taskInitiationCutoff the value to set + * @return this builder + */ + public Builder taskInitiationCutoff(Integer taskInitiationCutoff) { + this.taskInitiationCutoff = taskInitiationCutoff; + this.__explicitlySet__.add("taskInitiationCutoff"); + return this; + } + /** The current state of the MaintenanceWindow. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the MaintenanceWindow. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceWindow build() { + MaintenanceWindow model = + new MaintenanceWindow( + this.id, + this.compartmentId, + this.resourceRegion, + this.displayName, + this.description, + this.timeCreated, + this.timeUpdated, + this.maintenanceWindowType, + this.isOutage, + this.timeScheduleStart, + this.duration, + this.isRecurring, + this.recurrences, + this.taskInitiationCutoff, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceWindow model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindowType")) { + this.maintenanceWindowType(model.getMaintenanceWindowType()); + } + if (model.wasPropertyExplicitlySet("isOutage")) { + this.isOutage(model.getIsOutage()); + } + if (model.wasPropertyExplicitlySet("timeScheduleStart")) { + this.timeScheduleStart(model.getTimeScheduleStart()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + if (model.wasPropertyExplicitlySet("isRecurring")) { + this.isRecurring(model.getIsRecurring()); + } + if (model.wasPropertyExplicitlySet("recurrences")) { + this.recurrences(model.getRecurrences()); + } + if (model.wasPropertyExplicitlySet("taskInitiationCutoff")) { + this.taskInitiationCutoff(model.getTaskInitiationCutoff()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Type of the MaintenanceWindow. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowType") + private final MaintenanceWindowType maintenanceWindowType; + + /** + * Type of the MaintenanceWindow. + * + * @return the value + */ + public MaintenanceWindowType getMaintenanceWindowType() { + return maintenanceWindowType; + } + + /** Does the maintenenace window cause outage? */ + @com.fasterxml.jackson.annotation.JsonProperty("isOutage") + private final Boolean isOutage; + + /** + * Does the maintenenace window cause outage? + * + * @return the value + */ + public Boolean getIsOutage() { + return isOutage; + } + + /** Start time of schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleStart") + private final java.util.Date timeScheduleStart; + + /** + * Start time of schedule + * + * @return the value + */ + public java.util.Date getTimeScheduleStart() { + return timeScheduleStart; + } + + /** Duration if schedule type is Custom */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final String duration; + + /** + * Duration if schedule type is Custom + * + * @return the value + */ + public String getDuration() { + return duration; + } + + /** Is this is a recurring maintenance window */ + @com.fasterxml.jackson.annotation.JsonProperty("isRecurring") + private final Boolean isRecurring; + + /** + * Is this is a recurring maintenance window + * + * @return the value + */ + public Boolean getIsRecurring() { + return isRecurring; + } + + /** Recurrence rule specification if recurring */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrences") + private final String recurrences; + + /** + * Recurrence rule specification if recurring + * + * @return the value + */ + public String getRecurrences() { + return recurrences; + } + + /** Task initiation cutoff */ + @com.fasterxml.jackson.annotation.JsonProperty("taskInitiationCutoff") + private final Integer taskInitiationCutoff; + + /** + * Task initiation cutoff + * + * @return the value + */ + public Integer getTaskInitiationCutoff() { + return taskInitiationCutoff; + } + + /** The current state of the MaintenanceWindow. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Deleted("DELETED"), + Failed("FAILED"), + Deleting("DELETING"), + Updating("UPDATING"), + NeedsAttention("NEEDS_ATTENTION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the MaintenanceWindow. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the MaintenanceWindow. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceWindow("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", maintenanceWindowType=").append(String.valueOf(this.maintenanceWindowType)); + sb.append(", isOutage=").append(String.valueOf(this.isOutage)); + sb.append(", timeScheduleStart=").append(String.valueOf(this.timeScheduleStart)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(", isRecurring=").append(String.valueOf(this.isRecurring)); + sb.append(", recurrences=").append(String.valueOf(this.recurrences)); + sb.append(", taskInitiationCutoff=").append(String.valueOf(this.taskInitiationCutoff)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceWindow)) { + return false; + } + + MaintenanceWindow other = (MaintenanceWindow) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.maintenanceWindowType, other.maintenanceWindowType) + && java.util.Objects.equals(this.isOutage, other.isOutage) + && java.util.Objects.equals(this.timeScheduleStart, other.timeScheduleStart) + && java.util.Objects.equals(this.duration, other.duration) + && java.util.Objects.equals(this.isRecurring, other.isRecurring) + && java.util.Objects.equals(this.recurrences, other.recurrences) + && java.util.Objects.equals(this.taskInitiationCutoff, other.taskInitiationCutoff) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindowType == null + ? 43 + : this.maintenanceWindowType.hashCode()); + result = (result * PRIME) + (this.isOutage == null ? 43 : this.isOutage.hashCode()); + result = + (result * PRIME) + + (this.timeScheduleStart == null ? 43 : this.timeScheduleStart.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.hashCode()); + result = (result * PRIME) + (this.isRecurring == null ? 43 : this.isRecurring.hashCode()); + result = (result * PRIME) + (this.recurrences == null ? 43 : this.recurrences.hashCode()); + result = + (result * PRIME) + + (this.taskInitiationCutoff == null + ? 43 + : this.taskInitiationCutoff.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindowCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindowCollection.java new file mode 100644 index 00000000000..0cbd52cd9eb --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindowCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a maintenanceWindow search. Contains boh MaintenanceWindowSummary items and other + * information, such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceWindowCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaintenanceWindowCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public MaintenanceWindowCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of maintenanceWindows. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of maintenanceWindows. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceWindowCollection build() { + MaintenanceWindowCollection model = new MaintenanceWindowCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceWindowCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of maintenanceWindows. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of maintenanceWindows. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceWindowCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceWindowCollection)) { + return false; + } + + MaintenanceWindowCollection other = (MaintenanceWindowCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindowSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindowSummary.java new file mode 100644 index 00000000000..fc696a067f1 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindowSummary.java @@ -0,0 +1,898 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the MaintenanceWindow.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaintenanceWindowSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaintenanceWindowSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "resourceRegion", + "displayName", + "description", + "timeCreated", + "timeUpdated", + "maintenanceWindowType", + "isOutage", + "timeScheduleStart", + "duration", + "isRecurring", + "recurrences", + "taskInitiationCutoff", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public MaintenanceWindowSummary( + String id, + String compartmentId, + String resourceRegion, + String displayName, + String description, + java.util.Date timeCreated, + java.util.Date timeUpdated, + MaintenanceWindowType maintenanceWindowType, + Boolean isOutage, + java.util.Date timeScheduleStart, + String duration, + Boolean isRecurring, + String recurrences, + Integer taskInitiationCutoff, + MaintenanceWindow.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.displayName = displayName; + this.description = description; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.maintenanceWindowType = maintenanceWindowType; + this.isOutage = isOutage; + this.timeScheduleStart = timeScheduleStart; + this.duration = duration; + this.isRecurring = isRecurring; + this.recurrences = recurrences; + this.taskInitiationCutoff = taskInitiationCutoff; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Type of the MaintenanceWindow. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowType") + private MaintenanceWindowType maintenanceWindowType; + + /** + * Type of the MaintenanceWindow. + * + * @param maintenanceWindowType the value to set + * @return this builder + */ + public Builder maintenanceWindowType(MaintenanceWindowType maintenanceWindowType) { + this.maintenanceWindowType = maintenanceWindowType; + this.__explicitlySet__.add("maintenanceWindowType"); + return this; + } + /** Does the maintenenace window cause outage? */ + @com.fasterxml.jackson.annotation.JsonProperty("isOutage") + private Boolean isOutage; + + /** + * Does the maintenenace window cause outage? + * + * @param isOutage the value to set + * @return this builder + */ + public Builder isOutage(Boolean isOutage) { + this.isOutage = isOutage; + this.__explicitlySet__.add("isOutage"); + return this; + } + /** Start time of schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleStart") + private java.util.Date timeScheduleStart; + + /** + * Start time of schedule + * + * @param timeScheduleStart the value to set + * @return this builder + */ + public Builder timeScheduleStart(java.util.Date timeScheduleStart) { + this.timeScheduleStart = timeScheduleStart; + this.__explicitlySet__.add("timeScheduleStart"); + return this; + } + /** Duration if schedule type is Custom */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private String duration; + + /** + * Duration if schedule type is Custom + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(String duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + /** Is this is a recurring maintenance window */ + @com.fasterxml.jackson.annotation.JsonProperty("isRecurring") + private Boolean isRecurring; + + /** + * Is this is a recurring maintenance window + * + * @param isRecurring the value to set + * @return this builder + */ + public Builder isRecurring(Boolean isRecurring) { + this.isRecurring = isRecurring; + this.__explicitlySet__.add("isRecurring"); + return this; + } + /** Recurrence rule specification if recurring */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrences") + private String recurrences; + + /** + * Recurrence rule specification if recurring + * + * @param recurrences the value to set + * @return this builder + */ + public Builder recurrences(String recurrences) { + this.recurrences = recurrences; + this.__explicitlySet__.add("recurrences"); + return this; + } + /** Task initiation cutoff */ + @com.fasterxml.jackson.annotation.JsonProperty("taskInitiationCutoff") + private Integer taskInitiationCutoff; + + /** + * Task initiation cutoff + * + * @param taskInitiationCutoff the value to set + * @return this builder + */ + public Builder taskInitiationCutoff(Integer taskInitiationCutoff) { + this.taskInitiationCutoff = taskInitiationCutoff; + this.__explicitlySet__.add("taskInitiationCutoff"); + return this; + } + /** The current state of the MaintenanceWindow. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MaintenanceWindow.LifecycleState lifecycleState; + + /** + * The current state of the MaintenanceWindow. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(MaintenanceWindow.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MaintenanceWindowSummary build() { + MaintenanceWindowSummary model = + new MaintenanceWindowSummary( + this.id, + this.compartmentId, + this.resourceRegion, + this.displayName, + this.description, + this.timeCreated, + this.timeUpdated, + this.maintenanceWindowType, + this.isOutage, + this.timeScheduleStart, + this.duration, + this.isRecurring, + this.recurrences, + this.taskInitiationCutoff, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaintenanceWindowSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindowType")) { + this.maintenanceWindowType(model.getMaintenanceWindowType()); + } + if (model.wasPropertyExplicitlySet("isOutage")) { + this.isOutage(model.getIsOutage()); + } + if (model.wasPropertyExplicitlySet("timeScheduleStart")) { + this.timeScheduleStart(model.getTimeScheduleStart()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + if (model.wasPropertyExplicitlySet("isRecurring")) { + this.isRecurring(model.getIsRecurring()); + } + if (model.wasPropertyExplicitlySet("recurrences")) { + this.recurrences(model.getRecurrences()); + } + if (model.wasPropertyExplicitlySet("taskInitiationCutoff")) { + this.taskInitiationCutoff(model.getTaskInitiationCutoff()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Type of the MaintenanceWindow. */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowType") + private final MaintenanceWindowType maintenanceWindowType; + + /** + * Type of the MaintenanceWindow. + * + * @return the value + */ + public MaintenanceWindowType getMaintenanceWindowType() { + return maintenanceWindowType; + } + + /** Does the maintenenace window cause outage? */ + @com.fasterxml.jackson.annotation.JsonProperty("isOutage") + private final Boolean isOutage; + + /** + * Does the maintenenace window cause outage? + * + * @return the value + */ + public Boolean getIsOutage() { + return isOutage; + } + + /** Start time of schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleStart") + private final java.util.Date timeScheduleStart; + + /** + * Start time of schedule + * + * @return the value + */ + public java.util.Date getTimeScheduleStart() { + return timeScheduleStart; + } + + /** Duration if schedule type is Custom */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final String duration; + + /** + * Duration if schedule type is Custom + * + * @return the value + */ + public String getDuration() { + return duration; + } + + /** Is this is a recurring maintenance window */ + @com.fasterxml.jackson.annotation.JsonProperty("isRecurring") + private final Boolean isRecurring; + + /** + * Is this is a recurring maintenance window + * + * @return the value + */ + public Boolean getIsRecurring() { + return isRecurring; + } + + /** Recurrence rule specification if recurring */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrences") + private final String recurrences; + + /** + * Recurrence rule specification if recurring + * + * @return the value + */ + public String getRecurrences() { + return recurrences; + } + + /** Task initiation cutoff */ + @com.fasterxml.jackson.annotation.JsonProperty("taskInitiationCutoff") + private final Integer taskInitiationCutoff; + + /** + * Task initiation cutoff + * + * @return the value + */ + public Integer getTaskInitiationCutoff() { + return taskInitiationCutoff; + } + + /** The current state of the MaintenanceWindow. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MaintenanceWindow.LifecycleState lifecycleState; + + /** + * The current state of the MaintenanceWindow. + * + * @return the value + */ + public MaintenanceWindow.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MaintenanceWindowSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", maintenanceWindowType=").append(String.valueOf(this.maintenanceWindowType)); + sb.append(", isOutage=").append(String.valueOf(this.isOutage)); + sb.append(", timeScheduleStart=").append(String.valueOf(this.timeScheduleStart)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(", isRecurring=").append(String.valueOf(this.isRecurring)); + sb.append(", recurrences=").append(String.valueOf(this.recurrences)); + sb.append(", taskInitiationCutoff=").append(String.valueOf(this.taskInitiationCutoff)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MaintenanceWindowSummary)) { + return false; + } + + MaintenanceWindowSummary other = (MaintenanceWindowSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.maintenanceWindowType, other.maintenanceWindowType) + && java.util.Objects.equals(this.isOutage, other.isOutage) + && java.util.Objects.equals(this.timeScheduleStart, other.timeScheduleStart) + && java.util.Objects.equals(this.duration, other.duration) + && java.util.Objects.equals(this.isRecurring, other.isRecurring) + && java.util.Objects.equals(this.recurrences, other.recurrences) + && java.util.Objects.equals(this.taskInitiationCutoff, other.taskInitiationCutoff) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindowType == null + ? 43 + : this.maintenanceWindowType.hashCode()); + result = (result * PRIME) + (this.isOutage == null ? 43 : this.isOutage.hashCode()); + result = + (result * PRIME) + + (this.timeScheduleStart == null ? 43 : this.timeScheduleStart.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.hashCode()); + result = (result * PRIME) + (this.isRecurring == null ? 43 : this.isRecurring.hashCode()); + result = (result * PRIME) + (this.recurrences == null ? 43 : this.recurrences.hashCode()); + result = + (result * PRIME) + + (this.taskInitiationCutoff == null + ? 43 + : this.taskInitiationCutoff.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindowType.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindowType.java new file mode 100644 index 00000000000..f6109803a6b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/MaintenanceWindowType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Possible maintenance window types */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum MaintenanceWindowType implements com.oracle.bmc.http.internal.BmcEnum { + OpenEnded("OPEN_ENDED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MaintenanceWindowType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MaintenanceWindowType v : MaintenanceWindowType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenanceWindowType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenanceWindowType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenanceWindowType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/NotificationPreferences.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/NotificationPreferences.java new file mode 100644 index 00000000000..2f470693863 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/NotificationPreferences.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Conditions when met to send notifications on the fleet activities
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NotificationPreferences.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NotificationPreferences + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"topicId", "compartmentId", "preferences"}) + public NotificationPreferences(String topicId, String compartmentId, Preferences preferences) { + super(); + this.topicId = topicId; + this.compartmentId = compartmentId; + this.preferences = preferences; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Topic Id where the notifications will be directed */ + @com.fasterxml.jackson.annotation.JsonProperty("topicId") + private String topicId; + + /** + * Topic Id where the notifications will be directed + * + * @param topicId the value to set + * @return this builder + */ + public Builder topicId(String topicId) { + this.topicId = topicId; + this.__explicitlySet__.add("topicId"); + return this; + } + /** Copartment Id of the topic where the notifications will be directed */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Copartment Id of the topic where the notifications will be directed + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("preferences") + private Preferences preferences; + + public Builder preferences(Preferences preferences) { + this.preferences = preferences; + this.__explicitlySet__.add("preferences"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NotificationPreferences build() { + NotificationPreferences model = + new NotificationPreferences(this.topicId, this.compartmentId, this.preferences); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NotificationPreferences model) { + if (model.wasPropertyExplicitlySet("topicId")) { + this.topicId(model.getTopicId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("preferences")) { + this.preferences(model.getPreferences()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Topic Id where the notifications will be directed */ + @com.fasterxml.jackson.annotation.JsonProperty("topicId") + private final String topicId; + + /** + * Topic Id where the notifications will be directed + * + * @return the value + */ + public String getTopicId() { + return topicId; + } + + /** Copartment Id of the topic where the notifications will be directed */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Copartment Id of the topic where the notifications will be directed + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("preferences") + private final Preferences preferences; + + public Preferences getPreferences() { + return preferences; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NotificationPreferences("); + sb.append("super=").append(super.toString()); + sb.append("topicId=").append(String.valueOf(this.topicId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", preferences=").append(String.valueOf(this.preferences)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NotificationPreferences)) { + return false; + } + + NotificationPreferences other = (NotificationPreferences) o; + return java.util.Objects.equals(this.topicId, other.topicId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.preferences, other.preferences) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.topicId == null ? 43 : this.topicId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.preferences == null ? 43 : this.preferences.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ObjectStorageBucketContentDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ObjectStorageBucketContentDetails.java new file mode 100644 index 00000000000..bc07be264cf --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ObjectStorageBucketContentDetails.java @@ -0,0 +1,245 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Details about Object Storage Bucket source. Restricted to the region this is called
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ObjectStorageBucketContentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ObjectStorageBucketContentDetails extends ContentDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Namespace. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private String namespaceName; + + /** + * Namespace. + * + * @param namespaceName the value to set + * @return this builder + */ + public Builder namespaceName(String namespaceName) { + this.namespaceName = namespaceName; + this.__explicitlySet__.add("namespaceName"); + return this; + } + /** Bucket Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + /** + * Bucket Name. + * + * @param bucketName the value to set + * @return this builder + */ + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + /** Object Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * Object Name. + * + * @param objectName the value to set + * @return this builder + */ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + /** SHA256 checksum of the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("checksum") + private String checksum; + + /** + * SHA256 checksum of the artifact. + * + * @param checksum the value to set + * @return this builder + */ + public Builder checksum(String checksum) { + this.checksum = checksum; + this.__explicitlySet__.add("checksum"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ObjectStorageBucketContentDetails build() { + ObjectStorageBucketContentDetails model = + new ObjectStorageBucketContentDetails( + this.namespaceName, this.bucketName, this.objectName, this.checksum); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ObjectStorageBucketContentDetails model) { + if (model.wasPropertyExplicitlySet("namespaceName")) { + this.namespaceName(model.getNamespaceName()); + } + if (model.wasPropertyExplicitlySet("bucketName")) { + this.bucketName(model.getBucketName()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("checksum")) { + this.checksum(model.getChecksum()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ObjectStorageBucketContentDetails( + String namespaceName, String bucketName, String objectName, String checksum) { + super(); + this.namespaceName = namespaceName; + this.bucketName = bucketName; + this.objectName = objectName; + this.checksum = checksum; + } + + /** Namespace. */ + @com.fasterxml.jackson.annotation.JsonProperty("namespaceName") + private final String namespaceName; + + /** + * Namespace. + * + * @return the value + */ + public String getNamespaceName() { + return namespaceName; + } + + /** Bucket Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private final String bucketName; + + /** + * Bucket Name. + * + * @return the value + */ + public String getBucketName() { + return bucketName; + } + + /** Object Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * Object Name. + * + * @return the value + */ + public String getObjectName() { + return objectName; + } + + /** SHA256 checksum of the artifact. */ + @com.fasterxml.jackson.annotation.JsonProperty("checksum") + private final String checksum; + + /** + * SHA256 checksum of the artifact. + * + * @return the value + */ + public String getChecksum() { + return checksum; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ObjectStorageBucketContentDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", namespaceName=").append(String.valueOf(this.namespaceName)); + sb.append(", bucketName=").append(String.valueOf(this.bucketName)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(", checksum=").append(String.valueOf(this.checksum)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ObjectStorageBucketContentDetails)) { + return false; + } + + ObjectStorageBucketContentDetails other = (ObjectStorageBucketContentDetails) o; + return java.util.Objects.equals(this.namespaceName, other.namespaceName) + && java.util.Objects.equals(this.bucketName, other.bucketName) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.checksum, other.checksum) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.namespaceName == null ? 43 : this.namespaceName.hashCode()); + result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + (this.checksum == null ? 43 : this.checksum.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Onboarding.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Onboarding.java new file mode 100644 index 00000000000..686bb9f9614 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Onboarding.java @@ -0,0 +1,553 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * FleetAppManagementService onboarding resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Onboarding.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Onboarding extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "resourceRegion", + "timeCreated", + "timeUpdated", + "isFamsTagEnabled", + "version", + "isCostTrackingTagEnabled", + "lifecycleState", + "systemTags" + }) + public Onboarding( + String id, + String compartmentId, + String resourceRegion, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Boolean isFamsTagEnabled, + String version, + Boolean isCostTrackingTagEnabled, + LifecycleState lifecycleState, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.isFamsTagEnabled = isFamsTagEnabled; + this.version = version; + this.isCostTrackingTagEnabled = isCostTrackingTagEnabled; + this.lifecycleState = lifecycleState; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique id of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** A value determining FAMS tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isFamsTagEnabled") + private Boolean isFamsTagEnabled; + + /** + * A value determining FAMS tag is enabled or not + * + * @param isFamsTagEnabled the value to set + * @return this builder + */ + public Builder isFamsTagEnabled(Boolean isFamsTagEnabled) { + this.isFamsTagEnabled = isFamsTagEnabled; + this.__explicitlySet__.add("isFamsTagEnabled"); + return this; + } + /** Version of FAMS the tenant is onboarded to. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * Version of FAMS the tenant is onboarded to. + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** A value determining if cost tracking tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isCostTrackingTagEnabled") + private Boolean isCostTrackingTagEnabled; + + /** + * A value determining if cost tracking tag is enabled or not + * + * @param isCostTrackingTagEnabled the value to set + * @return this builder + */ + public Builder isCostTrackingTagEnabled(Boolean isCostTrackingTagEnabled) { + this.isCostTrackingTagEnabled = isCostTrackingTagEnabled; + this.__explicitlySet__.add("isCostTrackingTagEnabled"); + return this; + } + /** The current state of the Onboarding. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Onboarding. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Onboarding build() { + Onboarding model = + new Onboarding( + this.id, + this.compartmentId, + this.resourceRegion, + this.timeCreated, + this.timeUpdated, + this.isFamsTagEnabled, + this.version, + this.isCostTrackingTagEnabled, + this.lifecycleState, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Onboarding model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("isFamsTagEnabled")) { + this.isFamsTagEnabled(model.getIsFamsTagEnabled()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("isCostTrackingTagEnabled")) { + this.isCostTrackingTagEnabled(model.getIsCostTrackingTagEnabled()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique id of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** A value determining FAMS tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isFamsTagEnabled") + private final Boolean isFamsTagEnabled; + + /** + * A value determining FAMS tag is enabled or not + * + * @return the value + */ + public Boolean getIsFamsTagEnabled() { + return isFamsTagEnabled; + } + + /** Version of FAMS the tenant is onboarded to. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * Version of FAMS the tenant is onboarded to. + * + * @return the value + */ + public String getVersion() { + return version; + } + + /** A value determining if cost tracking tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isCostTrackingTagEnabled") + private final Boolean isCostTrackingTagEnabled; + + /** + * A value determining if cost tracking tag is enabled or not + * + * @return the value + */ + public Boolean getIsCostTrackingTagEnabled() { + return isCostTrackingTagEnabled; + } + + /** The current state of the Onboarding. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Inactive("INACTIVE"), + Creating("CREATING"), + Deleted("DELETED"), + Deleting("DELETING"), + Failed("FAILED"), + Updating("UPDATING"), + NeedsAttention("NEEDS_ATTENTION"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the Onboarding. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Onboarding. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Onboarding("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", isFamsTagEnabled=").append(String.valueOf(this.isFamsTagEnabled)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", isCostTrackingTagEnabled=") + .append(String.valueOf(this.isCostTrackingTagEnabled)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Onboarding)) { + return false; + } + + Onboarding other = (Onboarding) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.isFamsTagEnabled, other.isFamsTagEnabled) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals( + this.isCostTrackingTagEnabled, other.isCostTrackingTagEnabled) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.isFamsTagEnabled == null ? 43 : this.isFamsTagEnabled.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.isCostTrackingTagEnabled == null + ? 43 + : this.isCostTrackingTagEnabled.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingCollection.java new file mode 100644 index 00000000000..9de36fd5d92 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * List of FleetAppManagementService Onboardings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OnboardingCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OnboardingCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OnboardingCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of FleetAppManagementService Onboardings. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of FleetAppManagementService Onboardings. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OnboardingCollection build() { + OnboardingCollection model = new OnboardingCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OnboardingCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of FleetAppManagementService Onboardings. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of FleetAppManagementService Onboardings. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OnboardingCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OnboardingCollection)) { + return false; + } + + OnboardingCollection other = (OnboardingCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingPolicyCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingPolicyCollection.java new file mode 100644 index 00000000000..496f6d4d191 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingPolicyCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * List of FleetAppManagementService Onboard policies.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OnboardingPolicyCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OnboardingPolicyCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public OnboardingPolicyCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of FleetAppManagementService Onboard policies. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of FleetAppManagementService Onboard policies. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OnboardingPolicyCollection build() { + OnboardingPolicyCollection model = new OnboardingPolicyCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OnboardingPolicyCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of FleetAppManagementService Onboard policies. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of FleetAppManagementService Onboard policies. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OnboardingPolicyCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OnboardingPolicyCollection)) { + return false; + } + + OnboardingPolicyCollection other = (OnboardingPolicyCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingPolicySummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingPolicySummary.java new file mode 100644 index 00000000000..ca1a67f26a1 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingPolicySummary.java @@ -0,0 +1,299 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the FleetAppManagementService Onboard Policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OnboardingPolicySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OnboardingPolicySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "timeCreated", + "timeUpdated", + "statements", + "systemTags" + }) + public OnboardingPolicySummary( + String id, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.List statements, + java.util.Map> systemTags) { + super(); + this.id = id; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.statements = statements; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique id of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Policy statements. */ + @com.fasterxml.jackson.annotation.JsonProperty("statements") + private java.util.List statements; + + /** + * Policy statements. + * + * @param statements the value to set + * @return this builder + */ + public Builder statements(java.util.List statements) { + this.statements = statements; + this.__explicitlySet__.add("statements"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OnboardingPolicySummary build() { + OnboardingPolicySummary model = + new OnboardingPolicySummary( + this.id, + this.timeCreated, + this.timeUpdated, + this.statements, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OnboardingPolicySummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("statements")) { + this.statements(model.getStatements()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique id of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Policy statements. */ + @com.fasterxml.jackson.annotation.JsonProperty("statements") + private final java.util.List statements; + + /** + * Policy statements. + * + * @return the value + */ + public java.util.List getStatements() { + return statements; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OnboardingPolicySummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", statements=").append(String.valueOf(this.statements)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OnboardingPolicySummary)) { + return false; + } + + OnboardingPolicySummary other = (OnboardingPolicySummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.statements, other.statements) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.statements == null ? 43 : this.statements.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingSummary.java new file mode 100644 index 00000000000..e4879203f46 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OnboardingSummary.java @@ -0,0 +1,503 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the FleetAppManagementService Onboarding.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OnboardingSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OnboardingSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "resourceRegion", + "timeCreated", + "timeUpdated", + "isFamsTagEnabled", + "version", + "isCostTrackingTagEnabled", + "lifecycleState", + "systemTags" + }) + public OnboardingSummary( + String id, + String compartmentId, + String resourceRegion, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Boolean isFamsTagEnabled, + String version, + Boolean isCostTrackingTagEnabled, + Onboarding.LifecycleState lifecycleState, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.isFamsTagEnabled = isFamsTagEnabled; + this.version = version; + this.isCostTrackingTagEnabled = isCostTrackingTagEnabled; + this.lifecycleState = lifecycleState; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The unique id of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** A value determining FAMS tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isFamsTagEnabled") + private Boolean isFamsTagEnabled; + + /** + * A value determining FAMS tag is enabled or not + * + * @param isFamsTagEnabled the value to set + * @return this builder + */ + public Builder isFamsTagEnabled(Boolean isFamsTagEnabled) { + this.isFamsTagEnabled = isFamsTagEnabled; + this.__explicitlySet__.add("isFamsTagEnabled"); + return this; + } + /** Version of FAMS the tenant is onboarded to. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * Version of FAMS the tenant is onboarded to. + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** A value determining if cost tracking tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isCostTrackingTagEnabled") + private Boolean isCostTrackingTagEnabled; + + /** + * A value determining if cost tracking tag is enabled or not + * + * @param isCostTrackingTagEnabled the value to set + * @return this builder + */ + public Builder isCostTrackingTagEnabled(Boolean isCostTrackingTagEnabled) { + this.isCostTrackingTagEnabled = isCostTrackingTagEnabled; + this.__explicitlySet__.add("isCostTrackingTagEnabled"); + return this; + } + /** The current state of the Onboarding. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Onboarding.LifecycleState lifecycleState; + + /** + * The current state of the Onboarding. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Onboarding.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OnboardingSummary build() { + OnboardingSummary model = + new OnboardingSummary( + this.id, + this.compartmentId, + this.resourceRegion, + this.timeCreated, + this.timeUpdated, + this.isFamsTagEnabled, + this.version, + this.isCostTrackingTagEnabled, + this.lifecycleState, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OnboardingSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("isFamsTagEnabled")) { + this.isFamsTagEnabled(model.getIsFamsTagEnabled()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("isCostTrackingTagEnabled")) { + this.isCostTrackingTagEnabled(model.getIsCostTrackingTagEnabled()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The unique id of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** A value determining FAMS tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isFamsTagEnabled") + private final Boolean isFamsTagEnabled; + + /** + * A value determining FAMS tag is enabled or not + * + * @return the value + */ + public Boolean getIsFamsTagEnabled() { + return isFamsTagEnabled; + } + + /** Version of FAMS the tenant is onboarded to. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * Version of FAMS the tenant is onboarded to. + * + * @return the value + */ + public String getVersion() { + return version; + } + + /** A value determining if cost tracking tag is enabled or not */ + @com.fasterxml.jackson.annotation.JsonProperty("isCostTrackingTagEnabled") + private final Boolean isCostTrackingTagEnabled; + + /** + * A value determining if cost tracking tag is enabled or not + * + * @return the value + */ + public Boolean getIsCostTrackingTagEnabled() { + return isCostTrackingTagEnabled; + } + + /** The current state of the Onboarding. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Onboarding.LifecycleState lifecycleState; + + /** + * The current state of the Onboarding. + * + * @return the value + */ + public Onboarding.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OnboardingSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", isFamsTagEnabled=").append(String.valueOf(this.isFamsTagEnabled)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", isCostTrackingTagEnabled=") + .append(String.valueOf(this.isCostTrackingTagEnabled)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OnboardingSummary)) { + return false; + } + + OnboardingSummary other = (OnboardingSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.isFamsTagEnabled, other.isFamsTagEnabled) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals( + this.isCostTrackingTagEnabled, other.isCostTrackingTagEnabled) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.isFamsTagEnabled == null ? 43 : this.isFamsTagEnabled.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.isCostTrackingTagEnabled == null + ? 43 + : this.isCostTrackingTagEnabled.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OperationRunbook.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OperationRunbook.java new file mode 100644 index 00000000000..a26f2daeef4 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OperationRunbook.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Runbook
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OperationRunbook.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OperationRunbook + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "inputParameters"}) + public OperationRunbook(String id, java.util.List inputParameters) { + super(); + this.id = id; + this.inputParameters = inputParameters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The ID of the Runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The ID of the Runbook + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Input Parameters for the Task */ + @com.fasterxml.jackson.annotation.JsonProperty("inputParameters") + private java.util.List inputParameters; + + /** + * Input Parameters for the Task + * + * @param inputParameters the value to set + * @return this builder + */ + public Builder inputParameters(java.util.List inputParameters) { + this.inputParameters = inputParameters; + this.__explicitlySet__.add("inputParameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OperationRunbook build() { + OperationRunbook model = new OperationRunbook(this.id, this.inputParameters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OperationRunbook model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("inputParameters")) { + this.inputParameters(model.getInputParameters()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The ID of the Runbook */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The ID of the Runbook + * + * @return the value + */ + public String getId() { + return id; + } + + /** Input Parameters for the Task */ + @com.fasterxml.jackson.annotation.JsonProperty("inputParameters") + private final java.util.List inputParameters; + + /** + * Input Parameters for the Task + * + * @return the value + */ + public java.util.List getInputParameters() { + return inputParameters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OperationRunbook("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", inputParameters=").append(String.valueOf(this.inputParameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OperationRunbook)) { + return false; + } + + OperationRunbook other = (OperationRunbook) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.inputParameters, other.inputParameters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.inputParameters == null ? 43 : this.inputParameters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OperationStatus.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OperationStatus.java new file mode 100644 index 00000000000..ae957c2787a --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OperationStatus.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Possible operation status. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Waiting("WAITING"), + NeedsAttention("NEEDS_ATTENTION"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationStatus v : OperationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OperationType.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OperationType.java new file mode 100644 index 00000000000..8da564310b0 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OperationType.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Possible operation types. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { + CreateFleet("CREATE_FLEET"), + UpdateFleet("UPDATE_FLEET"), + DeleteFleet("DELETE_FLEET"), + ConfirmTarget("CONFIRM_TARGET"), + GenerateCompliance("GENERATE_COMPLIANCE"), + RequestTargetDiscovery("REQUEST_TARGET_DISCOVERY"), + ValidateResource("VALIDATE_RESOURCE"), + CreateCredential("CREATE_CREDENTIAL"), + UpdateCredential("UPDATE_CREDENTIAL"), + DeleteCredential("DELETE_CREDENTIAL"), + CreateSchedule("CREATE_SCHEDULE"), + UpdateSchedule("UPDATE_SCHEDULE"), + UpdateMaintenanceWindow("UPDATE_MAINTENANCE_WINDOW"), + DeleteMaintenanceWindow("DELETE_MAINTENANCE_WINDOW"), + CreateFleetResource("CREATE_FLEET_RESOURCE"), + UpdateFleetResource("UPDATE_FLEET_RESOURCE"), + DeleteFleetResource("DELETE_FLEET_RESOURCE"), + CreateFamsOnboarding("CREATE_FAMS_ONBOARDING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationType v : OperationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OsType.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OsType.java new file mode 100644 index 00000000000..43ef381ee99 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OsType.java @@ -0,0 +1,51 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Possible OS type values. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum OsType implements com.oracle.bmc.http.internal.BmcEnum { + Windows("WINDOWS"), + Linux("LINUX"), + Generic("GENERIC"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(OsType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OsType v : OsType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OsType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OsType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn("Received unknown value '{}' for enum 'OsType', returning UnknownEnumValue", key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Outcome.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Outcome.java new file mode 100644 index 00000000000..abedef38487 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Outcome.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Execution Outcome
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Outcome.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Outcome extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"output", "error", "exitCode"}) + public Outcome(String output, String error, String exitCode) { + super(); + this.output = output; + this.error = error; + this.exitCode = exitCode; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A shortened version of Execution Output */ + @com.fasterxml.jackson.annotation.JsonProperty("output") + private String output; + + /** + * A shortened version of Execution Output + * + * @param output the value to set + * @return this builder + */ + public Builder output(String output) { + this.output = output; + this.__explicitlySet__.add("output"); + return this; + } + /** Errors if any associated with the execution */ + @com.fasterxml.jackson.annotation.JsonProperty("error") + private String error; + + /** + * Errors if any associated with the execution + * + * @param error the value to set + * @return this builder + */ + public Builder error(String error) { + this.error = error; + this.__explicitlySet__.add("error"); + return this; + } + /** Exit Code */ + @com.fasterxml.jackson.annotation.JsonProperty("exitCode") + private String exitCode; + + /** + * Exit Code + * + * @param exitCode the value to set + * @return this builder + */ + public Builder exitCode(String exitCode) { + this.exitCode = exitCode; + this.__explicitlySet__.add("exitCode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Outcome build() { + Outcome model = new Outcome(this.output, this.error, this.exitCode); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Outcome model) { + if (model.wasPropertyExplicitlySet("output")) { + this.output(model.getOutput()); + } + if (model.wasPropertyExplicitlySet("error")) { + this.error(model.getError()); + } + if (model.wasPropertyExplicitlySet("exitCode")) { + this.exitCode(model.getExitCode()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A shortened version of Execution Output */ + @com.fasterxml.jackson.annotation.JsonProperty("output") + private final String output; + + /** + * A shortened version of Execution Output + * + * @return the value + */ + public String getOutput() { + return output; + } + + /** Errors if any associated with the execution */ + @com.fasterxml.jackson.annotation.JsonProperty("error") + private final String error; + + /** + * Errors if any associated with the execution + * + * @return the value + */ + public String getError() { + return error; + } + + /** Exit Code */ + @com.fasterxml.jackson.annotation.JsonProperty("exitCode") + private final String exitCode; + + /** + * Exit Code + * + * @return the value + */ + public String getExitCode() { + return exitCode; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Outcome("); + sb.append("super=").append(super.toString()); + sb.append("output=").append(String.valueOf(this.output)); + sb.append(", error=").append(String.valueOf(this.error)); + sb.append(", exitCode=").append(String.valueOf(this.exitCode)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Outcome)) { + return false; + } + + Outcome other = (Outcome) o; + return java.util.Objects.equals(this.output, other.output) + && java.util.Objects.equals(this.error, other.error) + && java.util.Objects.equals(this.exitCode, other.exitCode) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.output == null ? 43 : this.output.hashCode()); + result = (result * PRIME) + (this.error == null ? 43 : this.error.hashCode()); + result = (result * PRIME) + (this.exitCode == null ? 43 : this.exitCode.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OutputVariableDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OutputVariableDetails.java new file mode 100644 index 00000000000..61af0c82c20 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OutputVariableDetails.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The details of the output variable that will be used for mapping.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OutputVariableDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OutputVariableDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"stepName", "outputVariableName"}) + public OutputVariableDetails(String stepName, String outputVariableName) { + super(); + this.stepName = stepName; + this.outputVariableName = outputVariableName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the task step the output variable belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + /** + * The name of the task step the output variable belongs to. + * + * @param stepName the value to set + * @return this builder + */ + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + return this; + } + /** The name of the output variable whose value that has to be mapped. */ + @com.fasterxml.jackson.annotation.JsonProperty("outputVariableName") + private String outputVariableName; + + /** + * The name of the output variable whose value that has to be mapped. + * + * @param outputVariableName the value to set + * @return this builder + */ + public Builder outputVariableName(String outputVariableName) { + this.outputVariableName = outputVariableName; + this.__explicitlySet__.add("outputVariableName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OutputVariableDetails build() { + OutputVariableDetails model = + new OutputVariableDetails(this.stepName, this.outputVariableName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OutputVariableDetails model) { + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("outputVariableName")) { + this.outputVariableName(model.getOutputVariableName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name of the task step the output variable belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private final String stepName; + + /** + * The name of the task step the output variable belongs to. + * + * @return the value + */ + public String getStepName() { + return stepName; + } + + /** The name of the output variable whose value that has to be mapped. */ + @com.fasterxml.jackson.annotation.JsonProperty("outputVariableName") + private final String outputVariableName; + + /** + * The name of the output variable whose value that has to be mapped. + * + * @return the value + */ + public String getOutputVariableName() { + return outputVariableName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OutputVariableDetails("); + sb.append("super=").append(super.toString()); + sb.append("stepName=").append(String.valueOf(this.stepName)); + sb.append(", outputVariableName=").append(String.valueOf(this.outputVariableName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OutputVariableDetails)) { + return false; + } + + OutputVariableDetails other = (OutputVariableDetails) o; + return java.util.Objects.equals(this.stepName, other.stepName) + && java.util.Objects.equals(this.outputVariableName, other.outputVariableName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.stepName == null ? 43 : this.stepName.hashCode()); + result = + (result * PRIME) + + (this.outputVariableName == null + ? 43 + : this.outputVariableName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OutputVariableInputArgument.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OutputVariableInputArgument.java new file mode 100644 index 00000000000..a07ce572ce3 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OutputVariableInputArgument.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The details of the output variable that will be used as Input argument.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OutputVariableInputArgument.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OutputVariableInputArgument extends InputArgument { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OutputVariableInputArgument build() { + OutputVariableInputArgument model = + new OutputVariableInputArgument(this.name, this.description); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OutputVariableInputArgument model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OutputVariableInputArgument(String name, String description) { + super(name, description); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OutputVariableInputArgument("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OutputVariableInputArgument)) { + return false; + } + + OutputVariableInputArgument other = (OutputVariableInputArgument) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OutputVariableMapping.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OutputVariableMapping.java new file mode 100644 index 00000000000..f88ed724d0c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/OutputVariableMapping.java @@ -0,0 +1,162 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The details of the output variable that will be used as Input argument.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OutputVariableMapping.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OutputVariableMapping + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "outputVariableDetails"}) + public OutputVariableMapping(String name, OutputVariableDetails outputVariableDetails) { + super(); + this.name = name; + this.outputVariableDetails = outputVariableDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the input variable */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the input variable + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("outputVariableDetails") + private OutputVariableDetails outputVariableDetails; + + public Builder outputVariableDetails(OutputVariableDetails outputVariableDetails) { + this.outputVariableDetails = outputVariableDetails; + this.__explicitlySet__.add("outputVariableDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OutputVariableMapping build() { + OutputVariableMapping model = + new OutputVariableMapping(this.name, this.outputVariableDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OutputVariableMapping model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("outputVariableDetails")) { + this.outputVariableDetails(model.getOutputVariableDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name of the input variable */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the input variable + * + * @return the value + */ + public String getName() { + return name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("outputVariableDetails") + private final OutputVariableDetails outputVariableDetails; + + public OutputVariableDetails getOutputVariableDetails() { + return outputVariableDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OutputVariableMapping("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", outputVariableDetails=").append(String.valueOf(this.outputVariableDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OutputVariableMapping)) { + return false; + } + + OutputVariableMapping other = (OutputVariableMapping) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.outputVariableDetails, other.outputVariableDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.outputVariableDetails == null + ? 43 + : this.outputVariableDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/PlainTextCredentialDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/PlainTextCredentialDetails.java new file mode 100644 index 00000000000..6d71589e1ec --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/PlainTextCredentialDetails.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Details for plain text credentials.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PlainTextCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PlainTextCredentialDetails extends CredentialDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The value corresponding to the credential */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * The value corresponding to the credential + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PlainTextCredentialDetails build() { + PlainTextCredentialDetails model = new PlainTextCredentialDetails(this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PlainTextCredentialDetails model) { + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PlainTextCredentialDetails(String value) { + super(); + this.value = value; + } + + /** The value corresponding to the credential */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * The value corresponding to the credential + * + * @return the value + */ + public String getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PlainTextCredentialDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PlainTextCredentialDetails)) { + return false; + } + + PlainTextCredentialDetails other = (PlainTextCredentialDetails) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Preferences.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Preferences.java new file mode 100644 index 00000000000..ae3d4e6f44b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Preferences.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Preferences to send notifications on the fleet activities
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Preferences.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Preferences extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "onUpcomingSchedule", + "onJobFailure", + "onTopologyModification" + }) + public Preferences( + Boolean onUpcomingSchedule, Boolean onJobFailure, Boolean onTopologyModification) { + super(); + this.onUpcomingSchedule = onUpcomingSchedule; + this.onJobFailure = onJobFailure; + this.onTopologyModification = onTopologyModification; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Enables notification on upcoming schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("onUpcomingSchedule") + private Boolean onUpcomingSchedule; + + /** + * Enables notification on upcoming schedule. + * + * @param onUpcomingSchedule the value to set + * @return this builder + */ + public Builder onUpcomingSchedule(Boolean onUpcomingSchedule) { + this.onUpcomingSchedule = onUpcomingSchedule; + this.__explicitlySet__.add("onUpcomingSchedule"); + return this; + } + /** Enables or disables notification on Job Failures.' */ + @com.fasterxml.jackson.annotation.JsonProperty("onJobFailure") + private Boolean onJobFailure; + + /** + * Enables or disables notification on Job Failures.' + * + * @param onJobFailure the value to set + * @return this builder + */ + public Builder onJobFailure(Boolean onJobFailure) { + this.onJobFailure = onJobFailure; + this.__explicitlySet__.add("onJobFailure"); + return this; + } + /** Enables or disables notification on Environment Fleet Topology Modification. */ + @com.fasterxml.jackson.annotation.JsonProperty("onTopologyModification") + private Boolean onTopologyModification; + + /** + * Enables or disables notification on Environment Fleet Topology Modification. + * + * @param onTopologyModification the value to set + * @return this builder + */ + public Builder onTopologyModification(Boolean onTopologyModification) { + this.onTopologyModification = onTopologyModification; + this.__explicitlySet__.add("onTopologyModification"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Preferences build() { + Preferences model = + new Preferences( + this.onUpcomingSchedule, + this.onJobFailure, + this.onTopologyModification); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Preferences model) { + if (model.wasPropertyExplicitlySet("onUpcomingSchedule")) { + this.onUpcomingSchedule(model.getOnUpcomingSchedule()); + } + if (model.wasPropertyExplicitlySet("onJobFailure")) { + this.onJobFailure(model.getOnJobFailure()); + } + if (model.wasPropertyExplicitlySet("onTopologyModification")) { + this.onTopologyModification(model.getOnTopologyModification()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Enables notification on upcoming schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("onUpcomingSchedule") + private final Boolean onUpcomingSchedule; + + /** + * Enables notification on upcoming schedule. + * + * @return the value + */ + public Boolean getOnUpcomingSchedule() { + return onUpcomingSchedule; + } + + /** Enables or disables notification on Job Failures.' */ + @com.fasterxml.jackson.annotation.JsonProperty("onJobFailure") + private final Boolean onJobFailure; + + /** + * Enables or disables notification on Job Failures.' + * + * @return the value + */ + public Boolean getOnJobFailure() { + return onJobFailure; + } + + /** Enables or disables notification on Environment Fleet Topology Modification. */ + @com.fasterxml.jackson.annotation.JsonProperty("onTopologyModification") + private final Boolean onTopologyModification; + + /** + * Enables or disables notification on Environment Fleet Topology Modification. + * + * @return the value + */ + public Boolean getOnTopologyModification() { + return onTopologyModification; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Preferences("); + sb.append("super=").append(super.toString()); + sb.append("onUpcomingSchedule=").append(String.valueOf(this.onUpcomingSchedule)); + sb.append(", onJobFailure=").append(String.valueOf(this.onJobFailure)); + sb.append(", onTopologyModification=").append(String.valueOf(this.onTopologyModification)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Preferences)) { + return false; + } + + Preferences other = (Preferences) o; + return java.util.Objects.equals(this.onUpcomingSchedule, other.onUpcomingSchedule) + && java.util.Objects.equals(this.onJobFailure, other.onJobFailure) + && java.util.Objects.equals( + this.onTopologyModification, other.onTopologyModification) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.onUpcomingSchedule == null + ? 43 + : this.onUpcomingSchedule.hashCode()); + result = (result * PRIME) + (this.onJobFailure == null ? 43 : this.onJobFailure.hashCode()); + result = + (result * PRIME) + + (this.onTopologyModification == null + ? 43 + : this.onTopologyModification.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Properties.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Properties.java new file mode 100644 index 00000000000..2744f393536 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Properties.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The properties of the task.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Properties.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Properties extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"numRetries", "timeoutInSeconds"}) + public Properties(Integer numRetries, Integer timeoutInSeconds) { + super(); + this.numRetries = numRetries; + this.timeoutInSeconds = timeoutInSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The number of retries allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("numRetries") + private Integer numRetries; + + /** + * The number of retries allowed. + * + * @param numRetries the value to set + * @return this builder + */ + public Builder numRetries(Integer numRetries) { + this.numRetries = numRetries; + this.__explicitlySet__.add("numRetries"); + return this; + } + /** The timeout in seconds for the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeoutInSeconds") + private Integer timeoutInSeconds; + + /** + * The timeout in seconds for the task. + * + * @param timeoutInSeconds the value to set + * @return this builder + */ + public Builder timeoutInSeconds(Integer timeoutInSeconds) { + this.timeoutInSeconds = timeoutInSeconds; + this.__explicitlySet__.add("timeoutInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Properties build() { + Properties model = new Properties(this.numRetries, this.timeoutInSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Properties model) { + if (model.wasPropertyExplicitlySet("numRetries")) { + this.numRetries(model.getNumRetries()); + } + if (model.wasPropertyExplicitlySet("timeoutInSeconds")) { + this.timeoutInSeconds(model.getTimeoutInSeconds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The number of retries allowed. */ + @com.fasterxml.jackson.annotation.JsonProperty("numRetries") + private final Integer numRetries; + + /** + * The number of retries allowed. + * + * @return the value + */ + public Integer getNumRetries() { + return numRetries; + } + + /** The timeout in seconds for the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeoutInSeconds") + private final Integer timeoutInSeconds; + + /** + * The timeout in seconds for the task. + * + * @return the value + */ + public Integer getTimeoutInSeconds() { + return timeoutInSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Properties("); + sb.append("super=").append(super.toString()); + sb.append("numRetries=").append(String.valueOf(this.numRetries)); + sb.append(", timeoutInSeconds=").append(String.valueOf(this.timeoutInSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Properties)) { + return false; + } + + Properties other = (Properties) o; + return java.util.Objects.equals(this.numRetries, other.numRetries) + && java.util.Objects.equals(this.timeoutInSeconds, other.timeoutInSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.numRetries == null ? 43 : this.numRetries.hashCode()); + result = + (result * PRIME) + + (this.timeoutInSeconds == null ? 43 : this.timeoutInSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Property.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Property.java new file mode 100644 index 00000000000..3171dba4b66 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Property.java @@ -0,0 +1,856 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Taxonomy metadata aka Property .
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Property.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Property extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeCreated", + "timeUpdated", + "resourceRegion", + "lifecycleState", + "lifecycleDetails", + "selection", + "valueType", + "values", + "scope", + "type", + "freeformTags", + "definedTags", + "systemTags" + }) + public Property( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String resourceRegion, + LifecycleState lifecycleState, + String lifecycleDetails, + Selection selection, + ValueType valueType, + java.util.List values, + Scope scope, + Type type, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.resourceRegion = resourceRegion; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.selection = selection; + this.valueType = valueType; + this.values = values; + this.scope = scope; + this.type = type; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** The current state of the Property. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Property. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** Text selection of the category */ + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private Selection selection; + + /** + * Text selection of the category + * + * @param selection the value to set + * @return this builder + */ + public Builder selection(Selection selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** Format of the value */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private ValueType valueType; + + /** + * Format of the value + * + * @param valueType the value to set + * @return this builder + */ + public Builder valueType(ValueType valueType) { + this.valueType = valueType; + this.__explicitlySet__.add("valueType"); + return this; + } + /** Values of the property (must be a single value if selection = 'single choice') */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private java.util.List values; + + /** + * Values of the property (must be a single value if selection = 'single choice') + * + * @param values the value to set + * @return this builder + */ + public Builder values(java.util.List values) { + this.values = values; + this.__explicitlySet__.add("values"); + return this; + } + /** The scope of the property */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private Scope scope; + + /** + * The scope of the property + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(Scope scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + /** The type of the property. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * The type of the property. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Property build() { + Property model = + new Property( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.resourceRegion, + this.lifecycleState, + this.lifecycleDetails, + this.selection, + this.valueType, + this.values, + this.scope, + this.type, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Property model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("valueType")) { + this.valueType(model.getValueType()); + } + if (model.wasPropertyExplicitlySet("values")) { + this.values(model.getValues()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** The current state of the Property. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the Property. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Property. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** Text selection of the category */ + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private final Selection selection; + + /** + * Text selection of the category + * + * @return the value + */ + public Selection getSelection() { + return selection; + } + + /** Format of the value */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private final ValueType valueType; + + /** + * Format of the value + * + * @return the value + */ + public ValueType getValueType() { + return valueType; + } + + /** Values of the property (must be a single value if selection = 'single choice') */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private final java.util.List values; + + /** + * Values of the property (must be a single value if selection = 'single choice') + * + * @return the value + */ + public java.util.List getValues() { + return values; + } + + /** The scope of the property */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final Scope scope; + + /** + * The scope of the property + * + * @return the value + */ + public Scope getScope() { + return scope; + } + + /** The type of the property. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + UserDefined("USER_DEFINED"), + OracleDefined("ORACLE_DEFINED"), + SystemDefined("SYSTEM_DEFINED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** The type of the property. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * The type of the property. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Property("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", selection=").append(String.valueOf(this.selection)); + sb.append(", valueType=").append(String.valueOf(this.valueType)); + sb.append(", values=").append(String.valueOf(this.values)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Property)) { + return false; + } + + Property other = (Property) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.selection, other.selection) + && java.util.Objects.equals(this.valueType, other.valueType) + && java.util.Objects.equals(this.values, other.values) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.selection == null ? 43 : this.selection.hashCode()); + result = (result * PRIME) + (this.valueType == null ? 43 : this.valueType.hashCode()); + result = (result * PRIME) + (this.values == null ? 43 : this.values.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/PropertyCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/PropertyCollection.java new file mode 100644 index 00000000000..a0cce07656c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/PropertyCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a property search. Contains boh PropertySummary items and other information, such as + * metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PropertyCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PropertyCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public PropertyCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of propertys. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of propertys. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PropertyCollection build() { + PropertyCollection model = new PropertyCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PropertyCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of propertys. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of propertys. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PropertyCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PropertyCollection)) { + return false; + } + + PropertyCollection other = (PropertyCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/PropertySummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/PropertySummary.java new file mode 100644 index 00000000000..9b79c78b53a --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/PropertySummary.java @@ -0,0 +1,765 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the Property.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PropertySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PropertySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "timeCreated", + "timeUpdated", + "resourceRegion", + "lifecycleState", + "lifecycleDetails", + "selection", + "valueType", + "values", + "scope", + "type", + "freeformTags", + "definedTags", + "systemTags" + }) + public PropertySummary( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String resourceRegion, + Property.LifecycleState lifecycleState, + String lifecycleDetails, + Selection selection, + ValueType valueType, + java.util.List values, + Scope scope, + Property.Type type, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.resourceRegion = resourceRegion; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.selection = selection; + this.valueType = valueType; + this.values = values; + this.scope = scope; + this.type = type; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** The current state of the Property. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Property.LifecycleState lifecycleState; + + /** + * The current state of the Property. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Property.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** Text selection of the category */ + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private Selection selection; + + /** + * Text selection of the category + * + * @param selection the value to set + * @return this builder + */ + public Builder selection(Selection selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** Format of the value */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private ValueType valueType; + + /** + * Format of the value + * + * @param valueType the value to set + * @return this builder + */ + public Builder valueType(ValueType valueType) { + this.valueType = valueType; + this.__explicitlySet__.add("valueType"); + return this; + } + /** Values of the property (must be a single value if selection = 'single choice') */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private java.util.List values; + + /** + * Values of the property (must be a single value if selection = 'single choice') + * + * @param values the value to set + * @return this builder + */ + public Builder values(java.util.List values) { + this.values = values; + this.__explicitlySet__.add("values"); + return this; + } + /** The scope of the property */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private Scope scope; + + /** + * The scope of the property + * + * @param scope the value to set + * @return this builder + */ + public Builder scope(Scope scope) { + this.scope = scope; + this.__explicitlySet__.add("scope"); + return this; + } + /** The type of the property. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Property.Type type; + + /** + * The type of the property. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Property.Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PropertySummary build() { + PropertySummary model = + new PropertySummary( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.resourceRegion, + this.lifecycleState, + this.lifecycleDetails, + this.selection, + this.valueType, + this.values, + this.scope, + this.type, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PropertySummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("valueType")) { + this.valueType(model.getValueType()); + } + if (model.wasPropertyExplicitlySet("values")) { + this.values(model.getValues()); + } + if (model.wasPropertyExplicitlySet("scope")) { + this.scope(model.getScope()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** The current state of the Property. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Property.LifecycleState lifecycleState; + + /** + * The current state of the Property. + * + * @return the value + */ + public Property.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** Text selection of the category */ + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private final Selection selection; + + /** + * Text selection of the category + * + * @return the value + */ + public Selection getSelection() { + return selection; + } + + /** Format of the value */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private final ValueType valueType; + + /** + * Format of the value + * + * @return the value + */ + public ValueType getValueType() { + return valueType; + } + + /** Values of the property (must be a single value if selection = 'single choice') */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private final java.util.List values; + + /** + * Values of the property (must be a single value if selection = 'single choice') + * + * @return the value + */ + public java.util.List getValues() { + return values; + } + + /** The scope of the property */ + @com.fasterxml.jackson.annotation.JsonProperty("scope") + private final Scope scope; + + /** + * The scope of the property + * + * @return the value + */ + public Scope getScope() { + return scope; + } + + /** The type of the property. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Property.Type type; + + /** + * The type of the property. + * + * @return the value + */ + public Property.Type getType() { + return type; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PropertySummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", selection=").append(String.valueOf(this.selection)); + sb.append(", valueType=").append(String.valueOf(this.valueType)); + sb.append(", values=").append(String.valueOf(this.values)); + sb.append(", scope=").append(String.valueOf(this.scope)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PropertySummary)) { + return false; + } + + PropertySummary other = (PropertySummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.selection, other.selection) + && java.util.Objects.equals(this.valueType, other.valueType) + && java.util.Objects.equals(this.values, other.values) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.selection == null ? 43 : this.selection.hashCode()); + result = (result * PRIME) + (this.valueType == null ? 43 : this.valueType.hashCode()); + result = (result * PRIME) + (this.values == null ? 43 : this.values.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RequestResourceValidationDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RequestResourceValidationDetails.java new file mode 100644 index 00000000000..ceaafd4c589 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RequestResourceValidationDetails.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Request to initiate resource validation
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RequestResourceValidationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RequestResourceValidationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isApplicableToAllResources", "resourceIds"}) + public RequestResourceValidationDetails( + Boolean isApplicableToAllResources, java.util.List resourceIds) { + super(); + this.isApplicableToAllResources = isApplicableToAllResources; + this.resourceIds = resourceIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A boolean flag which decides if all resources within the fleet should be part of + * vaidation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isApplicableToAllResources") + private Boolean isApplicableToAllResources; + + /** + * A boolean flag which decides if all resources within the fleet should be part of + * vaidation. + * + * @param isApplicableToAllResources the value to set + * @return this builder + */ + public Builder isApplicableToAllResources(Boolean isApplicableToAllResources) { + this.isApplicableToAllResources = isApplicableToAllResources; + this.__explicitlySet__.add("isApplicableToAllResources"); + return this; + } + /** Resource OCIDS that need to be included for validation. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private java.util.List resourceIds; + + /** + * Resource OCIDS that need to be included for validation. + * + * @param resourceIds the value to set + * @return this builder + */ + public Builder resourceIds(java.util.List resourceIds) { + this.resourceIds = resourceIds; + this.__explicitlySet__.add("resourceIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RequestResourceValidationDetails build() { + RequestResourceValidationDetails model = + new RequestResourceValidationDetails( + this.isApplicableToAllResources, this.resourceIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RequestResourceValidationDetails model) { + if (model.wasPropertyExplicitlySet("isApplicableToAllResources")) { + this.isApplicableToAllResources(model.getIsApplicableToAllResources()); + } + if (model.wasPropertyExplicitlySet("resourceIds")) { + this.resourceIds(model.getResourceIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A boolean flag which decides if all resources within the fleet should be part of vaidation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isApplicableToAllResources") + private final Boolean isApplicableToAllResources; + + /** + * A boolean flag which decides if all resources within the fleet should be part of vaidation. + * + * @return the value + */ + public Boolean getIsApplicableToAllResources() { + return isApplicableToAllResources; + } + + /** Resource OCIDS that need to be included for validation. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private final java.util.List resourceIds; + + /** + * Resource OCIDS that need to be included for validation. + * + * @return the value + */ + public java.util.List getResourceIds() { + return resourceIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RequestResourceValidationDetails("); + sb.append("super=").append(super.toString()); + sb.append("isApplicableToAllResources=") + .append(String.valueOf(this.isApplicableToAllResources)); + sb.append(", resourceIds=").append(String.valueOf(this.resourceIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RequestResourceValidationDetails)) { + return false; + } + + RequestResourceValidationDetails other = (RequestResourceValidationDetails) o; + return java.util.Objects.equals( + this.isApplicableToAllResources, other.isApplicableToAllResources) + && java.util.Objects.equals(this.resourceIds, other.resourceIds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isApplicableToAllResources == null + ? 43 + : this.isApplicableToAllResources.hashCode()); + result = (result * PRIME) + (this.resourceIds == null ? 43 : this.resourceIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RequestTargetDiscoveryDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RequestTargetDiscoveryDetails.java new file mode 100644 index 00000000000..33a27a91626 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RequestTargetDiscoveryDetails.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Request to initiate target discovery
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RequestTargetDiscoveryDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RequestTargetDiscoveryDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isApplicableToAllResources", "resourceIds"}) + public RequestTargetDiscoveryDetails( + Boolean isApplicableToAllResources, java.util.List resourceIds) { + super(); + this.isApplicableToAllResources = isApplicableToAllResources; + this.resourceIds = resourceIds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A boolean flag which decides if all resources within the fleet should be part of + * discovery. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isApplicableToAllResources") + private Boolean isApplicableToAllResources; + + /** + * A boolean flag which decides if all resources within the fleet should be part of + * discovery. + * + * @param isApplicableToAllResources the value to set + * @return this builder + */ + public Builder isApplicableToAllResources(Boolean isApplicableToAllResources) { + this.isApplicableToAllResources = isApplicableToAllResources; + this.__explicitlySet__.add("isApplicableToAllResources"); + return this; + } + /** Resource OCIDS that need to be included for discovery. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private java.util.List resourceIds; + + /** + * Resource OCIDS that need to be included for discovery. + * + * @param resourceIds the value to set + * @return this builder + */ + public Builder resourceIds(java.util.List resourceIds) { + this.resourceIds = resourceIds; + this.__explicitlySet__.add("resourceIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RequestTargetDiscoveryDetails build() { + RequestTargetDiscoveryDetails model = + new RequestTargetDiscoveryDetails( + this.isApplicableToAllResources, this.resourceIds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RequestTargetDiscoveryDetails model) { + if (model.wasPropertyExplicitlySet("isApplicableToAllResources")) { + this.isApplicableToAllResources(model.getIsApplicableToAllResources()); + } + if (model.wasPropertyExplicitlySet("resourceIds")) { + this.resourceIds(model.getResourceIds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A boolean flag which decides if all resources within the fleet should be part of discovery. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isApplicableToAllResources") + private final Boolean isApplicableToAllResources; + + /** + * A boolean flag which decides if all resources within the fleet should be part of discovery. + * + * @return the value + */ + public Boolean getIsApplicableToAllResources() { + return isApplicableToAllResources; + } + + /** Resource OCIDS that need to be included for discovery. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceIds") + private final java.util.List resourceIds; + + /** + * Resource OCIDS that need to be included for discovery. + * + * @return the value + */ + public java.util.List getResourceIds() { + return resourceIds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RequestTargetDiscoveryDetails("); + sb.append("super=").append(super.toString()); + sb.append("isApplicableToAllResources=") + .append(String.valueOf(this.isApplicableToAllResources)); + sb.append(", resourceIds=").append(String.valueOf(this.resourceIds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RequestTargetDiscoveryDetails)) { + return false; + } + + RequestTargetDiscoveryDetails other = (RequestTargetDiscoveryDetails) o; + return java.util.Objects.equals( + this.isApplicableToAllResources, other.isApplicableToAllResources) + && java.util.Objects.equals(this.resourceIds, other.resourceIds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isApplicableToAllResources == null + ? 43 + : this.isApplicableToAllResources.hashCode()); + result = (result * PRIME) + (this.resourceIds == null ? 43 : this.resourceIds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ResourceTagCheckDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ResourceTagCheckDetails.java new file mode 100644 index 00000000000..bd9a40a3891 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ResourceTagCheckDetails.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Request to check resource tagging
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ResourceTagCheckDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ResourceTagCheckDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"tagEnablementInfo"}) + public ResourceTagCheckDetails(java.util.List tagEnablementInfo) { + super(); + this.tagEnablementInfo = tagEnablementInfo; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Tag enablement Information for resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("tagEnablementInfo") + private java.util.List tagEnablementInfo; + + /** + * Tag enablement Information for resources. + * + * @param tagEnablementInfo the value to set + * @return this builder + */ + public Builder tagEnablementInfo( + java.util.List tagEnablementInfo) { + this.tagEnablementInfo = tagEnablementInfo; + this.__explicitlySet__.add("tagEnablementInfo"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ResourceTagCheckDetails build() { + ResourceTagCheckDetails model = new ResourceTagCheckDetails(this.tagEnablementInfo); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceTagCheckDetails model) { + if (model.wasPropertyExplicitlySet("tagEnablementInfo")) { + this.tagEnablementInfo(model.getTagEnablementInfo()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Tag enablement Information for resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("tagEnablementInfo") + private final java.util.List tagEnablementInfo; + + /** + * Tag enablement Information for resources. + * + * @return the value + */ + public java.util.List getTagEnablementInfo() { + return tagEnablementInfo; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ResourceTagCheckDetails("); + sb.append("super=").append(super.toString()); + sb.append("tagEnablementInfo=").append(String.valueOf(this.tagEnablementInfo)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResourceTagCheckDetails)) { + return false; + } + + ResourceTagCheckDetails other = (ResourceTagCheckDetails) o; + return java.util.Objects.equals(this.tagEnablementInfo, other.tagEnablementInfo) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.tagEnablementInfo == null ? 43 : this.tagEnablementInfo.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ResourceTagEnablementInfo.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ResourceTagEnablementInfo.java new file mode 100644 index 00000000000..d3b76fba2d2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ResourceTagEnablementInfo.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Resource tag enablement Information
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ResourceTagEnablementInfo.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ResourceTagEnablementInfo + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"resourceId", "isTaggingPossible"}) + public ResourceTagEnablementInfo(String resourceId, Boolean isTaggingPossible) { + super(); + this.resourceId = resourceId; + this.isTaggingPossible = isTaggingPossible; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The OCID of the resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** A value which represents if resource can be tagged with Fleet name */ + @com.fasterxml.jackson.annotation.JsonProperty("isTaggingPossible") + private Boolean isTaggingPossible; + + /** + * A value which represents if resource can be tagged with Fleet name + * + * @param isTaggingPossible the value to set + * @return this builder + */ + public Builder isTaggingPossible(Boolean isTaggingPossible) { + this.isTaggingPossible = isTaggingPossible; + this.__explicitlySet__.add("isTaggingPossible"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ResourceTagEnablementInfo build() { + ResourceTagEnablementInfo model = + new ResourceTagEnablementInfo(this.resourceId, this.isTaggingPossible); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceTagEnablementInfo model) { + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("isTaggingPossible")) { + this.isTaggingPossible(model.getIsTaggingPossible()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** A value which represents if resource can be tagged with Fleet name */ + @com.fasterxml.jackson.annotation.JsonProperty("isTaggingPossible") + private final Boolean isTaggingPossible; + + /** + * A value which represents if resource can be tagged with Fleet name + * + * @return the value + */ + public Boolean getIsTaggingPossible() { + return isTaggingPossible; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ResourceTagEnablementInfo("); + sb.append("super=").append(super.toString()); + sb.append("resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", isTaggingPossible=").append(String.valueOf(this.isTaggingPossible)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResourceTagEnablementInfo)) { + return false; + } + + ResourceTagEnablementInfo other = (ResourceTagEnablementInfo) o; + return java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.isTaggingPossible, other.isTaggingPossible) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.isTaggingPossible == null ? 43 : this.isTaggingPossible.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Rule.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Rule.java new file mode 100644 index 00000000000..4e202546d3e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Rule.java @@ -0,0 +1,257 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Rule Selection Criteria
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Rule.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Rule extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "basis", + "compartmentId", + "resourceCompartmentId", + "conditions" + }) + public Rule( + String basis, + String compartmentId, + String resourceCompartmentId, + java.util.List conditions) { + super(); + this.basis = basis; + this.compartmentId = compartmentId; + this.resourceCompartmentId = resourceCompartmentId; + this.conditions = conditions; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Rule to be be applied on. */ + @com.fasterxml.jackson.annotation.JsonProperty("basis") + private String basis; + + /** + * Rule to be be applied on. + * + * @param basis the value to set + * @return this builder + */ + public Builder basis(String basis) { + this.basis = basis; + this.__explicitlySet__.add("basis"); + return this; + } + /** Please provide the root compartmentId (TenancyId). */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Please provide the root compartmentId (TenancyId). + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Resource Compartment Id.Provide the compartmentId the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceCompartmentId") + private String resourceCompartmentId; + + /** + * Resource Compartment Id.Provide the compartmentId the resource belongs to. + * + * @param resourceCompartmentId the value to set + * @return this builder + */ + public Builder resourceCompartmentId(String resourceCompartmentId) { + this.resourceCompartmentId = resourceCompartmentId; + this.__explicitlySet__.add("resourceCompartmentId"); + return this; + } + /** Rule Conditions */ + @com.fasterxml.jackson.annotation.JsonProperty("conditions") + private java.util.List conditions; + + /** + * Rule Conditions + * + * @param conditions the value to set + * @return this builder + */ + public Builder conditions(java.util.List conditions) { + this.conditions = conditions; + this.__explicitlySet__.add("conditions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Rule build() { + Rule model = + new Rule( + this.basis, + this.compartmentId, + this.resourceCompartmentId, + this.conditions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Rule model) { + if (model.wasPropertyExplicitlySet("basis")) { + this.basis(model.getBasis()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceCompartmentId")) { + this.resourceCompartmentId(model.getResourceCompartmentId()); + } + if (model.wasPropertyExplicitlySet("conditions")) { + this.conditions(model.getConditions()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Rule to be be applied on. */ + @com.fasterxml.jackson.annotation.JsonProperty("basis") + private final String basis; + + /** + * Rule to be be applied on. + * + * @return the value + */ + public String getBasis() { + return basis; + } + + /** Please provide the root compartmentId (TenancyId). */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Please provide the root compartmentId (TenancyId). + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Resource Compartment Id.Provide the compartmentId the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceCompartmentId") + private final String resourceCompartmentId; + + /** + * Resource Compartment Id.Provide the compartmentId the resource belongs to. + * + * @return the value + */ + public String getResourceCompartmentId() { + return resourceCompartmentId; + } + + /** Rule Conditions */ + @com.fasterxml.jackson.annotation.JsonProperty("conditions") + private final java.util.List conditions; + + /** + * Rule Conditions + * + * @return the value + */ + public java.util.List getConditions() { + return conditions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Rule("); + sb.append("super=").append(super.toString()); + sb.append("basis=").append(String.valueOf(this.basis)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceCompartmentId=").append(String.valueOf(this.resourceCompartmentId)); + sb.append(", conditions=").append(String.valueOf(this.conditions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Rule)) { + return false; + } + + Rule other = (Rule) o; + return java.util.Objects.equals(this.basis, other.basis) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceCompartmentId, other.resourceCompartmentId) + && java.util.Objects.equals(this.conditions, other.conditions) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.basis == null ? 43 : this.basis.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceCompartmentId == null + ? 43 + : this.resourceCompartmentId.hashCode()); + result = (result * PRIME) + (this.conditions == null ? 43 : this.conditions.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Runbook.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Runbook.java new file mode 100644 index 00000000000..1edee2eb0fa --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Runbook.java @@ -0,0 +1,1054 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Runbook definition.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Runbook.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Runbook extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "type", + "runbookRelevance", + "operation", + "osType", + "platform", + "isDefault", + "estimatedTime", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "associations", + "compartmentId", + "resourceRegion", + "freeformTags", + "definedTags", + "systemTags" + }) + public Runbook( + String id, + String displayName, + String description, + Type type, + RunbookRelevance runbookRelevance, + String operation, + OsType osType, + String platform, + Boolean isDefault, + String estimatedTime, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Associations associations, + String compartmentId, + String resourceRegion, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.type = type; + this.runbookRelevance = runbookRelevance; + this.operation = operation; + this.osType = osType; + this.platform = platform; + this.isDefault = isDefault; + this.estimatedTime = estimatedTime; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.associations = associations; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The type of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * The type of the runbook. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** Type of runbook structure. */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookRelevance") + private RunbookRelevance runbookRelevance; + + /** + * Type of runbook structure. + * + * @param runbookRelevance the value to set + * @return this builder + */ + public Builder runbookRelevance(RunbookRelevance runbookRelevance) { + this.runbookRelevance = runbookRelevance; + this.__explicitlySet__.add("runbookRelevance"); + return this; + } + /** The lifecycle operation performed by the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("operation") + private String operation; + + /** + * The lifecycle operation performed by the task. + * + * @param operation the value to set + * @return this builder + */ + public Builder operation(String operation) { + this.operation = operation; + this.__explicitlySet__.add("operation"); + return this; + } + /** The OS type for the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("osType") + private OsType osType; + + /** + * The OS type for the runbook. + * + * @param osType the value to set + * @return this builder + */ + public Builder osType(OsType osType) { + this.osType = osType; + this.__explicitlySet__.add("osType"); + return this; + } + /** The platform of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private String platform; + + /** + * The platform of the runbook. + * + * @param platform the value to set + * @return this builder + */ + public Builder platform(String platform) { + this.platform = platform; + this.__explicitlySet__.add("platform"); + return this; + } + /** Is the runbook default? */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + /** + * Is the runbook default? + * + * @param isDefault the value to set + * @return this builder + */ + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + return this; + } + /** Estimated time to successfully complete the runbook execution */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTime") + private String estimatedTime; + + /** + * Estimated time to successfully complete the runbook execution + * + * @param estimatedTime the value to set + * @return this builder + */ + public Builder estimatedTime(String estimatedTime) { + this.estimatedTime = estimatedTime; + this.__explicitlySet__.add("estimatedTime"); + return this; + } + /** The current state of the Runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Runbook. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("associations") + private Associations associations; + + public Builder associations(Associations associations) { + this.associations = associations; + this.__explicitlySet__.add("associations"); + return this; + } + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Runbook build() { + Runbook model = + new Runbook( + this.id, + this.displayName, + this.description, + this.type, + this.runbookRelevance, + this.operation, + this.osType, + this.platform, + this.isDefault, + this.estimatedTime, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.associations, + this.compartmentId, + this.resourceRegion, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Runbook model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("runbookRelevance")) { + this.runbookRelevance(model.getRunbookRelevance()); + } + if (model.wasPropertyExplicitlySet("operation")) { + this.operation(model.getOperation()); + } + if (model.wasPropertyExplicitlySet("osType")) { + this.osType(model.getOsType()); + } + if (model.wasPropertyExplicitlySet("platform")) { + this.platform(model.getPlatform()); + } + if (model.wasPropertyExplicitlySet("isDefault")) { + this.isDefault(model.getIsDefault()); + } + if (model.wasPropertyExplicitlySet("estimatedTime")) { + this.estimatedTime(model.getEstimatedTime()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("associations")) { + this.associations(model.getAssociations()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The type of the runbook. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + UserDefined("USER_DEFINED"), + OracleDefined("ORACLE_DEFINED"), + SystemDefined("SYSTEM_DEFINED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** The type of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * The type of the runbook. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** Type of runbook structure. */ + public enum RunbookRelevance implements com.oracle.bmc.http.internal.BmcEnum { + ProductGroup("PRODUCT_GROUP"), + Product("PRODUCT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RunbookRelevance.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RunbookRelevance v : RunbookRelevance.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RunbookRelevance(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RunbookRelevance create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RunbookRelevance', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of runbook structure. */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookRelevance") + private final RunbookRelevance runbookRelevance; + + /** + * Type of runbook structure. + * + * @return the value + */ + public RunbookRelevance getRunbookRelevance() { + return runbookRelevance; + } + + /** The lifecycle operation performed by the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("operation") + private final String operation; + + /** + * The lifecycle operation performed by the task. + * + * @return the value + */ + public String getOperation() { + return operation; + } + + /** The OS type for the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("osType") + private final OsType osType; + + /** + * The OS type for the runbook. + * + * @return the value + */ + public OsType getOsType() { + return osType; + } + + /** The platform of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private final String platform; + + /** + * The platform of the runbook. + * + * @return the value + */ + public String getPlatform() { + return platform; + } + + /** Is the runbook default? */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private final Boolean isDefault; + + /** + * Is the runbook default? + * + * @return the value + */ + public Boolean getIsDefault() { + return isDefault; + } + + /** Estimated time to successfully complete the runbook execution */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTime") + private final String estimatedTime; + + /** + * Estimated time to successfully complete the runbook execution + * + * @return the value + */ + public String getEstimatedTime() { + return estimatedTime; + } + + /** The current state of the Runbook. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the Runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Runbook. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("associations") + private final Associations associations; + + public Associations getAssociations() { + return associations; + } + + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Runbook("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", runbookRelevance=").append(String.valueOf(this.runbookRelevance)); + sb.append(", operation=").append(String.valueOf(this.operation)); + sb.append(", osType=").append(String.valueOf(this.osType)); + sb.append(", platform=").append(String.valueOf(this.platform)); + sb.append(", isDefault=").append(String.valueOf(this.isDefault)); + sb.append(", estimatedTime=").append(String.valueOf(this.estimatedTime)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", associations=").append(String.valueOf(this.associations)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Runbook)) { + return false; + } + + Runbook other = (Runbook) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.runbookRelevance, other.runbookRelevance) + && java.util.Objects.equals(this.operation, other.operation) + && java.util.Objects.equals(this.osType, other.osType) + && java.util.Objects.equals(this.platform, other.platform) + && java.util.Objects.equals(this.isDefault, other.isDefault) + && java.util.Objects.equals(this.estimatedTime, other.estimatedTime) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.associations, other.associations) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.runbookRelevance == null ? 43 : this.runbookRelevance.hashCode()); + result = (result * PRIME) + (this.operation == null ? 43 : this.operation.hashCode()); + result = (result * PRIME) + (this.osType == null ? 43 : this.osType.hashCode()); + result = (result * PRIME) + (this.platform == null ? 43 : this.platform.hashCode()); + result = (result * PRIME) + (this.isDefault == null ? 43 : this.isDefault.hashCode()); + result = + (result * PRIME) + + (this.estimatedTime == null ? 43 : this.estimatedTime.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.associations == null ? 43 : this.associations.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RunbookCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RunbookCollection.java new file mode 100644 index 00000000000..1bcf440e626 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RunbookCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a runbook search. Contains boh RunbookSummary items and other information, such as + * metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RunbookCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RunbookCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public RunbookCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of runbooks. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of runbooks. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RunbookCollection build() { + RunbookCollection model = new RunbookCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RunbookCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of runbooks. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of runbooks. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RunbookCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RunbookCollection)) { + return false; + } + + RunbookCollection other = (RunbookCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RunbookSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RunbookSummary.java new file mode 100644 index 00000000000..8df9dcca9cd --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/RunbookSummary.java @@ -0,0 +1,891 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the Runbook.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = RunbookSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RunbookSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "type", + "runbookRelevance", + "operation", + "osType", + "platform", + "isDefault", + "estimatedTime", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "compartmentId", + "resourceRegion", + "freeformTags", + "definedTags", + "systemTags" + }) + public RunbookSummary( + String id, + String displayName, + String description, + Runbook.Type type, + Runbook.RunbookRelevance runbookRelevance, + String operation, + OsType osType, + String platform, + Boolean isDefault, + String estimatedTime, + Runbook.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String compartmentId, + String resourceRegion, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.type = type; + this.runbookRelevance = runbookRelevance; + this.operation = operation; + this.osType = osType; + this.platform = platform; + this.isDefault = isDefault; + this.estimatedTime = estimatedTime; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** The type of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Runbook.Type type; + + /** + * The type of the runbook. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Runbook.Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** Type of runbook structure. */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookRelevance") + private Runbook.RunbookRelevance runbookRelevance; + + /** + * Type of runbook structure. + * + * @param runbookRelevance the value to set + * @return this builder + */ + public Builder runbookRelevance(Runbook.RunbookRelevance runbookRelevance) { + this.runbookRelevance = runbookRelevance; + this.__explicitlySet__.add("runbookRelevance"); + return this; + } + /** The lifecycle operation performed by the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("operation") + private String operation; + + /** + * The lifecycle operation performed by the task. + * + * @param operation the value to set + * @return this builder + */ + public Builder operation(String operation) { + this.operation = operation; + this.__explicitlySet__.add("operation"); + return this; + } + /** The OS type for the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("osType") + private OsType osType; + + /** + * The OS type for the runbook. + * + * @param osType the value to set + * @return this builder + */ + public Builder osType(OsType osType) { + this.osType = osType; + this.__explicitlySet__.add("osType"); + return this; + } + /** The platform of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private String platform; + + /** + * The platform of the runbook. + * + * @param platform the value to set + * @return this builder + */ + public Builder platform(String platform) { + this.platform = platform; + this.__explicitlySet__.add("platform"); + return this; + } + /** Is the runbook default? */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + /** + * Is the runbook default? + * + * @param isDefault the value to set + * @return this builder + */ + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + return this; + } + /** Estimated time to successfully complete the runbook execution */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTime") + private String estimatedTime; + + /** + * Estimated time to successfully complete the runbook execution + * + * @param estimatedTime the value to set + * @return this builder + */ + public Builder estimatedTime(String estimatedTime) { + this.estimatedTime = estimatedTime; + this.__explicitlySet__.add("estimatedTime"); + return this; + } + /** The current state of the Runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Runbook.LifecycleState lifecycleState; + + /** + * The current state of the Runbook. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Runbook.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RunbookSummary build() { + RunbookSummary model = + new RunbookSummary( + this.id, + this.displayName, + this.description, + this.type, + this.runbookRelevance, + this.operation, + this.osType, + this.platform, + this.isDefault, + this.estimatedTime, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.compartmentId, + this.resourceRegion, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RunbookSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("runbookRelevance")) { + this.runbookRelevance(model.getRunbookRelevance()); + } + if (model.wasPropertyExplicitlySet("operation")) { + this.operation(model.getOperation()); + } + if (model.wasPropertyExplicitlySet("osType")) { + this.osType(model.getOsType()); + } + if (model.wasPropertyExplicitlySet("platform")) { + this.platform(model.getPlatform()); + } + if (model.wasPropertyExplicitlySet("isDefault")) { + this.isDefault(model.getIsDefault()); + } + if (model.wasPropertyExplicitlySet("estimatedTime")) { + this.estimatedTime(model.getEstimatedTime()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The type of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Runbook.Type type; + + /** + * The type of the runbook. + * + * @return the value + */ + public Runbook.Type getType() { + return type; + } + + /** Type of runbook structure. */ + @com.fasterxml.jackson.annotation.JsonProperty("runbookRelevance") + private final Runbook.RunbookRelevance runbookRelevance; + + /** + * Type of runbook structure. + * + * @return the value + */ + public Runbook.RunbookRelevance getRunbookRelevance() { + return runbookRelevance; + } + + /** The lifecycle operation performed by the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("operation") + private final String operation; + + /** + * The lifecycle operation performed by the task. + * + * @return the value + */ + public String getOperation() { + return operation; + } + + /** The OS type for the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("osType") + private final OsType osType; + + /** + * The OS type for the runbook. + * + * @return the value + */ + public OsType getOsType() { + return osType; + } + + /** The platform of the runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private final String platform; + + /** + * The platform of the runbook. + * + * @return the value + */ + public String getPlatform() { + return platform; + } + + /** Is the runbook default? */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private final Boolean isDefault; + + /** + * Is the runbook default? + * + * @return the value + */ + public Boolean getIsDefault() { + return isDefault; + } + + /** Estimated time to successfully complete the runbook execution */ + @com.fasterxml.jackson.annotation.JsonProperty("estimatedTime") + private final String estimatedTime; + + /** + * Estimated time to successfully complete the runbook execution + * + * @return the value + */ + public String getEstimatedTime() { + return estimatedTime; + } + + /** The current state of the Runbook. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Runbook.LifecycleState lifecycleState; + + /** + * The current state of the Runbook. + * + * @return the value + */ + public Runbook.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RunbookSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", runbookRelevance=").append(String.valueOf(this.runbookRelevance)); + sb.append(", operation=").append(String.valueOf(this.operation)); + sb.append(", osType=").append(String.valueOf(this.osType)); + sb.append(", platform=").append(String.valueOf(this.platform)); + sb.append(", isDefault=").append(String.valueOf(this.isDefault)); + sb.append(", estimatedTime=").append(String.valueOf(this.estimatedTime)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RunbookSummary)) { + return false; + } + + RunbookSummary other = (RunbookSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.runbookRelevance, other.runbookRelevance) + && java.util.Objects.equals(this.operation, other.operation) + && java.util.Objects.equals(this.osType, other.osType) + && java.util.Objects.equals(this.platform, other.platform) + && java.util.Objects.equals(this.isDefault, other.isDefault) + && java.util.Objects.equals(this.estimatedTime, other.estimatedTime) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.runbookRelevance == null ? 43 : this.runbookRelevance.hashCode()); + result = (result * PRIME) + (this.operation == null ? 43 : this.operation.hashCode()); + result = (result * PRIME) + (this.osType == null ? 43 : this.osType.hashCode()); + result = (result * PRIME) + (this.platform == null ? 43 : this.platform.hashCode()); + result = (result * PRIME) + (this.isDefault == null ? 43 : this.isDefault.hashCode()); + result = + (result * PRIME) + + (this.estimatedTime == null ? 43 : this.estimatedTime.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Schedule.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Schedule.java new file mode 100644 index 00000000000..acf04211306 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Schedule.java @@ -0,0 +1,341 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Schedule Information.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Schedule.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Schedule extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "type", + "executionStartdate", + "maintenanceWindowId", + "recurrences", + "duration" + }) + public Schedule( + Type type, + java.util.Date executionStartdate, + String maintenanceWindowId, + String recurrences, + String duration) { + super(); + this.type = type; + this.executionStartdate = executionStartdate; + this.maintenanceWindowId = maintenanceWindowId; + this.recurrences = recurrences; + this.duration = duration; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Schedule Type */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Schedule Type + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** Start Date for the schedule. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("executionStartdate") + private java.util.Date executionStartdate; + + /** + * Start Date for the schedule. An RFC3339 formatted datetime string + * + * @param executionStartdate the value to set + * @return this builder + */ + public Builder executionStartdate(java.util.Date executionStartdate) { + this.executionStartdate = executionStartdate; + this.__explicitlySet__.add("executionStartdate"); + return this; + } + /** Provide MaintenanceWindowId if Schedule Type is Maintenance Window */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowId") + private String maintenanceWindowId; + + /** + * Provide MaintenanceWindowId if Schedule Type is Maintenance Window + * + * @param maintenanceWindowId the value to set + * @return this builder + */ + public Builder maintenanceWindowId(String maintenanceWindowId) { + this.maintenanceWindowId = maintenanceWindowId; + this.__explicitlySet__.add("maintenanceWindowId"); + return this; + } + /** Recurrence rule specification if Schedule Type is Custom and Recurring */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrences") + private String recurrences; + + /** + * Recurrence rule specification if Schedule Type is Custom and Recurring + * + * @param recurrences the value to set + * @return this builder + */ + public Builder recurrences(String recurrences) { + this.recurrences = recurrences; + this.__explicitlySet__.add("recurrences"); + return this; + } + /** Duration if schedule type is Custom */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private String duration; + + /** + * Duration if schedule type is Custom + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(String duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Schedule build() { + Schedule model = + new Schedule( + this.type, + this.executionStartdate, + this.maintenanceWindowId, + this.recurrences, + this.duration); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Schedule model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("executionStartdate")) { + this.executionStartdate(model.getExecutionStartdate()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindowId")) { + this.maintenanceWindowId(model.getMaintenanceWindowId()); + } + if (model.wasPropertyExplicitlySet("recurrences")) { + this.recurrences(model.getRecurrences()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Schedule Type */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Custom("CUSTOM"), + MaintenanceWindow("MAINTENANCE_WINDOW"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** Schedule Type */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Schedule Type + * + * @return the value + */ + public Type getType() { + return type; + } + + /** Start Date for the schedule. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("executionStartdate") + private final java.util.Date executionStartdate; + + /** + * Start Date for the schedule. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getExecutionStartdate() { + return executionStartdate; + } + + /** Provide MaintenanceWindowId if Schedule Type is Maintenance Window */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowId") + private final String maintenanceWindowId; + + /** + * Provide MaintenanceWindowId if Schedule Type is Maintenance Window + * + * @return the value + */ + public String getMaintenanceWindowId() { + return maintenanceWindowId; + } + + /** Recurrence rule specification if Schedule Type is Custom and Recurring */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrences") + private final String recurrences; + + /** + * Recurrence rule specification if Schedule Type is Custom and Recurring + * + * @return the value + */ + public String getRecurrences() { + return recurrences; + } + + /** Duration if schedule type is Custom */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final String duration; + + /** + * Duration if schedule type is Custom + * + * @return the value + */ + public String getDuration() { + return duration; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Schedule("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", executionStartdate=").append(String.valueOf(this.executionStartdate)); + sb.append(", maintenanceWindowId=").append(String.valueOf(this.maintenanceWindowId)); + sb.append(", recurrences=").append(String.valueOf(this.recurrences)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Schedule)) { + return false; + } + + Schedule other = (Schedule) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.executionStartdate, other.executionStartdate) + && java.util.Objects.equals(this.maintenanceWindowId, other.maintenanceWindowId) + && java.util.Objects.equals(this.recurrences, other.recurrences) + && java.util.Objects.equals(this.duration, other.duration) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.executionStartdate == null + ? 43 + : this.executionStartdate.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindowId == null + ? 43 + : this.maintenanceWindowId.hashCode()); + result = (result * PRIME) + (this.recurrences == null ? 43 : this.recurrences.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ScheduledFleetCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ScheduledFleetCollection.java new file mode 100644 index 00000000000..59afb000756 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ScheduledFleetCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a Scheduled ActionGroup search.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScheduledFleetCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScheduledFleetCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public ScheduledFleetCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of ScheduledFleets. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of ScheduledFleets. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScheduledFleetCollection build() { + ScheduledFleetCollection model = new ScheduledFleetCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScheduledFleetCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of ScheduledFleets. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of ScheduledFleets. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScheduledFleetCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScheduledFleetCollection)) { + return false; + } + + ScheduledFleetCollection other = (ScheduledFleetCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ScheduledFleetSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ScheduledFleetSummary.java new file mode 100644 index 00000000000..6b2055463f5 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ScheduledFleetSummary.java @@ -0,0 +1,444 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of Fleet part of the Schedule.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScheduledFleetSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScheduledFleetSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "tenancyId", + "displayName", + "countOfAffectedResources", + "countOfAffectedTargets", + "actionGroupTypes", + "applicationTypes", + "systemTags" + }) + public ScheduledFleetSummary( + String id, + String tenancyId, + String displayName, + Integer countOfAffectedResources, + Integer countOfAffectedTargets, + java.util.List actionGroupTypes, + java.util.List applicationTypes, + java.util.Map> systemTags) { + super(); + this.id = id; + this.tenancyId = tenancyId; + this.displayName = displayName; + this.countOfAffectedResources = countOfAffectedResources; + this.countOfAffectedTargets = countOfAffectedTargets; + this.actionGroupTypes = actionGroupTypes; + this.applicationTypes = applicationTypes; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @param tenancyId the value to set + * @return this builder + */ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Count of Resources affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedResources") + private Integer countOfAffectedResources; + + /** + * Count of Resources affected by the Schedule + * + * @param countOfAffectedResources the value to set + * @return this builder + */ + public Builder countOfAffectedResources(Integer countOfAffectedResources) { + this.countOfAffectedResources = countOfAffectedResources; + this.__explicitlySet__.add("countOfAffectedResources"); + return this; + } + /** Count of Targets affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedTargets") + private Integer countOfAffectedTargets; + + /** + * Count of Targets affected by the Schedule + * + * @param countOfAffectedTargets the value to set + * @return this builder + */ + public Builder countOfAffectedTargets(Integer countOfAffectedTargets) { + this.countOfAffectedTargets = countOfAffectedTargets; + this.__explicitlySet__.add("countOfAffectedTargets"); + return this; + } + /** All ActionGroup Types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroupTypes") + private java.util.List actionGroupTypes; + + /** + * All ActionGroup Types part of the schedule. + * + * @param actionGroupTypes the value to set + * @return this builder + */ + public Builder actionGroupTypes(java.util.List actionGroupTypes) { + this.actionGroupTypes = actionGroupTypes; + this.__explicitlySet__.add("actionGroupTypes"); + return this; + } + /** All application types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationTypes") + private java.util.List applicationTypes; + + /** + * All application types part of the schedule. + * + * @param applicationTypes the value to set + * @return this builder + */ + public Builder applicationTypes(java.util.List applicationTypes) { + this.applicationTypes = applicationTypes; + this.__explicitlySet__.add("applicationTypes"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScheduledFleetSummary build() { + ScheduledFleetSummary model = + new ScheduledFleetSummary( + this.id, + this.tenancyId, + this.displayName, + this.countOfAffectedResources, + this.countOfAffectedTargets, + this.actionGroupTypes, + this.applicationTypes, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScheduledFleetSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedResources")) { + this.countOfAffectedResources(model.getCountOfAffectedResources()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedTargets")) { + this.countOfAffectedTargets(model.getCountOfAffectedTargets()); + } + if (model.wasPropertyExplicitlySet("actionGroupTypes")) { + this.actionGroupTypes(model.getActionGroupTypes()); + } + if (model.wasPropertyExplicitlySet("applicationTypes")) { + this.applicationTypes(model.getApplicationTypes()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @return the value + */ + public String getTenancyId() { + return tenancyId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Count of Resources affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedResources") + private final Integer countOfAffectedResources; + + /** + * Count of Resources affected by the Schedule + * + * @return the value + */ + public Integer getCountOfAffectedResources() { + return countOfAffectedResources; + } + + /** Count of Targets affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedTargets") + private final Integer countOfAffectedTargets; + + /** + * Count of Targets affected by the Schedule + * + * @return the value + */ + public Integer getCountOfAffectedTargets() { + return countOfAffectedTargets; + } + + /** All ActionGroup Types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroupTypes") + private final java.util.List actionGroupTypes; + + /** + * All ActionGroup Types part of the schedule. + * + * @return the value + */ + public java.util.List getActionGroupTypes() { + return actionGroupTypes; + } + + /** All application types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationTypes") + private final java.util.List applicationTypes; + + /** + * All application types part of the schedule. + * + * @return the value + */ + public java.util.List getApplicationTypes() { + return applicationTypes; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScheduledFleetSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", countOfAffectedResources=") + .append(String.valueOf(this.countOfAffectedResources)); + sb.append(", countOfAffectedTargets=").append(String.valueOf(this.countOfAffectedTargets)); + sb.append(", actionGroupTypes=").append(String.valueOf(this.actionGroupTypes)); + sb.append(", applicationTypes=").append(String.valueOf(this.applicationTypes)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScheduledFleetSummary)) { + return false; + } + + ScheduledFleetSummary other = (ScheduledFleetSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.countOfAffectedResources, other.countOfAffectedResources) + && java.util.Objects.equals( + this.countOfAffectedTargets, other.countOfAffectedTargets) + && java.util.Objects.equals(this.actionGroupTypes, other.actionGroupTypes) + && java.util.Objects.equals(this.applicationTypes, other.applicationTypes) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedResources == null + ? 43 + : this.countOfAffectedResources.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedTargets == null + ? 43 + : this.countOfAffectedTargets.hashCode()); + result = + (result * PRIME) + + (this.actionGroupTypes == null ? 43 : this.actionGroupTypes.hashCode()); + result = + (result * PRIME) + + (this.applicationTypes == null ? 43 : this.applicationTypes.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerDefinition.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerDefinition.java new file mode 100644 index 00000000000..6290e3fb669 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerDefinition.java @@ -0,0 +1,1150 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Definition of a Schedule.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SchedulerDefinition.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulerDefinition + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "resourceRegion", + "timeCreated", + "timeUpdated", + "timeOfNextRun", + "activityInitiationCutOff", + "schedule", + "countOfAffectedActionGroups", + "countOfAffectedResources", + "countOfAffectedTargets", + "actionGroupTypes", + "applicationTypes", + "products", + "lifecycleOperations", + "actionGroups", + "runBooks", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public SchedulerDefinition( + String id, + String displayName, + String description, + String compartmentId, + String resourceRegion, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeOfNextRun, + Integer activityInitiationCutOff, + Schedule schedule, + Integer countOfAffectedActionGroups, + Integer countOfAffectedResources, + Integer countOfAffectedTargets, + java.util.List actionGroupTypes, + java.util.List applicationTypes, + java.util.List products, + java.util.List lifecycleOperations, + java.util.List actionGroups, + java.util.List runBooks, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeOfNextRun = timeOfNextRun; + this.activityInitiationCutOff = activityInitiationCutOff; + this.schedule = schedule; + this.countOfAffectedActionGroups = countOfAffectedActionGroups; + this.countOfAffectedResources = countOfAffectedResources; + this.countOfAffectedTargets = countOfAffectedTargets; + this.actionGroupTypes = actionGroupTypes; + this.applicationTypes = applicationTypes; + this.products = products; + this.lifecycleOperations = lifecycleOperations; + this.actionGroups = actionGroups; + this.runBooks = runBooks; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Scheduled date for the next run of the Job. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfNextRun") + private java.util.Date timeOfNextRun; + + /** + * Scheduled date for the next run of the Job. + * + * @param timeOfNextRun the value to set + * @return this builder + */ + public Builder timeOfNextRun(java.util.Date timeOfNextRun) { + this.timeOfNextRun = timeOfNextRun; + this.__explicitlySet__.add("timeOfNextRun"); + return this; + } + /** Activity Initiation Cut Off */ + @com.fasterxml.jackson.annotation.JsonProperty("activityInitiationCutOff") + private Integer activityInitiationCutOff; + + /** + * Activity Initiation Cut Off + * + * @param activityInitiationCutOff the value to set + * @return this builder + */ + public Builder activityInitiationCutOff(Integer activityInitiationCutOff) { + this.activityInitiationCutOff = activityInitiationCutOff; + this.__explicitlySet__.add("activityInitiationCutOff"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private Schedule schedule; + + public Builder schedule(Schedule schedule) { + this.schedule = schedule; + this.__explicitlySet__.add("schedule"); + return this; + } + /** Count of Action Groups affected by the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedActionGroups") + private Integer countOfAffectedActionGroups; + + /** + * Count of Action Groups affected by the Schedule. + * + * @param countOfAffectedActionGroups the value to set + * @return this builder + */ + public Builder countOfAffectedActionGroups(Integer countOfAffectedActionGroups) { + this.countOfAffectedActionGroups = countOfAffectedActionGroups; + this.__explicitlySet__.add("countOfAffectedActionGroups"); + return this; + } + /** Count of Resources affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedResources") + private Integer countOfAffectedResources; + + /** + * Count of Resources affected by the Schedule + * + * @param countOfAffectedResources the value to set + * @return this builder + */ + public Builder countOfAffectedResources(Integer countOfAffectedResources) { + this.countOfAffectedResources = countOfAffectedResources; + this.__explicitlySet__.add("countOfAffectedResources"); + return this; + } + /** Count of Targets affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedTargets") + private Integer countOfAffectedTargets; + + /** + * Count of Targets affected by the Schedule + * + * @param countOfAffectedTargets the value to set + * @return this builder + */ + public Builder countOfAffectedTargets(Integer countOfAffectedTargets) { + this.countOfAffectedTargets = countOfAffectedTargets; + this.__explicitlySet__.add("countOfAffectedTargets"); + return this; + } + /** All ActionGroup Types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroupTypes") + private java.util.List actionGroupTypes; + + /** + * All ActionGroup Types part of the schedule. + * + * @param actionGroupTypes the value to set + * @return this builder + */ + public Builder actionGroupTypes(java.util.List actionGroupTypes) { + this.actionGroupTypes = actionGroupTypes; + this.__explicitlySet__.add("actionGroupTypes"); + return this; + } + /** All application types part of the schedule for ENVIRONMENT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationTypes") + private java.util.List applicationTypes; + + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * + * @param applicationTypes the value to set + * @return this builder + */ + public Builder applicationTypes(java.util.List applicationTypes) { + this.applicationTypes = applicationTypes; + this.__explicitlySet__.add("applicationTypes"); + return this; + } + /** All products part of the schedule for PRODUCT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * All products part of the schedule for PRODUCT ActionGroup Type. + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + /** All LifeCycle Operations part of the schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperations") + private java.util.List lifecycleOperations; + + /** + * All LifeCycle Operations part of the schedule + * + * @param lifecycleOperations the value to set + * @return this builder + */ + public Builder lifecycleOperations(java.util.List lifecycleOperations) { + this.lifecycleOperations = lifecycleOperations; + this.__explicitlySet__.add("lifecycleOperations"); + return this; + } + /** Action Groups associated with the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroups") + private java.util.List actionGroups; + + /** + * Action Groups associated with the Schedule. + * + * @param actionGroups the value to set + * @return this builder + */ + public Builder actionGroups(java.util.List actionGroups) { + this.actionGroups = actionGroups; + this.__explicitlySet__.add("actionGroups"); + return this; + } + /** Runbooks. */ + @com.fasterxml.jackson.annotation.JsonProperty("runBooks") + private java.util.List runBooks; + + /** + * Runbooks. + * + * @param runBooks the value to set + * @return this builder + */ + public Builder runBooks(java.util.List runBooks) { + this.runBooks = runBooks; + this.__explicitlySet__.add("runBooks"); + return this; + } + /** The current state of the SchedulerDefinition. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the SchedulerDefinition. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchedulerDefinition build() { + SchedulerDefinition model = + new SchedulerDefinition( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.resourceRegion, + this.timeCreated, + this.timeUpdated, + this.timeOfNextRun, + this.activityInitiationCutOff, + this.schedule, + this.countOfAffectedActionGroups, + this.countOfAffectedResources, + this.countOfAffectedTargets, + this.actionGroupTypes, + this.applicationTypes, + this.products, + this.lifecycleOperations, + this.actionGroups, + this.runBooks, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulerDefinition model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeOfNextRun")) { + this.timeOfNextRun(model.getTimeOfNextRun()); + } + if (model.wasPropertyExplicitlySet("activityInitiationCutOff")) { + this.activityInitiationCutOff(model.getActivityInitiationCutOff()); + } + if (model.wasPropertyExplicitlySet("schedule")) { + this.schedule(model.getSchedule()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedActionGroups")) { + this.countOfAffectedActionGroups(model.getCountOfAffectedActionGroups()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedResources")) { + this.countOfAffectedResources(model.getCountOfAffectedResources()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedTargets")) { + this.countOfAffectedTargets(model.getCountOfAffectedTargets()); + } + if (model.wasPropertyExplicitlySet("actionGroupTypes")) { + this.actionGroupTypes(model.getActionGroupTypes()); + } + if (model.wasPropertyExplicitlySet("applicationTypes")) { + this.applicationTypes(model.getApplicationTypes()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + if (model.wasPropertyExplicitlySet("lifecycleOperations")) { + this.lifecycleOperations(model.getLifecycleOperations()); + } + if (model.wasPropertyExplicitlySet("actionGroups")) { + this.actionGroups(model.getActionGroups()); + } + if (model.wasPropertyExplicitlySet("runBooks")) { + this.runBooks(model.getRunBooks()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Scheduled date for the next run of the Job. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfNextRun") + private final java.util.Date timeOfNextRun; + + /** + * Scheduled date for the next run of the Job. + * + * @return the value + */ + public java.util.Date getTimeOfNextRun() { + return timeOfNextRun; + } + + /** Activity Initiation Cut Off */ + @com.fasterxml.jackson.annotation.JsonProperty("activityInitiationCutOff") + private final Integer activityInitiationCutOff; + + /** + * Activity Initiation Cut Off + * + * @return the value + */ + public Integer getActivityInitiationCutOff() { + return activityInitiationCutOff; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private final Schedule schedule; + + public Schedule getSchedule() { + return schedule; + } + + /** Count of Action Groups affected by the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedActionGroups") + private final Integer countOfAffectedActionGroups; + + /** + * Count of Action Groups affected by the Schedule. + * + * @return the value + */ + public Integer getCountOfAffectedActionGroups() { + return countOfAffectedActionGroups; + } + + /** Count of Resources affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedResources") + private final Integer countOfAffectedResources; + + /** + * Count of Resources affected by the Schedule + * + * @return the value + */ + public Integer getCountOfAffectedResources() { + return countOfAffectedResources; + } + + /** Count of Targets affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedTargets") + private final Integer countOfAffectedTargets; + + /** + * Count of Targets affected by the Schedule + * + * @return the value + */ + public Integer getCountOfAffectedTargets() { + return countOfAffectedTargets; + } + + /** All ActionGroup Types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroupTypes") + private final java.util.List actionGroupTypes; + + /** + * All ActionGroup Types part of the schedule. + * + * @return the value + */ + public java.util.List getActionGroupTypes() { + return actionGroupTypes; + } + + /** All application types part of the schedule for ENVIRONMENT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationTypes") + private final java.util.List applicationTypes; + + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * + * @return the value + */ + public java.util.List getApplicationTypes() { + return applicationTypes; + } + + /** All products part of the schedule for PRODUCT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * All products part of the schedule for PRODUCT ActionGroup Type. + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + /** All LifeCycle Operations part of the schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperations") + private final java.util.List lifecycleOperations; + + /** + * All LifeCycle Operations part of the schedule + * + * @return the value + */ + public java.util.List getLifecycleOperations() { + return lifecycleOperations; + } + + /** Action Groups associated with the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroups") + private final java.util.List actionGroups; + + /** + * Action Groups associated with the Schedule. + * + * @return the value + */ + public java.util.List getActionGroups() { + return actionGroups; + } + + /** Runbooks. */ + @com.fasterxml.jackson.annotation.JsonProperty("runBooks") + private final java.util.List runBooks; + + /** + * Runbooks. + * + * @return the value + */ + public java.util.List getRunBooks() { + return runBooks; + } + + /** The current state of the SchedulerDefinition. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + Inactive("INACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the SchedulerDefinition. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the SchedulerDefinition. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchedulerDefinition("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeOfNextRun=").append(String.valueOf(this.timeOfNextRun)); + sb.append(", activityInitiationCutOff=") + .append(String.valueOf(this.activityInitiationCutOff)); + sb.append(", schedule=").append(String.valueOf(this.schedule)); + sb.append(", countOfAffectedActionGroups=") + .append(String.valueOf(this.countOfAffectedActionGroups)); + sb.append(", countOfAffectedResources=") + .append(String.valueOf(this.countOfAffectedResources)); + sb.append(", countOfAffectedTargets=").append(String.valueOf(this.countOfAffectedTargets)); + sb.append(", actionGroupTypes=").append(String.valueOf(this.actionGroupTypes)); + sb.append(", applicationTypes=").append(String.valueOf(this.applicationTypes)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(", lifecycleOperations=").append(String.valueOf(this.lifecycleOperations)); + sb.append(", actionGroups=").append(String.valueOf(this.actionGroups)); + sb.append(", runBooks=").append(String.valueOf(this.runBooks)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchedulerDefinition)) { + return false; + } + + SchedulerDefinition other = (SchedulerDefinition) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeOfNextRun, other.timeOfNextRun) + && java.util.Objects.equals( + this.activityInitiationCutOff, other.activityInitiationCutOff) + && java.util.Objects.equals(this.schedule, other.schedule) + && java.util.Objects.equals( + this.countOfAffectedActionGroups, other.countOfAffectedActionGroups) + && java.util.Objects.equals( + this.countOfAffectedResources, other.countOfAffectedResources) + && java.util.Objects.equals( + this.countOfAffectedTargets, other.countOfAffectedTargets) + && java.util.Objects.equals(this.actionGroupTypes, other.actionGroupTypes) + && java.util.Objects.equals(this.applicationTypes, other.applicationTypes) + && java.util.Objects.equals(this.products, other.products) + && java.util.Objects.equals(this.lifecycleOperations, other.lifecycleOperations) + && java.util.Objects.equals(this.actionGroups, other.actionGroups) + && java.util.Objects.equals(this.runBooks, other.runBooks) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeOfNextRun == null ? 43 : this.timeOfNextRun.hashCode()); + result = + (result * PRIME) + + (this.activityInitiationCutOff == null + ? 43 + : this.activityInitiationCutOff.hashCode()); + result = (result * PRIME) + (this.schedule == null ? 43 : this.schedule.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedActionGroups == null + ? 43 + : this.countOfAffectedActionGroups.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedResources == null + ? 43 + : this.countOfAffectedResources.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedTargets == null + ? 43 + : this.countOfAffectedTargets.hashCode()); + result = + (result * PRIME) + + (this.actionGroupTypes == null ? 43 : this.actionGroupTypes.hashCode()); + result = + (result * PRIME) + + (this.applicationTypes == null ? 43 : this.applicationTypes.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + result = + (result * PRIME) + + (this.lifecycleOperations == null + ? 43 + : this.lifecycleOperations.hashCode()); + result = (result * PRIME) + (this.actionGroups == null ? 43 : this.actionGroups.hashCode()); + result = (result * PRIME) + (this.runBooks == null ? 43 : this.runBooks.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerDefinitionCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerDefinitionCollection.java new file mode 100644 index 00000000000..c31129258b3 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerDefinitionCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a schedulerDefinition search. Contains boh SchedulerDefinitionSummary items and other + * information, such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SchedulerDefinitionCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulerDefinitionCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SchedulerDefinitionCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of schedulerDefinitions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of schedulerDefinitions. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchedulerDefinitionCollection build() { + SchedulerDefinitionCollection model = new SchedulerDefinitionCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulerDefinitionCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of schedulerDefinitions. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of schedulerDefinitions. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchedulerDefinitionCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchedulerDefinitionCollection)) { + return false; + } + + SchedulerDefinitionCollection other = (SchedulerDefinitionCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerDefinitionSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerDefinitionSummary.java new file mode 100644 index 00000000000..af88f4f568d --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerDefinitionSummary.java @@ -0,0 +1,979 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the SchedulerDefinition.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SchedulerDefinitionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulerDefinitionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "resourceRegion", + "timeCreated", + "timeUpdated", + "timeOfNextRun", + "schedule", + "countOfAffectedActionGroups", + "countOfAffectedResources", + "countOfAffectedTargets", + "actionGroupTypes", + "applicationTypes", + "products", + "lifecycleOperations", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public SchedulerDefinitionSummary( + String id, + String displayName, + String description, + String compartmentId, + String resourceRegion, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeOfNextRun, + Schedule schedule, + Integer countOfAffectedActionGroups, + Integer countOfAffectedResources, + Integer countOfAffectedTargets, + java.util.List actionGroupTypes, + java.util.List applicationTypes, + java.util.List products, + java.util.List lifecycleOperations, + SchedulerDefinition.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeOfNextRun = timeOfNextRun; + this.schedule = schedule; + this.countOfAffectedActionGroups = countOfAffectedActionGroups; + this.countOfAffectedResources = countOfAffectedResources; + this.countOfAffectedTargets = countOfAffectedTargets; + this.actionGroupTypes = actionGroupTypes; + this.applicationTypes = applicationTypes; + this.products = products; + this.lifecycleOperations = lifecycleOperations; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Scheduled date for the next run of the Job. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfNextRun") + private java.util.Date timeOfNextRun; + + /** + * Scheduled date for the next run of the Job. + * + * @param timeOfNextRun the value to set + * @return this builder + */ + public Builder timeOfNextRun(java.util.Date timeOfNextRun) { + this.timeOfNextRun = timeOfNextRun; + this.__explicitlySet__.add("timeOfNextRun"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private Schedule schedule; + + public Builder schedule(Schedule schedule) { + this.schedule = schedule; + this.__explicitlySet__.add("schedule"); + return this; + } + /** Count of Action Groups affected by the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedActionGroups") + private Integer countOfAffectedActionGroups; + + /** + * Count of Action Groups affected by the Schedule. + * + * @param countOfAffectedActionGroups the value to set + * @return this builder + */ + public Builder countOfAffectedActionGroups(Integer countOfAffectedActionGroups) { + this.countOfAffectedActionGroups = countOfAffectedActionGroups; + this.__explicitlySet__.add("countOfAffectedActionGroups"); + return this; + } + /** Count of Resources affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedResources") + private Integer countOfAffectedResources; + + /** + * Count of Resources affected by the Schedule + * + * @param countOfAffectedResources the value to set + * @return this builder + */ + public Builder countOfAffectedResources(Integer countOfAffectedResources) { + this.countOfAffectedResources = countOfAffectedResources; + this.__explicitlySet__.add("countOfAffectedResources"); + return this; + } + /** Count of Targets affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedTargets") + private Integer countOfAffectedTargets; + + /** + * Count of Targets affected by the Schedule + * + * @param countOfAffectedTargets the value to set + * @return this builder + */ + public Builder countOfAffectedTargets(Integer countOfAffectedTargets) { + this.countOfAffectedTargets = countOfAffectedTargets; + this.__explicitlySet__.add("countOfAffectedTargets"); + return this; + } + /** All ActionGroup Types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroupTypes") + private java.util.List actionGroupTypes; + + /** + * All ActionGroup Types part of the schedule. + * + * @param actionGroupTypes the value to set + * @return this builder + */ + public Builder actionGroupTypes(java.util.List actionGroupTypes) { + this.actionGroupTypes = actionGroupTypes; + this.__explicitlySet__.add("actionGroupTypes"); + return this; + } + /** All application types part of the schedule for ENVIRONMENT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationTypes") + private java.util.List applicationTypes; + + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * + * @param applicationTypes the value to set + * @return this builder + */ + public Builder applicationTypes(java.util.List applicationTypes) { + this.applicationTypes = applicationTypes; + this.__explicitlySet__.add("applicationTypes"); + return this; + } + /** All products part of the schedule for PRODUCT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * All products part of the schedule for PRODUCT ActionGroup Type. + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + /** All LifeCycle Operations part of the schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperations") + private java.util.List lifecycleOperations; + + /** + * All LifeCycle Operations part of the schedule + * + * @param lifecycleOperations the value to set + * @return this builder + */ + public Builder lifecycleOperations(java.util.List lifecycleOperations) { + this.lifecycleOperations = lifecycleOperations; + this.__explicitlySet__.add("lifecycleOperations"); + return this; + } + /** The current state of the SchedulerDefinition. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private SchedulerDefinition.LifecycleState lifecycleState; + + /** + * The current state of the SchedulerDefinition. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(SchedulerDefinition.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchedulerDefinitionSummary build() { + SchedulerDefinitionSummary model = + new SchedulerDefinitionSummary( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.resourceRegion, + this.timeCreated, + this.timeUpdated, + this.timeOfNextRun, + this.schedule, + this.countOfAffectedActionGroups, + this.countOfAffectedResources, + this.countOfAffectedTargets, + this.actionGroupTypes, + this.applicationTypes, + this.products, + this.lifecycleOperations, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulerDefinitionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeOfNextRun")) { + this.timeOfNextRun(model.getTimeOfNextRun()); + } + if (model.wasPropertyExplicitlySet("schedule")) { + this.schedule(model.getSchedule()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedActionGroups")) { + this.countOfAffectedActionGroups(model.getCountOfAffectedActionGroups()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedResources")) { + this.countOfAffectedResources(model.getCountOfAffectedResources()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedTargets")) { + this.countOfAffectedTargets(model.getCountOfAffectedTargets()); + } + if (model.wasPropertyExplicitlySet("actionGroupTypes")) { + this.actionGroupTypes(model.getActionGroupTypes()); + } + if (model.wasPropertyExplicitlySet("applicationTypes")) { + this.applicationTypes(model.getApplicationTypes()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + if (model.wasPropertyExplicitlySet("lifecycleOperations")) { + this.lifecycleOperations(model.getLifecycleOperations()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Scheduled date for the next run of the Job. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfNextRun") + private final java.util.Date timeOfNextRun; + + /** + * Scheduled date for the next run of the Job. + * + * @return the value + */ + public java.util.Date getTimeOfNextRun() { + return timeOfNextRun; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private final Schedule schedule; + + public Schedule getSchedule() { + return schedule; + } + + /** Count of Action Groups affected by the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedActionGroups") + private final Integer countOfAffectedActionGroups; + + /** + * Count of Action Groups affected by the Schedule. + * + * @return the value + */ + public Integer getCountOfAffectedActionGroups() { + return countOfAffectedActionGroups; + } + + /** Count of Resources affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedResources") + private final Integer countOfAffectedResources; + + /** + * Count of Resources affected by the Schedule + * + * @return the value + */ + public Integer getCountOfAffectedResources() { + return countOfAffectedResources; + } + + /** Count of Targets affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedTargets") + private final Integer countOfAffectedTargets; + + /** + * Count of Targets affected by the Schedule + * + * @return the value + */ + public Integer getCountOfAffectedTargets() { + return countOfAffectedTargets; + } + + /** All ActionGroup Types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroupTypes") + private final java.util.List actionGroupTypes; + + /** + * All ActionGroup Types part of the schedule. + * + * @return the value + */ + public java.util.List getActionGroupTypes() { + return actionGroupTypes; + } + + /** All application types part of the schedule for ENVIRONMENT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationTypes") + private final java.util.List applicationTypes; + + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * + * @return the value + */ + public java.util.List getApplicationTypes() { + return applicationTypes; + } + + /** All products part of the schedule for PRODUCT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * All products part of the schedule for PRODUCT ActionGroup Type. + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + /** All LifeCycle Operations part of the schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperations") + private final java.util.List lifecycleOperations; + + /** + * All LifeCycle Operations part of the schedule + * + * @return the value + */ + public java.util.List getLifecycleOperations() { + return lifecycleOperations; + } + + /** The current state of the SchedulerDefinition. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final SchedulerDefinition.LifecycleState lifecycleState; + + /** + * The current state of the SchedulerDefinition. + * + * @return the value + */ + public SchedulerDefinition.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchedulerDefinitionSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeOfNextRun=").append(String.valueOf(this.timeOfNextRun)); + sb.append(", schedule=").append(String.valueOf(this.schedule)); + sb.append(", countOfAffectedActionGroups=") + .append(String.valueOf(this.countOfAffectedActionGroups)); + sb.append(", countOfAffectedResources=") + .append(String.valueOf(this.countOfAffectedResources)); + sb.append(", countOfAffectedTargets=").append(String.valueOf(this.countOfAffectedTargets)); + sb.append(", actionGroupTypes=").append(String.valueOf(this.actionGroupTypes)); + sb.append(", applicationTypes=").append(String.valueOf(this.applicationTypes)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(", lifecycleOperations=").append(String.valueOf(this.lifecycleOperations)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchedulerDefinitionSummary)) { + return false; + } + + SchedulerDefinitionSummary other = (SchedulerDefinitionSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeOfNextRun, other.timeOfNextRun) + && java.util.Objects.equals(this.schedule, other.schedule) + && java.util.Objects.equals( + this.countOfAffectedActionGroups, other.countOfAffectedActionGroups) + && java.util.Objects.equals( + this.countOfAffectedResources, other.countOfAffectedResources) + && java.util.Objects.equals( + this.countOfAffectedTargets, other.countOfAffectedTargets) + && java.util.Objects.equals(this.actionGroupTypes, other.actionGroupTypes) + && java.util.Objects.equals(this.applicationTypes, other.applicationTypes) + && java.util.Objects.equals(this.products, other.products) + && java.util.Objects.equals(this.lifecycleOperations, other.lifecycleOperations) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeOfNextRun == null ? 43 : this.timeOfNextRun.hashCode()); + result = (result * PRIME) + (this.schedule == null ? 43 : this.schedule.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedActionGroups == null + ? 43 + : this.countOfAffectedActionGroups.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedResources == null + ? 43 + : this.countOfAffectedResources.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedTargets == null + ? 43 + : this.countOfAffectedTargets.hashCode()); + result = + (result * PRIME) + + (this.actionGroupTypes == null ? 43 : this.actionGroupTypes.hashCode()); + result = + (result * PRIME) + + (this.applicationTypes == null ? 43 : this.applicationTypes.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + result = + (result * PRIME) + + (this.lifecycleOperations == null + ? 43 + : this.lifecycleOperations.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerJob.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerJob.java new file mode 100644 index 00000000000..5b29470e178 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerJob.java @@ -0,0 +1,1059 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * A SchedulerJob resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SchedulerJob.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulerJob extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "timeCreated", + "timeUpdated", + "timeScheduled", + "timeStarted", + "timeEnded", + "countOfAffectedActionGroups", + "countOfAffectedResources", + "countOfAffectedTargets", + "actionGroupTypes", + "applicationTypes", + "products", + "lifecycleOperations", + "actionGroups", + "associatedScheduleDefinition", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public SchedulerJob( + String id, + String displayName, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeScheduled, + java.util.Date timeStarted, + java.util.Date timeEnded, + Integer countOfAffectedActionGroups, + Integer countOfAffectedResources, + Integer countOfAffectedTargets, + java.util.List actionGroupTypes, + java.util.List applicationTypes, + java.util.List products, + java.util.List lifecycleOperations, + java.util.List actionGroups, + AssociatedSchedulerDefinition associatedScheduleDefinition, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeScheduled = timeScheduled; + this.timeStarted = timeStarted; + this.timeEnded = timeEnded; + this.countOfAffectedActionGroups = countOfAffectedActionGroups; + this.countOfAffectedResources = countOfAffectedResources; + this.countOfAffectedTargets = countOfAffectedTargets; + this.actionGroupTypes = actionGroupTypes; + this.applicationTypes = applicationTypes; + this.products = products; + this.lifecycleOperations = lifecycleOperations; + this.actionGroups = actionGroups; + this.associatedScheduleDefinition = associatedScheduleDefinition; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Scheduled date for the Job. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * Scheduled date for the Job. + * + * @param timeScheduled the value to set + * @return this builder + */ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** Actual Start time for the Job */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * Actual Start time for the Job + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** Actual End time for the Job */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + /** + * Actual End time for the Job + * + * @param timeEnded the value to set + * @return this builder + */ + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + /** Count of ActionGroups affected by the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedActionGroups") + private Integer countOfAffectedActionGroups; + + /** + * Count of ActionGroups affected by the Schedule. + * + * @param countOfAffectedActionGroups the value to set + * @return this builder + */ + public Builder countOfAffectedActionGroups(Integer countOfAffectedActionGroups) { + this.countOfAffectedActionGroups = countOfAffectedActionGroups; + this.__explicitlySet__.add("countOfAffectedActionGroups"); + return this; + } + /** Count of Resources affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedResources") + private Integer countOfAffectedResources; + + /** + * Count of Resources affected by the Schedule + * + * @param countOfAffectedResources the value to set + * @return this builder + */ + public Builder countOfAffectedResources(Integer countOfAffectedResources) { + this.countOfAffectedResources = countOfAffectedResources; + this.__explicitlySet__.add("countOfAffectedResources"); + return this; + } + /** Count of Targets affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedTargets") + private Integer countOfAffectedTargets; + + /** + * Count of Targets affected by the Schedule + * + * @param countOfAffectedTargets the value to set + * @return this builder + */ + public Builder countOfAffectedTargets(Integer countOfAffectedTargets) { + this.countOfAffectedTargets = countOfAffectedTargets; + this.__explicitlySet__.add("countOfAffectedTargets"); + return this; + } + /** All ActionGroup Types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroupTypes") + private java.util.List actionGroupTypes; + + /** + * All ActionGroup Types part of the schedule. + * + * @param actionGroupTypes the value to set + * @return this builder + */ + public Builder actionGroupTypes(java.util.List actionGroupTypes) { + this.actionGroupTypes = actionGroupTypes; + this.__explicitlySet__.add("actionGroupTypes"); + return this; + } + /** All application types part of the schedule for ENVIRONMENT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationTypes") + private java.util.List applicationTypes; + + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * + * @param applicationTypes the value to set + * @return this builder + */ + public Builder applicationTypes(java.util.List applicationTypes) { + this.applicationTypes = applicationTypes; + this.__explicitlySet__.add("applicationTypes"); + return this; + } + /** All products part of the schedule for PRODUCT AcionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * All products part of the schedule for PRODUCT AcionGroup Type. + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + /** All LifeCycle Operations part of the schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperations") + private java.util.List lifecycleOperations; + + /** + * All LifeCycle Operations part of the schedule + * + * @param lifecycleOperations the value to set + * @return this builder + */ + public Builder lifecycleOperations(java.util.List lifecycleOperations) { + this.lifecycleOperations = lifecycleOperations; + this.__explicitlySet__.add("lifecycleOperations"); + return this; + } + /** Action Groups associated with the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroups") + private java.util.List actionGroups; + + /** + * Action Groups associated with the Schedule. + * + * @param actionGroups the value to set + * @return this builder + */ + public Builder actionGroups(java.util.List actionGroups) { + this.actionGroups = actionGroups; + this.__explicitlySet__.add("actionGroups"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("associatedScheduleDefinition") + private AssociatedSchedulerDefinition associatedScheduleDefinition; + + public Builder associatedScheduleDefinition( + AssociatedSchedulerDefinition associatedScheduleDefinition) { + this.associatedScheduleDefinition = associatedScheduleDefinition; + this.__explicitlySet__.add("associatedScheduleDefinition"); + return this; + } + /** The current state of the SchedulerJob. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the SchedulerJob. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchedulerJob build() { + SchedulerJob model = + new SchedulerJob( + this.id, + this.displayName, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.timeScheduled, + this.timeStarted, + this.timeEnded, + this.countOfAffectedActionGroups, + this.countOfAffectedResources, + this.countOfAffectedTargets, + this.actionGroupTypes, + this.applicationTypes, + this.products, + this.lifecycleOperations, + this.actionGroups, + this.associatedScheduleDefinition, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulerJob model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedActionGroups")) { + this.countOfAffectedActionGroups(model.getCountOfAffectedActionGroups()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedResources")) { + this.countOfAffectedResources(model.getCountOfAffectedResources()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedTargets")) { + this.countOfAffectedTargets(model.getCountOfAffectedTargets()); + } + if (model.wasPropertyExplicitlySet("actionGroupTypes")) { + this.actionGroupTypes(model.getActionGroupTypes()); + } + if (model.wasPropertyExplicitlySet("applicationTypes")) { + this.applicationTypes(model.getApplicationTypes()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + if (model.wasPropertyExplicitlySet("lifecycleOperations")) { + this.lifecycleOperations(model.getLifecycleOperations()); + } + if (model.wasPropertyExplicitlySet("actionGroups")) { + this.actionGroups(model.getActionGroups()); + } + if (model.wasPropertyExplicitlySet("associatedScheduleDefinition")) { + this.associatedScheduleDefinition(model.getAssociatedScheduleDefinition()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Scheduled date for the Job. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * Scheduled date for the Job. + * + * @return the value + */ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** Actual Start time for the Job */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * Actual Start time for the Job + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** Actual End time for the Job */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private final java.util.Date timeEnded; + + /** + * Actual End time for the Job + * + * @return the value + */ + public java.util.Date getTimeEnded() { + return timeEnded; + } + + /** Count of ActionGroups affected by the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedActionGroups") + private final Integer countOfAffectedActionGroups; + + /** + * Count of ActionGroups affected by the Schedule. + * + * @return the value + */ + public Integer getCountOfAffectedActionGroups() { + return countOfAffectedActionGroups; + } + + /** Count of Resources affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedResources") + private final Integer countOfAffectedResources; + + /** + * Count of Resources affected by the Schedule + * + * @return the value + */ + public Integer getCountOfAffectedResources() { + return countOfAffectedResources; + } + + /** Count of Targets affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedTargets") + private final Integer countOfAffectedTargets; + + /** + * Count of Targets affected by the Schedule + * + * @return the value + */ + public Integer getCountOfAffectedTargets() { + return countOfAffectedTargets; + } + + /** All ActionGroup Types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroupTypes") + private final java.util.List actionGroupTypes; + + /** + * All ActionGroup Types part of the schedule. + * + * @return the value + */ + public java.util.List getActionGroupTypes() { + return actionGroupTypes; + } + + /** All application types part of the schedule for ENVIRONMENT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationTypes") + private final java.util.List applicationTypes; + + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * + * @return the value + */ + public java.util.List getApplicationTypes() { + return applicationTypes; + } + + /** All products part of the schedule for PRODUCT AcionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * All products part of the schedule for PRODUCT AcionGroup Type. + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + /** All LifeCycle Operations part of the schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperations") + private final java.util.List lifecycleOperations; + + /** + * All LifeCycle Operations part of the schedule + * + * @return the value + */ + public java.util.List getLifecycleOperations() { + return lifecycleOperations; + } + + /** Action Groups associated with the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroups") + private final java.util.List actionGroups; + + /** + * Action Groups associated with the Schedule. + * + * @return the value + */ + public java.util.List getActionGroups() { + return actionGroups; + } + + @com.fasterxml.jackson.annotation.JsonProperty("associatedScheduleDefinition") + private final AssociatedSchedulerDefinition associatedScheduleDefinition; + + public AssociatedSchedulerDefinition getAssociatedScheduleDefinition() { + return associatedScheduleDefinition; + } + + /** The current state of the SchedulerJob. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the SchedulerJob. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the SchedulerJob. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchedulerJob("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + sb.append(", countOfAffectedActionGroups=") + .append(String.valueOf(this.countOfAffectedActionGroups)); + sb.append(", countOfAffectedResources=") + .append(String.valueOf(this.countOfAffectedResources)); + sb.append(", countOfAffectedTargets=").append(String.valueOf(this.countOfAffectedTargets)); + sb.append(", actionGroupTypes=").append(String.valueOf(this.actionGroupTypes)); + sb.append(", applicationTypes=").append(String.valueOf(this.applicationTypes)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(", lifecycleOperations=").append(String.valueOf(this.lifecycleOperations)); + sb.append(", actionGroups=").append(String.valueOf(this.actionGroups)); + sb.append(", associatedScheduleDefinition=") + .append(String.valueOf(this.associatedScheduleDefinition)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchedulerJob)) { + return false; + } + + SchedulerJob other = (SchedulerJob) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && java.util.Objects.equals( + this.countOfAffectedActionGroups, other.countOfAffectedActionGroups) + && java.util.Objects.equals( + this.countOfAffectedResources, other.countOfAffectedResources) + && java.util.Objects.equals( + this.countOfAffectedTargets, other.countOfAffectedTargets) + && java.util.Objects.equals(this.actionGroupTypes, other.actionGroupTypes) + && java.util.Objects.equals(this.applicationTypes, other.applicationTypes) + && java.util.Objects.equals(this.products, other.products) + && java.util.Objects.equals(this.lifecycleOperations, other.lifecycleOperations) + && java.util.Objects.equals(this.actionGroups, other.actionGroups) + && java.util.Objects.equals( + this.associatedScheduleDefinition, other.associatedScheduleDefinition) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedActionGroups == null + ? 43 + : this.countOfAffectedActionGroups.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedResources == null + ? 43 + : this.countOfAffectedResources.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedTargets == null + ? 43 + : this.countOfAffectedTargets.hashCode()); + result = + (result * PRIME) + + (this.actionGroupTypes == null ? 43 : this.actionGroupTypes.hashCode()); + result = + (result * PRIME) + + (this.applicationTypes == null ? 43 : this.applicationTypes.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + result = + (result * PRIME) + + (this.lifecycleOperations == null + ? 43 + : this.lifecycleOperations.hashCode()); + result = (result * PRIME) + (this.actionGroups == null ? 43 : this.actionGroups.hashCode()); + result = + (result * PRIME) + + (this.associatedScheduleDefinition == null + ? 43 + : this.associatedScheduleDefinition.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerJobCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerJobCollection.java new file mode 100644 index 00000000000..f083cb3b8f3 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerJobCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a schedulerJob search. Contains boh SchedulerJobSummary items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SchedulerJobCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulerJobCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public SchedulerJobCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of schedulerJobs. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of schedulerJobs. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchedulerJobCollection build() { + SchedulerJobCollection model = new SchedulerJobCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulerJobCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of schedulerJobs. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of schedulerJobs. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchedulerJobCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchedulerJobCollection)) { + return false; + } + + SchedulerJobCollection other = (SchedulerJobCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerJobSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerJobSummary.java new file mode 100644 index 00000000000..322cb9a1290 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SchedulerJobSummary.java @@ -0,0 +1,938 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the SchedulerJob.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SchedulerJobSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SchedulerJobSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "timeCreated", + "timeUpdated", + "timeScheduled", + "countOfAffectedActionGroups", + "countOfAffectedResources", + "countOfAffectedTargets", + "actionGroupTypes", + "applicationTypes", + "products", + "lifecycleOperations", + "actionGroups", + "associatedScheduleDefinition", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public SchedulerJobSummary( + String id, + String displayName, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeScheduled, + Integer countOfAffectedActionGroups, + Integer countOfAffectedResources, + Integer countOfAffectedTargets, + java.util.List actionGroupTypes, + java.util.List applicationTypes, + java.util.List products, + java.util.List lifecycleOperations, + java.util.List actionGroups, + AssociatedSchedulerDefinition associatedScheduleDefinition, + SchedulerJob.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeScheduled = timeScheduled; + this.countOfAffectedActionGroups = countOfAffectedActionGroups; + this.countOfAffectedResources = countOfAffectedResources; + this.countOfAffectedTargets = countOfAffectedTargets; + this.actionGroupTypes = actionGroupTypes; + this.applicationTypes = applicationTypes; + this.products = products; + this.lifecycleOperations = lifecycleOperations; + this.actionGroups = actionGroups; + this.associatedScheduleDefinition = associatedScheduleDefinition; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Tenancy OCID + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Scheduled date for the Job.Provide only the date */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * Scheduled date for the Job.Provide only the date + * + * @param timeScheduled the value to set + * @return this builder + */ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** Count of ActionGroups affected by the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedActionGroups") + private Integer countOfAffectedActionGroups; + + /** + * Count of ActionGroups affected by the Schedule. + * + * @param countOfAffectedActionGroups the value to set + * @return this builder + */ + public Builder countOfAffectedActionGroups(Integer countOfAffectedActionGroups) { + this.countOfAffectedActionGroups = countOfAffectedActionGroups; + this.__explicitlySet__.add("countOfAffectedActionGroups"); + return this; + } + /** Count of Resources affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedResources") + private Integer countOfAffectedResources; + + /** + * Count of Resources affected by the Schedule + * + * @param countOfAffectedResources the value to set + * @return this builder + */ + public Builder countOfAffectedResources(Integer countOfAffectedResources) { + this.countOfAffectedResources = countOfAffectedResources; + this.__explicitlySet__.add("countOfAffectedResources"); + return this; + } + /** Count of Targets affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedTargets") + private Integer countOfAffectedTargets; + + /** + * Count of Targets affected by the Schedule + * + * @param countOfAffectedTargets the value to set + * @return this builder + */ + public Builder countOfAffectedTargets(Integer countOfAffectedTargets) { + this.countOfAffectedTargets = countOfAffectedTargets; + this.__explicitlySet__.add("countOfAffectedTargets"); + return this; + } + /** All ActionGroup Types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroupTypes") + private java.util.List actionGroupTypes; + + /** + * All ActionGroup Types part of the schedule. + * + * @param actionGroupTypes the value to set + * @return this builder + */ + public Builder actionGroupTypes(java.util.List actionGroupTypes) { + this.actionGroupTypes = actionGroupTypes; + this.__explicitlySet__.add("actionGroupTypes"); + return this; + } + /** All application types part of the schedule for ENVIRONMENT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationTypes") + private java.util.List applicationTypes; + + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * + * @param applicationTypes the value to set + * @return this builder + */ + public Builder applicationTypes(java.util.List applicationTypes) { + this.applicationTypes = applicationTypes; + this.__explicitlySet__.add("applicationTypes"); + return this; + } + /** All products part of the schedule for PRODUCT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private java.util.List products; + + /** + * All products part of the schedule for PRODUCT ActionGroup Type. + * + * @param products the value to set + * @return this builder + */ + public Builder products(java.util.List products) { + this.products = products; + this.__explicitlySet__.add("products"); + return this; + } + /** All LifeCycle Operations part of the schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperations") + private java.util.List lifecycleOperations; + + /** + * All LifeCycle Operations part of the schedule + * + * @param lifecycleOperations the value to set + * @return this builder + */ + public Builder lifecycleOperations(java.util.List lifecycleOperations) { + this.lifecycleOperations = lifecycleOperations; + this.__explicitlySet__.add("lifecycleOperations"); + return this; + } + /** Action Groups associated with the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroups") + private java.util.List actionGroups; + + /** + * Action Groups associated with the Schedule. + * + * @param actionGroups the value to set + * @return this builder + */ + public Builder actionGroups(java.util.List actionGroups) { + this.actionGroups = actionGroups; + this.__explicitlySet__.add("actionGroups"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("associatedScheduleDefinition") + private AssociatedSchedulerDefinition associatedScheduleDefinition; + + public Builder associatedScheduleDefinition( + AssociatedSchedulerDefinition associatedScheduleDefinition) { + this.associatedScheduleDefinition = associatedScheduleDefinition; + this.__explicitlySet__.add("associatedScheduleDefinition"); + return this; + } + /** The current state of the SchedulerJob. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private SchedulerJob.LifecycleState lifecycleState; + + /** + * The current state of the SchedulerJob. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(SchedulerJob.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SchedulerJobSummary build() { + SchedulerJobSummary model = + new SchedulerJobSummary( + this.id, + this.displayName, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.timeScheduled, + this.countOfAffectedActionGroups, + this.countOfAffectedResources, + this.countOfAffectedTargets, + this.actionGroupTypes, + this.applicationTypes, + this.products, + this.lifecycleOperations, + this.actionGroups, + this.associatedScheduleDefinition, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SchedulerJobSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedActionGroups")) { + this.countOfAffectedActionGroups(model.getCountOfAffectedActionGroups()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedResources")) { + this.countOfAffectedResources(model.getCountOfAffectedResources()); + } + if (model.wasPropertyExplicitlySet("countOfAffectedTargets")) { + this.countOfAffectedTargets(model.getCountOfAffectedTargets()); + } + if (model.wasPropertyExplicitlySet("actionGroupTypes")) { + this.actionGroupTypes(model.getActionGroupTypes()); + } + if (model.wasPropertyExplicitlySet("applicationTypes")) { + this.applicationTypes(model.getApplicationTypes()); + } + if (model.wasPropertyExplicitlySet("products")) { + this.products(model.getProducts()); + } + if (model.wasPropertyExplicitlySet("lifecycleOperations")) { + this.lifecycleOperations(model.getLifecycleOperations()); + } + if (model.wasPropertyExplicitlySet("actionGroups")) { + this.actionGroups(model.getActionGroups()); + } + if (model.wasPropertyExplicitlySet("associatedScheduleDefinition")) { + this.associatedScheduleDefinition(model.getAssociatedScheduleDefinition()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Tenancy OCID */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Tenancy OCID + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Scheduled date for the Job.Provide only the date */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * Scheduled date for the Job.Provide only the date + * + * @return the value + */ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** Count of ActionGroups affected by the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedActionGroups") + private final Integer countOfAffectedActionGroups; + + /** + * Count of ActionGroups affected by the Schedule. + * + * @return the value + */ + public Integer getCountOfAffectedActionGroups() { + return countOfAffectedActionGroups; + } + + /** Count of Resources affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedResources") + private final Integer countOfAffectedResources; + + /** + * Count of Resources affected by the Schedule + * + * @return the value + */ + public Integer getCountOfAffectedResources() { + return countOfAffectedResources; + } + + /** Count of Targets affected by the Schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("countOfAffectedTargets") + private final Integer countOfAffectedTargets; + + /** + * Count of Targets affected by the Schedule + * + * @return the value + */ + public Integer getCountOfAffectedTargets() { + return countOfAffectedTargets; + } + + /** All ActionGroup Types part of the schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroupTypes") + private final java.util.List actionGroupTypes; + + /** + * All ActionGroup Types part of the schedule. + * + * @return the value + */ + public java.util.List getActionGroupTypes() { + return actionGroupTypes; + } + + /** All application types part of the schedule for ENVIRONMENT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationTypes") + private final java.util.List applicationTypes; + + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * + * @return the value + */ + public java.util.List getApplicationTypes() { + return applicationTypes; + } + + /** All products part of the schedule for PRODUCT ActionGroup Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("products") + private final java.util.List products; + + /** + * All products part of the schedule for PRODUCT ActionGroup Type. + * + * @return the value + */ + public java.util.List getProducts() { + return products; + } + + /** All LifeCycle Operations part of the schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleOperations") + private final java.util.List lifecycleOperations; + + /** + * All LifeCycle Operations part of the schedule + * + * @return the value + */ + public java.util.List getLifecycleOperations() { + return lifecycleOperations; + } + + /** Action Groups associated with the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroups") + private final java.util.List actionGroups; + + /** + * Action Groups associated with the Schedule. + * + * @return the value + */ + public java.util.List getActionGroups() { + return actionGroups; + } + + @com.fasterxml.jackson.annotation.JsonProperty("associatedScheduleDefinition") + private final AssociatedSchedulerDefinition associatedScheduleDefinition; + + public AssociatedSchedulerDefinition getAssociatedScheduleDefinition() { + return associatedScheduleDefinition; + } + + /** The current state of the SchedulerJob. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final SchedulerJob.LifecycleState lifecycleState; + + /** + * The current state of the SchedulerJob. + * + * @return the value + */ + public SchedulerJob.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SchedulerJobSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", countOfAffectedActionGroups=") + .append(String.valueOf(this.countOfAffectedActionGroups)); + sb.append(", countOfAffectedResources=") + .append(String.valueOf(this.countOfAffectedResources)); + sb.append(", countOfAffectedTargets=").append(String.valueOf(this.countOfAffectedTargets)); + sb.append(", actionGroupTypes=").append(String.valueOf(this.actionGroupTypes)); + sb.append(", applicationTypes=").append(String.valueOf(this.applicationTypes)); + sb.append(", products=").append(String.valueOf(this.products)); + sb.append(", lifecycleOperations=").append(String.valueOf(this.lifecycleOperations)); + sb.append(", actionGroups=").append(String.valueOf(this.actionGroups)); + sb.append(", associatedScheduleDefinition=") + .append(String.valueOf(this.associatedScheduleDefinition)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SchedulerJobSummary)) { + return false; + } + + SchedulerJobSummary other = (SchedulerJobSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals( + this.countOfAffectedActionGroups, other.countOfAffectedActionGroups) + && java.util.Objects.equals( + this.countOfAffectedResources, other.countOfAffectedResources) + && java.util.Objects.equals( + this.countOfAffectedTargets, other.countOfAffectedTargets) + && java.util.Objects.equals(this.actionGroupTypes, other.actionGroupTypes) + && java.util.Objects.equals(this.applicationTypes, other.applicationTypes) + && java.util.Objects.equals(this.products, other.products) + && java.util.Objects.equals(this.lifecycleOperations, other.lifecycleOperations) + && java.util.Objects.equals(this.actionGroups, other.actionGroups) + && java.util.Objects.equals( + this.associatedScheduleDefinition, other.associatedScheduleDefinition) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedActionGroups == null + ? 43 + : this.countOfAffectedActionGroups.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedResources == null + ? 43 + : this.countOfAffectedResources.hashCode()); + result = + (result * PRIME) + + (this.countOfAffectedTargets == null + ? 43 + : this.countOfAffectedTargets.hashCode()); + result = + (result * PRIME) + + (this.actionGroupTypes == null ? 43 : this.actionGroupTypes.hashCode()); + result = + (result * PRIME) + + (this.applicationTypes == null ? 43 : this.applicationTypes.hashCode()); + result = (result * PRIME) + (this.products == null ? 43 : this.products.hashCode()); + result = + (result * PRIME) + + (this.lifecycleOperations == null + ? 43 + : this.lifecycleOperations.hashCode()); + result = (result * PRIME) + (this.actionGroups == null ? 43 : this.actionGroups.hashCode()); + result = + (result * PRIME) + + (this.associatedScheduleDefinition == null + ? 43 + : this.associatedScheduleDefinition.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Scope.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Scope.java new file mode 100644 index 00000000000..96ff26f5d5e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Scope.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Possible scopes for Category */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum Scope implements com.oracle.bmc.http.internal.BmcEnum { + Taxonomy("TAXONOMY"), + PlatformConfig("PLATFORM_CONFIG"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Scope.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Scope v : Scope.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Scope(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Scope create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn("Received unknown value '{}' for enum 'Scope', returning UnknownEnumValue", key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ScriptBasedExecutionDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ScriptBasedExecutionDetails.java new file mode 100644 index 00000000000..81a4c65c384 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ScriptBasedExecutionDetails.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Details for script based execution
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScriptBasedExecutionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "executionType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScriptBasedExecutionDetails extends ExecutionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private TaskVariable variables; + + public Builder variables(TaskVariable variables) { + this.variables = variables; + this.__explicitlySet__.add("variables"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("content") + private ContentDetails content; + + public Builder content(ContentDetails content) { + this.content = content; + this.__explicitlySet__.add("content"); + return this; + } + /** Optional Command to execute the content. */ + @com.fasterxml.jackson.annotation.JsonProperty("command") + private String command; + + /** + * Optional Command to execute the content. + * + * @param command the value to set + * @return this builder + */ + public Builder command(String command) { + this.command = command; + this.__explicitlySet__.add("command"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScriptBasedExecutionDetails build() { + ScriptBasedExecutionDetails model = + new ScriptBasedExecutionDetails(this.variables, this.content, this.command); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScriptBasedExecutionDetails model) { + if (model.wasPropertyExplicitlySet("variables")) { + this.variables(model.getVariables()); + } + if (model.wasPropertyExplicitlySet("content")) { + this.content(model.getContent()); + } + if (model.wasPropertyExplicitlySet("command")) { + this.command(model.getCommand()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ScriptBasedExecutionDetails( + TaskVariable variables, ContentDetails content, String command) { + super(); + this.variables = variables; + this.content = content; + this.command = command; + } + + @com.fasterxml.jackson.annotation.JsonProperty("variables") + private final TaskVariable variables; + + public TaskVariable getVariables() { + return variables; + } + + @com.fasterxml.jackson.annotation.JsonProperty("content") + private final ContentDetails content; + + public ContentDetails getContent() { + return content; + } + + /** Optional Command to execute the content. */ + @com.fasterxml.jackson.annotation.JsonProperty("command") + private final String command; + + /** + * Optional Command to execute the content. + * + * @return the value + */ + public String getCommand() { + return command; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScriptBasedExecutionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", variables=").append(String.valueOf(this.variables)); + sb.append(", content=").append(String.valueOf(this.content)); + sb.append(", command=").append(String.valueOf(this.command)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScriptBasedExecutionDetails)) { + return false; + } + + ScriptBasedExecutionDetails other = (ScriptBasedExecutionDetails) o; + return java.util.Objects.equals(this.variables, other.variables) + && java.util.Objects.equals(this.content, other.content) + && java.util.Objects.equals(this.command, other.command) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.variables == null ? 43 : this.variables.hashCode()); + result = (result * PRIME) + (this.content == null ? 43 : this.content.hashCode()); + result = (result * PRIME) + (this.command == null ? 43 : this.command.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Selection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Selection.java new file mode 100644 index 00000000000..9724b49ce16 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Selection.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Text selection of the category. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum Selection implements com.oracle.bmc.http.internal.BmcEnum { + SingleChoice("SINGLE_CHOICE"), + MultiChoice("MULTI_CHOICE"), + DefaultText("DEFAULT_TEXT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Selection.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Selection v : Selection.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Selection(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Selection create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Selection', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SelectionCriteria.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SelectionCriteria.java new file mode 100644 index 00000000000..d05f4b27ec8 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SelectionCriteria.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Rule Selection Criteria
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SelectionCriteria.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SelectionCriteria + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"matchCondition", "rules"}) + public SelectionCriteria(MatchCondition matchCondition, java.util.List rules) { + super(); + this.matchCondition = matchCondition; + this.rules = rules; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Rule selection match condition. */ + @com.fasterxml.jackson.annotation.JsonProperty("matchCondition") + private MatchCondition matchCondition; + + /** + * Rule selection match condition. + * + * @param matchCondition the value to set + * @return this builder + */ + public Builder matchCondition(MatchCondition matchCondition) { + this.matchCondition = matchCondition; + this.__explicitlySet__.add("matchCondition"); + return this; + } + /** Rules. */ + @com.fasterxml.jackson.annotation.JsonProperty("rules") + private java.util.List rules; + + /** + * Rules. + * + * @param rules the value to set + * @return this builder + */ + public Builder rules(java.util.List rules) { + this.rules = rules; + this.__explicitlySet__.add("rules"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SelectionCriteria build() { + SelectionCriteria model = new SelectionCriteria(this.matchCondition, this.rules); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SelectionCriteria model) { + if (model.wasPropertyExplicitlySet("matchCondition")) { + this.matchCondition(model.getMatchCondition()); + } + if (model.wasPropertyExplicitlySet("rules")) { + this.rules(model.getRules()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Rule selection match condition. */ + public enum MatchCondition implements com.oracle.bmc.http.internal.BmcEnum { + MatchAll("MATCH_ALL"), + Any("ANY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MatchCondition.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MatchCondition v : MatchCondition.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MatchCondition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MatchCondition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MatchCondition', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Rule selection match condition. */ + @com.fasterxml.jackson.annotation.JsonProperty("matchCondition") + private final MatchCondition matchCondition; + + /** + * Rule selection match condition. + * + * @return the value + */ + public MatchCondition getMatchCondition() { + return matchCondition; + } + + /** Rules. */ + @com.fasterxml.jackson.annotation.JsonProperty("rules") + private final java.util.List rules; + + /** + * Rules. + * + * @return the value + */ + public java.util.List getRules() { + return rules; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SelectionCriteria("); + sb.append("super=").append(super.toString()); + sb.append("matchCondition=").append(String.valueOf(this.matchCondition)); + sb.append(", rules=").append(String.valueOf(this.rules)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SelectionCriteria)) { + return false; + } + + SelectionCriteria other = (SelectionCriteria) o; + return java.util.Objects.equals(this.matchCondition, other.matchCondition) + && java.util.Objects.equals(this.rules, other.rules) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.matchCondition == null ? 43 : this.matchCondition.hashCode()); + result = (result * PRIME) + (this.rules == null ? 43 : this.rules.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SortOrder.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SortOrder.java new file mode 100644 index 00000000000..2e04d98a198 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/SortOrder.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Sort orders. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/StringInputArgument.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/StringInputArgument.java new file mode 100644 index 00000000000..26d59fd2547 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/StringInputArgument.java @@ -0,0 +1,123 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The details of the String Input argument.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StringInputArgument.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class StringInputArgument extends InputArgument { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StringInputArgument build() { + StringInputArgument model = new StringInputArgument(this.name, this.description); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StringInputArgument model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public StringInputArgument(String name, String description) { + super(name, description); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StringInputArgument("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StringInputArgument)) { + return false; + } + + StringInputArgument other = (StringInputArgument) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TargetCredentialEntitySpecificDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TargetCredentialEntitySpecificDetails.java new file mode 100644 index 00000000000..4e930f918ea --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TargetCredentialEntitySpecificDetails.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Fleet Credential Specific Details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetCredentialEntitySpecificDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialLevel") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TargetCredentialEntitySpecificDetails extends CredentialEntitySpecificDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the resource associated with the target for which credential is created */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * OCID of the resource associated with the target for which credential is created + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** Target associated with the Credential */ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private String target; + + /** + * Target associated with the Credential + * + * @param target the value to set + * @return this builder + */ + public Builder target(String target) { + this.target = target; + this.__explicitlySet__.add("target"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TargetCredentialEntitySpecificDetails build() { + TargetCredentialEntitySpecificDetails model = + new TargetCredentialEntitySpecificDetails(this.resourceId, this.target); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetCredentialEntitySpecificDetails model) { + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("target")) { + this.target(model.getTarget()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public TargetCredentialEntitySpecificDetails(String resourceId, String target) { + super(); + this.resourceId = resourceId; + this.target = target; + } + + /** OCID of the resource associated with the target for which credential is created */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * OCID of the resource associated with the target for which credential is created + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** Target associated with the Credential */ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private final String target; + + /** + * Target associated with the Credential + * + * @return the value + */ + public String getTarget() { + return target; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TargetCredentialEntitySpecificDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", target=").append(String.valueOf(this.target)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TargetCredentialEntitySpecificDetails)) { + return false; + } + + TargetCredentialEntitySpecificDetails other = (TargetCredentialEntitySpecificDetails) o; + return java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.target, other.target) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TargetResource.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TargetResource.java new file mode 100644 index 00000000000..0f9c1e6ce61 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TargetResource.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Resource Information for the Target
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TargetResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TargetResource + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"resourceId", "resourceDisplayName"}) + public TargetResource(String resourceId, String resourceDisplayName) { + super(); + this.resourceId = resourceId; + this.resourceDisplayName = resourceDisplayName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The OCID of the resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceDisplayName") + private String resourceDisplayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param resourceDisplayName the value to set + * @return this builder + */ + public Builder resourceDisplayName(String resourceDisplayName) { + this.resourceDisplayName = resourceDisplayName; + this.__explicitlySet__.add("resourceDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TargetResource build() { + TargetResource model = new TargetResource(this.resourceId, this.resourceDisplayName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetResource model) { + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("resourceDisplayName")) { + this.resourceDisplayName(model.getResourceDisplayName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceDisplayName") + private final String resourceDisplayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getResourceDisplayName() { + return resourceDisplayName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TargetResource("); + sb.append("super=").append(super.toString()); + sb.append("resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", resourceDisplayName=").append(String.valueOf(this.resourceDisplayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TargetResource)) { + return false; + } + + TargetResource other = (TargetResource) o; + return java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.resourceDisplayName, other.resourceDisplayName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.resourceDisplayName == null + ? 43 + : this.resourceDisplayName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Task.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Task.java new file mode 100644 index 00000000000..5140d8c1578 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/Task.java @@ -0,0 +1,324 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The details of the task
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Task.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class Task extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "stepName", + "associationType", + "taskRecordDetails", + "stepProperties", + "outputVariableMappings" + }) + public Task( + String stepName, + AssociationType associationType, + AssociatedTaskDetails taskRecordDetails, + ComponentProperties stepProperties, + java.util.List outputVariableMappings) { + super(); + this.stepName = stepName; + this.associationType = associationType; + this.taskRecordDetails = taskRecordDetails; + this.stepProperties = stepProperties; + this.outputVariableMappings = outputVariableMappings; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the task step. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + /** + * The name of the task step. + * + * @param stepName the value to set + * @return this builder + */ + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + return this; + } + /** The association type of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("associationType") + private AssociationType associationType; + + /** + * The association type of the task + * + * @param associationType the value to set + * @return this builder + */ + public Builder associationType(AssociationType associationType) { + this.associationType = associationType; + this.__explicitlySet__.add("associationType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("taskRecordDetails") + private AssociatedTaskDetails taskRecordDetails; + + public Builder taskRecordDetails(AssociatedTaskDetails taskRecordDetails) { + this.taskRecordDetails = taskRecordDetails; + this.__explicitlySet__.add("taskRecordDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepProperties") + private ComponentProperties stepProperties; + + public Builder stepProperties(ComponentProperties stepProperties) { + this.stepProperties = stepProperties; + this.__explicitlySet__.add("stepProperties"); + return this; + } + /** + * Mapping output variables of previous tasks to the input variables of the current task. + */ + @com.fasterxml.jackson.annotation.JsonProperty("outputVariableMappings") + private java.util.List outputVariableMappings; + + /** + * Mapping output variables of previous tasks to the input variables of the current task. + * + * @param outputVariableMappings the value to set + * @return this builder + */ + public Builder outputVariableMappings( + java.util.List outputVariableMappings) { + this.outputVariableMappings = outputVariableMappings; + this.__explicitlySet__.add("outputVariableMappings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Task build() { + Task model = + new Task( + this.stepName, + this.associationType, + this.taskRecordDetails, + this.stepProperties, + this.outputVariableMappings); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Task model) { + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("associationType")) { + this.associationType(model.getAssociationType()); + } + if (model.wasPropertyExplicitlySet("taskRecordDetails")) { + this.taskRecordDetails(model.getTaskRecordDetails()); + } + if (model.wasPropertyExplicitlySet("stepProperties")) { + this.stepProperties(model.getStepProperties()); + } + if (model.wasPropertyExplicitlySet("outputVariableMappings")) { + this.outputVariableMappings(model.getOutputVariableMappings()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name of the task step. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private final String stepName; + + /** + * The name of the task step. + * + * @return the value + */ + public String getStepName() { + return stepName; + } + + /** The association type of the task */ + public enum AssociationType implements com.oracle.bmc.http.internal.BmcEnum { + Task("TASK"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AssociationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AssociationType v : AssociationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AssociationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AssociationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AssociationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The association type of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("associationType") + private final AssociationType associationType; + + /** + * The association type of the task + * + * @return the value + */ + public AssociationType getAssociationType() { + return associationType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("taskRecordDetails") + private final AssociatedTaskDetails taskRecordDetails; + + public AssociatedTaskDetails getTaskRecordDetails() { + return taskRecordDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepProperties") + private final ComponentProperties stepProperties; + + public ComponentProperties getStepProperties() { + return stepProperties; + } + + /** Mapping output variables of previous tasks to the input variables of the current task. */ + @com.fasterxml.jackson.annotation.JsonProperty("outputVariableMappings") + private final java.util.List outputVariableMappings; + + /** + * Mapping output variables of previous tasks to the input variables of the current task. + * + * @return the value + */ + public java.util.List getOutputVariableMappings() { + return outputVariableMappings; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Task("); + sb.append("super=").append(super.toString()); + sb.append("stepName=").append(String.valueOf(this.stepName)); + sb.append(", associationType=").append(String.valueOf(this.associationType)); + sb.append(", taskRecordDetails=").append(String.valueOf(this.taskRecordDetails)); + sb.append(", stepProperties=").append(String.valueOf(this.stepProperties)); + sb.append(", outputVariableMappings=").append(String.valueOf(this.outputVariableMappings)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Task)) { + return false; + } + + Task other = (Task) o; + return java.util.Objects.equals(this.stepName, other.stepName) + && java.util.Objects.equals(this.associationType, other.associationType) + && java.util.Objects.equals(this.taskRecordDetails, other.taskRecordDetails) + && java.util.Objects.equals(this.stepProperties, other.stepProperties) + && java.util.Objects.equals( + this.outputVariableMappings, other.outputVariableMappings) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.stepName == null ? 43 : this.stepName.hashCode()); + result = + (result * PRIME) + + (this.associationType == null ? 43 : this.associationType.hashCode()); + result = + (result * PRIME) + + (this.taskRecordDetails == null ? 43 : this.taskRecordDetails.hashCode()); + result = + (result * PRIME) + + (this.stepProperties == null ? 43 : this.stepProperties.hashCode()); + result = + (result * PRIME) + + (this.outputVariableMappings == null + ? 43 + : this.outputVariableMappings.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskArgument.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskArgument.java new file mode 100644 index 00000000000..6096dad6c6a --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskArgument.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * A variable that holds a value
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TaskArgument.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TaskArgument extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "value"}) + public TaskArgument(String name, String value) { + super(); + this.name = name; + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the output variable */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the output variable + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The task output */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * The task output + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TaskArgument build() { + TaskArgument model = new TaskArgument(this.name, this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TaskArgument model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the output variable */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the output variable + * + * @return the value + */ + public String getName() { + return name; + } + + /** The task output */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * The task output + * + * @return the value + */ + public String getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TaskArgument("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TaskArgument)) { + return false; + } + + TaskArgument other = (TaskArgument) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.value, other.value) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskExecutionType.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskExecutionType.java new file mode 100644 index 00000000000..eae4b5a27e5 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskExecutionType.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** The action type of the task. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum TaskExecutionType implements com.oracle.bmc.http.internal.BmcEnum { + Script("SCRIPT"), + Api("API"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TaskExecutionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TaskExecutionType v : TaskExecutionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TaskExecutionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TaskExecutionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TaskExecutionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskRecord.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskRecord.java new file mode 100644 index 00000000000..c86edfd4e9e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskRecord.java @@ -0,0 +1,817 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Description of TaskRecord.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TaskRecord.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TaskRecord extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "type", + "lifecycleState", + "timeCreated", + "timeUpdated", + "details", + "lifecycleDetails", + "version", + "compartmentId", + "resourceRegion", + "freeformTags", + "definedTags", + "systemTags" + }) + public TaskRecord( + String id, + String displayName, + String description, + Type type, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Details details, + String lifecycleDetails, + String version, + String compartmentId, + String resourceRegion, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.type = type; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.details = details; + this.lifecycleDetails = lifecycleDetails; + this.version = version; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Task type. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Task type. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The current state of the TaskRecord. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the TaskRecord. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("details") + private Details details; + + public Builder details(Details details) { + this.details = details; + this.__explicitlySet__.add("details"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The version of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the task + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TaskRecord build() { + TaskRecord model = + new TaskRecord( + this.id, + this.displayName, + this.description, + this.type, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.details, + this.lifecycleDetails, + this.version, + this.compartmentId, + this.resourceRegion, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TaskRecord model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("details")) { + this.details(model.getDetails()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Task type. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + UserDefined("USER_DEFINED"), + OracleDefined("ORACLE_DEFINED"), + SystemDefined("SYSTEM_DEFINED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** Task type. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Task type. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** The current state of the TaskRecord. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Inactive("INACTIVE"), + Deleted("DELETED"), + Deleting("DELETING"), + Failed("FAILED"), + Updating("UPDATING"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the TaskRecord. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the TaskRecord. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("details") + private final Details details; + + public Details getDetails() { + return details; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The version of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the task + * + * @return the value + */ + public String getVersion() { + return version; + } + + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TaskRecord("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", details=").append(String.valueOf(this.details)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TaskRecord)) { + return false; + } + + TaskRecord other = (TaskRecord) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.details, other.details) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.details == null ? 43 : this.details.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskRecordCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskRecordCollection.java new file mode 100644 index 00000000000..080cf8b3b55 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskRecordCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a taskRecord search. Contains boh TaskRecordSummary items and other information, such + * as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TaskRecordCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TaskRecordCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public TaskRecordCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of taskRecords. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of taskRecords. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TaskRecordCollection build() { + TaskRecordCollection model = new TaskRecordCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TaskRecordCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of taskRecords. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of taskRecords. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TaskRecordCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TaskRecordCollection)) { + return false; + } + + TaskRecordCollection other = (TaskRecordCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskRecordSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskRecordSummary.java new file mode 100644 index 00000000000..e82351bead6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskRecordSummary.java @@ -0,0 +1,724 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Summary of the TaskRecord.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TaskRecordSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TaskRecordSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "type", + "lifecycleState", + "timeCreated", + "timeUpdated", + "details", + "lifecycleDetails", + "version", + "compartmentId", + "resourceRegion", + "freeformTags", + "definedTags", + "systemTags" + }) + public TaskRecordSummary( + String id, + String displayName, + String description, + TaskRecord.Type type, + TaskRecord.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + Details details, + String lifecycleDetails, + String version, + String compartmentId, + String resourceRegion, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.type = type; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.details = details; + this.lifecycleDetails = lifecycleDetails; + this.version = version; + this.compartmentId = compartmentId; + this.resourceRegion = resourceRegion; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Task type. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private TaskRecord.Type type; + + /** + * Task type. + * + * @param type the value to set + * @return this builder + */ + public Builder type(TaskRecord.Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** The current state of the TaskRecord. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private TaskRecord.LifecycleState lifecycleState; + + /** + * The current state of the TaskRecord. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(TaskRecord.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("details") + private Details details; + + public Builder details(Details details) { + this.details = details; + this.__explicitlySet__.add("details"); + return this; + } + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to + * provide actionable information for a resource in Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** The version of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * The version of the task + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private String resourceRegion; + + /** + * Associated region + * + * @param resourceRegion the value to set + * @return this builder + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + this.__explicitlySet__.add("resourceRegion"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TaskRecordSummary build() { + TaskRecordSummary model = + new TaskRecordSummary( + this.id, + this.displayName, + this.description, + this.type, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.details, + this.lifecycleDetails, + this.version, + this.compartmentId, + this.resourceRegion, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TaskRecordSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("details")) { + this.details(model.getDetails()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceRegion")) { + this.resourceRegion(model.getResourceRegion()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Task type. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final TaskRecord.Type type; + + /** + * Task type. + * + * @return the value + */ + public TaskRecord.Type getType() { + return type; + } + + /** The current state of the TaskRecord. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final TaskRecord.LifecycleState lifecycleState; + + /** + * The current state of the TaskRecord. + * + * @return the value + */ + public TaskRecord.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The time this resource was created. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time this resource was created. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time this resource was last updated. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("details") + private final Details details; + + public Details getDetails() { + return details; + } + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** The version of the task */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * The version of the task + * + * @return the value + */ + public String getVersion() { + return version; + } + + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Associated region */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceRegion") + private final String resourceRegion; + + /** + * Associated region + * + * @return the value + */ + public String getResourceRegion() { + return resourceRegion; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TaskRecordSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", details=").append(String.valueOf(this.details)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TaskRecordSummary)) { + return false; + } + + TaskRecordSummary other = (TaskRecordSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.details, other.details) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.details == null ? 43 : this.details.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskScope.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskScope.java new file mode 100644 index 00000000000..20cf69ac491 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskScope.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** The scope of the task. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum TaskScope implements com.oracle.bmc.http.internal.BmcEnum { + Local("LOCAL"), + Shared("SHARED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(TaskScope.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TaskScope v : TaskScope.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TaskScope(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TaskScope create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TaskScope', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskVariable.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskVariable.java new file mode 100644 index 00000000000..7d90c1e4b09 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/TaskVariable.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The variable of the task.Atleast one of dynamicArguments or output needs to be provided.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TaskVariable.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TaskVariable extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"inputVariables", "outputVariables"}) + public TaskVariable( + java.util.List inputVariables, java.util.List outputVariables) { + super(); + this.inputVariables = inputVariables; + this.outputVariables = outputVariables; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The input variables for the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("inputVariables") + private java.util.List inputVariables; + + /** + * The input variables for the task. + * + * @param inputVariables the value to set + * @return this builder + */ + public Builder inputVariables(java.util.List inputVariables) { + this.inputVariables = inputVariables; + this.__explicitlySet__.add("inputVariables"); + return this; + } + /** The list of output variables. */ + @com.fasterxml.jackson.annotation.JsonProperty("outputVariables") + private java.util.List outputVariables; + + /** + * The list of output variables. + * + * @param outputVariables the value to set + * @return this builder + */ + public Builder outputVariables(java.util.List outputVariables) { + this.outputVariables = outputVariables; + this.__explicitlySet__.add("outputVariables"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TaskVariable build() { + TaskVariable model = new TaskVariable(this.inputVariables, this.outputVariables); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TaskVariable model) { + if (model.wasPropertyExplicitlySet("inputVariables")) { + this.inputVariables(model.getInputVariables()); + } + if (model.wasPropertyExplicitlySet("outputVariables")) { + this.outputVariables(model.getOutputVariables()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The input variables for the task. */ + @com.fasterxml.jackson.annotation.JsonProperty("inputVariables") + private final java.util.List inputVariables; + + /** + * The input variables for the task. + * + * @return the value + */ + public java.util.List getInputVariables() { + return inputVariables; + } + + /** The list of output variables. */ + @com.fasterxml.jackson.annotation.JsonProperty("outputVariables") + private final java.util.List outputVariables; + + /** + * The list of output variables. + * + * @return the value + */ + public java.util.List getOutputVariables() { + return outputVariables; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TaskVariable("); + sb.append("super=").append(super.toString()); + sb.append("inputVariables=").append(String.valueOf(this.inputVariables)); + sb.append(", outputVariables=").append(String.valueOf(this.outputVariables)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TaskVariable)) { + return false; + } + + TaskVariable other = (TaskVariable) o; + return java.util.Objects.equals(this.inputVariables, other.inputVariables) + && java.util.Objects.equals(this.outputVariables, other.outputVariables) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.inputVariables == null ? 43 : this.inputVariables.hashCode()); + result = + (result * PRIME) + + (this.outputVariables == null ? 43 : this.outputVariables.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetCredentialDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetCredentialDetails.java new file mode 100644 index 00000000000..a8de014f75f --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetCredentialDetails.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateFleetCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateFleetCredentialDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "entitySpecifics", "user", "password"}) + public UpdateFleetCredentialDetails( + String displayName, + CredentialEntitySpecificDetails entitySpecifics, + CredentialDetails user, + CredentialDetails password) { + super(); + this.displayName = displayName; + this.entitySpecifics = entitySpecifics; + this.user = user; + this.password = password; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitySpecifics") + private CredentialEntitySpecificDetails entitySpecifics; + + public Builder entitySpecifics(CredentialEntitySpecificDetails entitySpecifics) { + this.entitySpecifics = entitySpecifics; + this.__explicitlySet__.add("entitySpecifics"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("user") + private CredentialDetails user; + + public Builder user(CredentialDetails user) { + this.user = user; + this.__explicitlySet__.add("user"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private CredentialDetails password; + + public Builder password(CredentialDetails password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateFleetCredentialDetails build() { + UpdateFleetCredentialDetails model = + new UpdateFleetCredentialDetails( + this.displayName, this.entitySpecifics, this.user, this.password); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateFleetCredentialDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("entitySpecifics")) { + this.entitySpecifics(model.getEntitySpecifics()); + } + if (model.wasPropertyExplicitlySet("user")) { + this.user(model.getUser()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitySpecifics") + private final CredentialEntitySpecificDetails entitySpecifics; + + public CredentialEntitySpecificDetails getEntitySpecifics() { + return entitySpecifics; + } + + @com.fasterxml.jackson.annotation.JsonProperty("user") + private final CredentialDetails user; + + public CredentialDetails getUser() { + return user; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final CredentialDetails password; + + public CredentialDetails getPassword() { + return password; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateFleetCredentialDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", entitySpecifics=").append(String.valueOf(this.entitySpecifics)); + sb.append(", user=").append(String.valueOf(this.user)); + sb.append(", password=").append(String.valueOf(this.password)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetCredentialDetails)) { + return false; + } + + UpdateFleetCredentialDetails other = (UpdateFleetCredentialDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.entitySpecifics, other.entitySpecifics) + && java.util.Objects.equals(this.user, other.user) + && java.util.Objects.equals(this.password, other.password) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.entitySpecifics == null ? 43 : this.entitySpecifics.hashCode()); + result = (result * PRIME) + (this.user == null ? 43 : this.user.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetDetails.java new file mode 100644 index 00000000000..c7f86336d8b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetDetails.java @@ -0,0 +1,398 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateFleetDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateFleetDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "notificationPreferences", + "ruleSelectionCriteria", + "isTargetAutoConfirm", + "freeformTags", + "definedTags" + }) + public UpdateFleetDetails( + String displayName, + String description, + NotificationPreferences notificationPreferences, + SelectionCriteria ruleSelectionCriteria, + Boolean isTargetAutoConfirm, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.notificationPreferences = notificationPreferences; + this.ruleSelectionCriteria = ruleSelectionCriteria; + this.isTargetAutoConfirm = isTargetAutoConfirm; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("notificationPreferences") + private NotificationPreferences notificationPreferences; + + public Builder notificationPreferences(NotificationPreferences notificationPreferences) { + this.notificationPreferences = notificationPreferences; + this.__explicitlySet__.add("notificationPreferences"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ruleSelectionCriteria") + private SelectionCriteria ruleSelectionCriteria; + + public Builder ruleSelectionCriteria(SelectionCriteria ruleSelectionCriteria) { + this.ruleSelectionCriteria = ruleSelectionCriteria; + this.__explicitlySet__.add("ruleSelectionCriteria"); + return this; + } + /** A value which represents if auto confirming of the targets can be enabled */ + @com.fasterxml.jackson.annotation.JsonProperty("isTargetAutoConfirm") + private Boolean isTargetAutoConfirm; + + /** + * A value which represents if auto confirming of the targets can be enabled + * + * @param isTargetAutoConfirm the value to set + * @return this builder + */ + public Builder isTargetAutoConfirm(Boolean isTargetAutoConfirm) { + this.isTargetAutoConfirm = isTargetAutoConfirm; + this.__explicitlySet__.add("isTargetAutoConfirm"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateFleetDetails build() { + UpdateFleetDetails model = + new UpdateFleetDetails( + this.displayName, + this.description, + this.notificationPreferences, + this.ruleSelectionCriteria, + this.isTargetAutoConfirm, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateFleetDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("notificationPreferences")) { + this.notificationPreferences(model.getNotificationPreferences()); + } + if (model.wasPropertyExplicitlySet("ruleSelectionCriteria")) { + this.ruleSelectionCriteria(model.getRuleSelectionCriteria()); + } + if (model.wasPropertyExplicitlySet("isTargetAutoConfirm")) { + this.isTargetAutoConfirm(model.getIsTargetAutoConfirm()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("notificationPreferences") + private final NotificationPreferences notificationPreferences; + + public NotificationPreferences getNotificationPreferences() { + return notificationPreferences; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ruleSelectionCriteria") + private final SelectionCriteria ruleSelectionCriteria; + + public SelectionCriteria getRuleSelectionCriteria() { + return ruleSelectionCriteria; + } + + /** A value which represents if auto confirming of the targets can be enabled */ + @com.fasterxml.jackson.annotation.JsonProperty("isTargetAutoConfirm") + private final Boolean isTargetAutoConfirm; + + /** + * A value which represents if auto confirming of the targets can be enabled + * + * @return the value + */ + public Boolean getIsTargetAutoConfirm() { + return isTargetAutoConfirm; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateFleetDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", notificationPreferences=") + .append(String.valueOf(this.notificationPreferences)); + sb.append(", ruleSelectionCriteria=").append(String.valueOf(this.ruleSelectionCriteria)); + sb.append(", isTargetAutoConfirm=").append(String.valueOf(this.isTargetAutoConfirm)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetDetails)) { + return false; + } + + UpdateFleetDetails other = (UpdateFleetDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.notificationPreferences, other.notificationPreferences) + && java.util.Objects.equals(this.ruleSelectionCriteria, other.ruleSelectionCriteria) + && java.util.Objects.equals(this.isTargetAutoConfirm, other.isTargetAutoConfirm) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.notificationPreferences == null + ? 43 + : this.notificationPreferences.hashCode()); + result = + (result * PRIME) + + (this.ruleSelectionCriteria == null + ? 43 + : this.ruleSelectionCriteria.hashCode()); + result = + (result * PRIME) + + (this.isTargetAutoConfirm == null + ? 43 + : this.isTargetAutoConfirm.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetPropertyDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetPropertyDetails.java new file mode 100644 index 00000000000..0eb338f8a99 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetPropertyDetails.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateFleetPropertyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateFleetPropertyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"value"}) + public UpdateFleetPropertyDetails(String value) { + super(); + this.value = value; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Value of the Property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + /** + * Value of the Property + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateFleetPropertyDetails build() { + UpdateFleetPropertyDetails model = new UpdateFleetPropertyDetails(this.value); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateFleetPropertyDetails model) { + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Value of the Property */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; + + /** + * Value of the Property + * + * @return the value + */ + public String getValue() { + return value; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateFleetPropertyDetails("); + sb.append("super=").append(super.toString()); + sb.append("value=").append(String.valueOf(this.value)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetPropertyDetails)) { + return false; + } + + UpdateFleetPropertyDetails other = (UpdateFleetPropertyDetails) o; + return java.util.Objects.equals(this.value, other.value) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetResourceDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetResourceDetails.java new file mode 100644 index 00000000000..810975514a8 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateFleetResourceDetails.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateFleetResourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateFleetResourceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"tenancyId", "compartmentId"}) + public UpdateFleetResourceDetails(String tenancyId, String compartmentId) { + super(); + this.tenancyId = tenancyId; + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @param tenancyId the value to set + * @return this builder + */ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + this.__explicitlySet__.add("tenancyId"); + return this; + } + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateFleetResourceDetails build() { + UpdateFleetResourceDetails model = + new UpdateFleetResourceDetails(this.tenancyId, this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateFleetResourceDetails model) { + if (model.wasPropertyExplicitlySet("tenancyId")) { + this.tenancyId(model.getTenancyId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** OCID of the tenancy to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("tenancyId") + private final String tenancyId; + + /** + * OCID of the tenancy to which the resource belongs to. + * + * @return the value + */ + public String getTenancyId() { + return tenancyId; + } + + /** OCID of the compartment to which the resource belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * OCID of the compartment to which the resource belongs to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateFleetResourceDetails("); + sb.append("super=").append(super.toString()); + sb.append("tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetResourceDetails)) { + return false; + } + + UpdateFleetResourceDetails other = (UpdateFleetResourceDetails) o; + return java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateMaintenanceWindowDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateMaintenanceWindowDetails.java new file mode 100644 index 00000000000..2005ed0c959 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateMaintenanceWindowDetails.java @@ -0,0 +1,570 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Maintenance Window information to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMaintenanceWindowDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateMaintenanceWindowDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "maintenanceWindowType", + "isOutage", + "timeScheduleStart", + "duration", + "isRecurring", + "recurrences", + "taskInitiationCutoff", + "freeformTags", + "definedTags" + }) + public UpdateMaintenanceWindowDetails( + String displayName, + String description, + MaintenanceWindowType maintenanceWindowType, + Boolean isOutage, + java.util.Date timeScheduleStart, + String duration, + Boolean isRecurring, + String recurrences, + Integer taskInitiationCutoff, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.maintenanceWindowType = maintenanceWindowType; + this.isOutage = isOutage; + this.timeScheduleStart = timeScheduleStart; + this.duration = duration; + this.isRecurring = isRecurring; + this.recurrences = recurrences; + this.taskInitiationCutoff = taskInitiationCutoff; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** MaintenanceWindow Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowType") + private MaintenanceWindowType maintenanceWindowType; + + /** + * MaintenanceWindow Identifier + * + * @param maintenanceWindowType the value to set + * @return this builder + */ + public Builder maintenanceWindowType(MaintenanceWindowType maintenanceWindowType) { + this.maintenanceWindowType = maintenanceWindowType; + this.__explicitlySet__.add("maintenanceWindowType"); + return this; + } + /** Does the maintenenace window cause outage? */ + @com.fasterxml.jackson.annotation.JsonProperty("isOutage") + private Boolean isOutage; + + /** + * Does the maintenenace window cause outage? + * + * @param isOutage the value to set + * @return this builder + */ + public Builder isOutage(Boolean isOutage) { + this.isOutage = isOutage; + this.__explicitlySet__.add("isOutage"); + return this; + } + /** Start time of schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleStart") + private java.util.Date timeScheduleStart; + + /** + * Start time of schedule + * + * @param timeScheduleStart the value to set + * @return this builder + */ + public Builder timeScheduleStart(java.util.Date timeScheduleStart) { + this.timeScheduleStart = timeScheduleStart; + this.__explicitlySet__.add("timeScheduleStart"); + return this; + } + /** Duration if schedule type is Custom */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private String duration; + + /** + * Duration if schedule type is Custom + * + * @param duration the value to set + * @return this builder + */ + public Builder duration(String duration) { + this.duration = duration; + this.__explicitlySet__.add("duration"); + return this; + } + /** Is this is a recurring maintenance window */ + @com.fasterxml.jackson.annotation.JsonProperty("isRecurring") + private Boolean isRecurring; + + /** + * Is this is a recurring maintenance window + * + * @param isRecurring the value to set + * @return this builder + */ + public Builder isRecurring(Boolean isRecurring) { + this.isRecurring = isRecurring; + this.__explicitlySet__.add("isRecurring"); + return this; + } + /** Recurrence rule specification if recurring */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrences") + private String recurrences; + + /** + * Recurrence rule specification if recurring + * + * @param recurrences the value to set + * @return this builder + */ + public Builder recurrences(String recurrences) { + this.recurrences = recurrences; + this.__explicitlySet__.add("recurrences"); + return this; + } + /** Task initiation cutoff */ + @com.fasterxml.jackson.annotation.JsonProperty("taskInitiationCutoff") + private Integer taskInitiationCutoff; + + /** + * Task initiation cutoff + * + * @param taskInitiationCutoff the value to set + * @return this builder + */ + public Builder taskInitiationCutoff(Integer taskInitiationCutoff) { + this.taskInitiationCutoff = taskInitiationCutoff; + this.__explicitlySet__.add("taskInitiationCutoff"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateMaintenanceWindowDetails build() { + UpdateMaintenanceWindowDetails model = + new UpdateMaintenanceWindowDetails( + this.displayName, + this.description, + this.maintenanceWindowType, + this.isOutage, + this.timeScheduleStart, + this.duration, + this.isRecurring, + this.recurrences, + this.taskInitiationCutoff, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMaintenanceWindowDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("maintenanceWindowType")) { + this.maintenanceWindowType(model.getMaintenanceWindowType()); + } + if (model.wasPropertyExplicitlySet("isOutage")) { + this.isOutage(model.getIsOutage()); + } + if (model.wasPropertyExplicitlySet("timeScheduleStart")) { + this.timeScheduleStart(model.getTimeScheduleStart()); + } + if (model.wasPropertyExplicitlySet("duration")) { + this.duration(model.getDuration()); + } + if (model.wasPropertyExplicitlySet("isRecurring")) { + this.isRecurring(model.getIsRecurring()); + } + if (model.wasPropertyExplicitlySet("recurrences")) { + this.recurrences(model.getRecurrences()); + } + if (model.wasPropertyExplicitlySet("taskInitiationCutoff")) { + this.taskInitiationCutoff(model.getTaskInitiationCutoff()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** MaintenanceWindow Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindowType") + private final MaintenanceWindowType maintenanceWindowType; + + /** + * MaintenanceWindow Identifier + * + * @return the value + */ + public MaintenanceWindowType getMaintenanceWindowType() { + return maintenanceWindowType; + } + + /** Does the maintenenace window cause outage? */ + @com.fasterxml.jackson.annotation.JsonProperty("isOutage") + private final Boolean isOutage; + + /** + * Does the maintenenace window cause outage? + * + * @return the value + */ + public Boolean getIsOutage() { + return isOutage; + } + + /** Start time of schedule */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleStart") + private final java.util.Date timeScheduleStart; + + /** + * Start time of schedule + * + * @return the value + */ + public java.util.Date getTimeScheduleStart() { + return timeScheduleStart; + } + + /** Duration if schedule type is Custom */ + @com.fasterxml.jackson.annotation.JsonProperty("duration") + private final String duration; + + /** + * Duration if schedule type is Custom + * + * @return the value + */ + public String getDuration() { + return duration; + } + + /** Is this is a recurring maintenance window */ + @com.fasterxml.jackson.annotation.JsonProperty("isRecurring") + private final Boolean isRecurring; + + /** + * Is this is a recurring maintenance window + * + * @return the value + */ + public Boolean getIsRecurring() { + return isRecurring; + } + + /** Recurrence rule specification if recurring */ + @com.fasterxml.jackson.annotation.JsonProperty("recurrences") + private final String recurrences; + + /** + * Recurrence rule specification if recurring + * + * @return the value + */ + public String getRecurrences() { + return recurrences; + } + + /** Task initiation cutoff */ + @com.fasterxml.jackson.annotation.JsonProperty("taskInitiationCutoff") + private final Integer taskInitiationCutoff; + + /** + * Task initiation cutoff + * + * @return the value + */ + public Integer getTaskInitiationCutoff() { + return taskInitiationCutoff; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMaintenanceWindowDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", maintenanceWindowType=").append(String.valueOf(this.maintenanceWindowType)); + sb.append(", isOutage=").append(String.valueOf(this.isOutage)); + sb.append(", timeScheduleStart=").append(String.valueOf(this.timeScheduleStart)); + sb.append(", duration=").append(String.valueOf(this.duration)); + sb.append(", isRecurring=").append(String.valueOf(this.isRecurring)); + sb.append(", recurrences=").append(String.valueOf(this.recurrences)); + sb.append(", taskInitiationCutoff=").append(String.valueOf(this.taskInitiationCutoff)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMaintenanceWindowDetails)) { + return false; + } + + UpdateMaintenanceWindowDetails other = (UpdateMaintenanceWindowDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.maintenanceWindowType, other.maintenanceWindowType) + && java.util.Objects.equals(this.isOutage, other.isOutage) + && java.util.Objects.equals(this.timeScheduleStart, other.timeScheduleStart) + && java.util.Objects.equals(this.duration, other.duration) + && java.util.Objects.equals(this.isRecurring, other.isRecurring) + && java.util.Objects.equals(this.recurrences, other.recurrences) + && java.util.Objects.equals(this.taskInitiationCutoff, other.taskInitiationCutoff) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindowType == null + ? 43 + : this.maintenanceWindowType.hashCode()); + result = (result * PRIME) + (this.isOutage == null ? 43 : this.isOutage.hashCode()); + result = + (result * PRIME) + + (this.timeScheduleStart == null ? 43 : this.timeScheduleStart.hashCode()); + result = (result * PRIME) + (this.duration == null ? 43 : this.duration.hashCode()); + result = (result * PRIME) + (this.isRecurring == null ? 43 : this.isRecurring.hashCode()); + result = (result * PRIME) + (this.recurrences == null ? 43 : this.recurrences.hashCode()); + result = + (result * PRIME) + + (this.taskInitiationCutoff == null + ? 43 + : this.taskInitiationCutoff.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdatePropertyDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdatePropertyDetails.java new file mode 100644 index 00000000000..f6d13674c52 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdatePropertyDetails.java @@ -0,0 +1,261 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdatePropertyDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdatePropertyDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "selection", "valueType", "values"}) + public UpdatePropertyDetails( + String displayName, + Selection selection, + ValueType valueType, + java.util.List values) { + super(); + this.displayName = displayName; + this.selection = selection; + this.valueType = valueType; + this.values = values; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Text selection of the category */ + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private Selection selection; + + /** + * Text selection of the category + * + * @param selection the value to set + * @return this builder + */ + public Builder selection(Selection selection) { + this.selection = selection; + this.__explicitlySet__.add("selection"); + return this; + } + /** Format of the value */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private ValueType valueType; + + /** + * Format of the value + * + * @param valueType the value to set + * @return this builder + */ + public Builder valueType(ValueType valueType) { + this.valueType = valueType; + this.__explicitlySet__.add("valueType"); + return this; + } + /** Values of the property (must be a single value if selection = 'single choice') */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private java.util.List values; + + /** + * Values of the property (must be a single value if selection = 'single choice') + * + * @param values the value to set + * @return this builder + */ + public Builder values(java.util.List values) { + this.values = values; + this.__explicitlySet__.add("values"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdatePropertyDetails build() { + UpdatePropertyDetails model = + new UpdatePropertyDetails( + this.displayName, this.selection, this.valueType, this.values); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdatePropertyDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("selection")) { + this.selection(model.getSelection()); + } + if (model.wasPropertyExplicitlySet("valueType")) { + this.valueType(model.getValueType()); + } + if (model.wasPropertyExplicitlySet("values")) { + this.values(model.getValues()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Text selection of the category */ + @com.fasterxml.jackson.annotation.JsonProperty("selection") + private final Selection selection; + + /** + * Text selection of the category + * + * @return the value + */ + public Selection getSelection() { + return selection; + } + + /** Format of the value */ + @com.fasterxml.jackson.annotation.JsonProperty("valueType") + private final ValueType valueType; + + /** + * Format of the value + * + * @return the value + */ + public ValueType getValueType() { + return valueType; + } + + /** Values of the property (must be a single value if selection = 'single choice') */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private final java.util.List values; + + /** + * Values of the property (must be a single value if selection = 'single choice') + * + * @return the value + */ + public java.util.List getValues() { + return values; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdatePropertyDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", selection=").append(String.valueOf(this.selection)); + sb.append(", valueType=").append(String.valueOf(this.valueType)); + sb.append(", values=").append(String.valueOf(this.values)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePropertyDetails)) { + return false; + } + + UpdatePropertyDetails other = (UpdatePropertyDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.selection, other.selection) + && java.util.Objects.equals(this.valueType, other.valueType) + && java.util.Objects.equals(this.values, other.values) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.selection == null ? 43 : this.selection.hashCode()); + result = (result * PRIME) + (this.valueType == null ? 43 : this.valueType.hashCode()); + result = (result * PRIME) + (this.values == null ? 43 : this.values.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateSchedulerDefinitionDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateSchedulerDefinitionDetails.java new file mode 100644 index 00000000000..0fb4c8519c8 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateSchedulerDefinitionDetails.java @@ -0,0 +1,440 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateSchedulerDefinitionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateSchedulerDefinitionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "activityInitiationCutOff", + "schedule", + "actionGroups", + "runBooks", + "freeformTags", + "definedTags" + }) + public UpdateSchedulerDefinitionDetails( + String displayName, + String description, + Integer activityInitiationCutOff, + Schedule schedule, + java.util.List actionGroups, + java.util.List runBooks, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.activityInitiationCutOff = activityInitiationCutOff; + this.schedule = schedule; + this.actionGroups = actionGroups; + this.runBooks = runBooks; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Activity Initiation Cut Off */ + @com.fasterxml.jackson.annotation.JsonProperty("activityInitiationCutOff") + private Integer activityInitiationCutOff; + + /** + * Activity Initiation Cut Off + * + * @param activityInitiationCutOff the value to set + * @return this builder + */ + public Builder activityInitiationCutOff(Integer activityInitiationCutOff) { + this.activityInitiationCutOff = activityInitiationCutOff; + this.__explicitlySet__.add("activityInitiationCutOff"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private Schedule schedule; + + public Builder schedule(Schedule schedule) { + this.schedule = schedule; + this.__explicitlySet__.add("schedule"); + return this; + } + /** Action Groups associated with the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroups") + private java.util.List actionGroups; + + /** + * Action Groups associated with the Schedule. + * + * @param actionGroups the value to set + * @return this builder + */ + public Builder actionGroups(java.util.List actionGroups) { + this.actionGroups = actionGroups; + this.__explicitlySet__.add("actionGroups"); + return this; + } + /** Runbooks. */ + @com.fasterxml.jackson.annotation.JsonProperty("runBooks") + private java.util.List runBooks; + + /** + * Runbooks. + * + * @param runBooks the value to set + * @return this builder + */ + public Builder runBooks(java.util.List runBooks) { + this.runBooks = runBooks; + this.__explicitlySet__.add("runBooks"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateSchedulerDefinitionDetails build() { + UpdateSchedulerDefinitionDetails model = + new UpdateSchedulerDefinitionDetails( + this.displayName, + this.description, + this.activityInitiationCutOff, + this.schedule, + this.actionGroups, + this.runBooks, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateSchedulerDefinitionDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("activityInitiationCutOff")) { + this.activityInitiationCutOff(model.getActivityInitiationCutOff()); + } + if (model.wasPropertyExplicitlySet("schedule")) { + this.schedule(model.getSchedule()); + } + if (model.wasPropertyExplicitlySet("actionGroups")) { + this.actionGroups(model.getActionGroups()); + } + if (model.wasPropertyExplicitlySet("runBooks")) { + this.runBooks(model.getRunBooks()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + *

Example: {@code My new resource} + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. To provide some insight about the resource. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Activity Initiation Cut Off */ + @com.fasterxml.jackson.annotation.JsonProperty("activityInitiationCutOff") + private final Integer activityInitiationCutOff; + + /** + * Activity Initiation Cut Off + * + * @return the value + */ + public Integer getActivityInitiationCutOff() { + return activityInitiationCutOff; + } + + @com.fasterxml.jackson.annotation.JsonProperty("schedule") + private final Schedule schedule; + + public Schedule getSchedule() { + return schedule; + } + + /** Action Groups associated with the Schedule. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionGroups") + private final java.util.List actionGroups; + + /** + * Action Groups associated with the Schedule. + * + * @return the value + */ + public java.util.List getActionGroups() { + return actionGroups; + } + + /** Runbooks. */ + @com.fasterxml.jackson.annotation.JsonProperty("runBooks") + private final java.util.List runBooks; + + /** + * Runbooks. + * + * @return the value + */ + public java.util.List getRunBooks() { + return runBooks; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateSchedulerDefinitionDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", activityInitiationCutOff=") + .append(String.valueOf(this.activityInitiationCutOff)); + sb.append(", schedule=").append(String.valueOf(this.schedule)); + sb.append(", actionGroups=").append(String.valueOf(this.actionGroups)); + sb.append(", runBooks=").append(String.valueOf(this.runBooks)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSchedulerDefinitionDetails)) { + return false; + } + + UpdateSchedulerDefinitionDetails other = (UpdateSchedulerDefinitionDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.activityInitiationCutOff, other.activityInitiationCutOff) + && java.util.Objects.equals(this.schedule, other.schedule) + && java.util.Objects.equals(this.actionGroups, other.actionGroups) + && java.util.Objects.equals(this.runBooks, other.runBooks) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.activityInitiationCutOff == null + ? 43 + : this.activityInitiationCutOff.hashCode()); + result = (result * PRIME) + (this.schedule == null ? 43 : this.schedule.hashCode()); + result = (result * PRIME) + (this.actionGroups == null ? 43 : this.actionGroups.hashCode()); + result = (result * PRIME) + (this.runBooks == null ? 43 : this.runBooks.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateSchedulerJobDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateSchedulerJobDetails.java new file mode 100644 index 00000000000..5e6f1797ee4 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/UpdateSchedulerJobDetails.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * The information to be updated.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateSchedulerJobDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateSchedulerJobDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"timeScheduled", "freeformTags", "definedTags"}) + public UpdateSchedulerJobDetails( + java.util.Date timeScheduled, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.timeScheduled = timeScheduled; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Scheduled date for the Job.Provide only the date */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private java.util.Date timeScheduled; + + /** + * Scheduled date for the Job.Provide only the date + * + * @param timeScheduled the value to set + * @return this builder + */ + public Builder timeScheduled(java.util.Date timeScheduled) { + this.timeScheduled = timeScheduled; + this.__explicitlySet__.add("timeScheduled"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateSchedulerJobDetails build() { + UpdateSchedulerJobDetails model = + new UpdateSchedulerJobDetails( + this.timeScheduled, this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateSchedulerJobDetails model) { + if (model.wasPropertyExplicitlySet("timeScheduled")) { + this.timeScheduled(model.getTimeScheduled()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Scheduled date for the Job.Provide only the date */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduled") + private final java.util.Date timeScheduled; + + /** + * Scheduled date for the Job.Provide only the date + * + * @return the value + */ + public java.util.Date getTimeScheduled() { + return timeScheduled; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateSchedulerJobDetails("); + sb.append("super=").append(super.toString()); + sb.append("timeScheduled=").append(String.valueOf(this.timeScheduled)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSchedulerJobDetails)) { + return false; + } + + UpdateSchedulerJobDetails other = (UpdateSchedulerJobDetails) o; + return java.util.Objects.equals(this.timeScheduled, other.timeScheduled) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.timeScheduled == null ? 43 : this.timeScheduled.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ValueType.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ValueType.java new file mode 100644 index 00000000000..a557e85d584 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/ValueType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Possible value types. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum ValueType implements com.oracle.bmc.http.internal.BmcEnum { + String("STRING"), + Numeric("NUMERIC"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ValueType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ValueType v : ValueType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ValueType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ValueType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ValueType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/VaultSecretCredentialDetails.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/VaultSecretCredentialDetails.java new file mode 100644 index 00000000000..d96a57f988b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/VaultSecretCredentialDetails.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Secret details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VaultSecretCredentialDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VaultSecretCredentialDetails extends CredentialDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * secret. + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretId") + private String secretId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * secret. + * + * @param secretId the value to set + * @return this builder + */ + public Builder secretId(String secretId) { + this.secretId = secretId; + this.__explicitlySet__.add("secretId"); + return this; + } + /** The secret version. */ + @com.fasterxml.jackson.annotation.JsonProperty("secretVersion") + private String secretVersion; + + /** + * The secret version. + * + * @param secretVersion the value to set + * @return this builder + */ + public Builder secretVersion(String secretVersion) { + this.secretVersion = secretVersion; + this.__explicitlySet__.add("secretVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VaultSecretCredentialDetails build() { + VaultSecretCredentialDetails model = + new VaultSecretCredentialDetails(this.secretId, this.secretVersion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VaultSecretCredentialDetails model) { + if (model.wasPropertyExplicitlySet("secretId")) { + this.secretId(model.getSecretId()); + } + if (model.wasPropertyExplicitlySet("secretVersion")) { + this.secretVersion(model.getSecretVersion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public VaultSecretCredentialDetails(String secretId, String secretVersion) { + super(); + this.secretId = secretId; + this.secretVersion = secretVersion; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * secret. + */ + @com.fasterxml.jackson.annotation.JsonProperty("secretId") + private final String secretId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * secret. + * + * @return the value + */ + public String getSecretId() { + return secretId; + } + + /** The secret version. */ + @com.fasterxml.jackson.annotation.JsonProperty("secretVersion") + private final String secretVersion; + + /** + * The secret version. + * + * @return the value + */ + public String getSecretVersion() { + return secretVersion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VaultSecretCredentialDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", secretId=").append(String.valueOf(this.secretId)); + sb.append(", secretVersion=").append(String.valueOf(this.secretVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VaultSecretCredentialDetails)) { + return false; + } + + VaultSecretCredentialDetails other = (VaultSecretCredentialDetails) o; + return java.util.Objects.equals(this.secretId, other.secretId) + && java.util.Objects.equals(this.secretVersion, other.secretVersion) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); + result = + (result * PRIME) + + (this.secretVersion == null ? 43 : this.secretVersion.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequest.java new file mode 100644 index 00000000000..4df8613e337 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequest.java @@ -0,0 +1,535 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * A description of workrequest status
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequest extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "timeUpdated" + }) + public WorkRequest( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Date timeUpdated) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * Type of the work request + * + * @param operationType the value to set + * @return this builder + */ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * Status of current work request. + * + * @param status the value to set + * @return this builder + */ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id of the work request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The OCID of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources affected by this work request. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Percentage of the request completed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeAccepted the value to set + * @return this builder + */ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + */ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * The date and time the object was updated, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the object was updated, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequest build() { + WorkRequest model = + new WorkRequest( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequest model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * Type of the work request + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * Status of current work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** The id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the work request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by this work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Percentage of the request completed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * The date and time the object was updated, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the object was updated, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequest("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequest)) { + return false; + } + + WorkRequest other = (WorkRequest) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestError.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestError.java new file mode 100644 index 00000000000..0a5920874a2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestError.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * An error encountered while executing a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestError + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "message", "timestamp"}) + public WorkRequestError(String code, String message, java.util.Date timestamp) { + super(); + this.code = code; + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** A human readable description of the issue encountered. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human readable description of the issue encountered. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** The time the error occured. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time the error occured. An RFC3339 formatted datetime string. + * + * @param timestamp the value to set + * @return this builder + */ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestError build() { + WorkRequestError model = new WorkRequestError(this.code, this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestError model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + * + * @return the value + */ + public String getCode() { + return code; + } + + /** A human readable description of the issue encountered. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human readable description of the issue encountered. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** The time the error occured. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time the error occured. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestError("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestError)) { + return false; + } + + WorkRequestError other = (WorkRequestError) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestErrorCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..f3576048e13 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestErrorCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a workRequestError search. Contains both WorkRequestError items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestErrorCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestErrorCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestErrorCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of workRequestError objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestError objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestErrorCollection build() { + WorkRequestErrorCollection model = new WorkRequestErrorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestErrorCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of workRequestError objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestError objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestErrorCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestErrorCollection)) { + return false; + } + + WorkRequestErrorCollection other = (WorkRequestErrorCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestLogEntry.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestLogEntry.java new file mode 100644 index 00000000000..cbfe1028803 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestLogEntry.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * A log message from the execution of a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntry.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntry + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"message", "timestamp"}) + public WorkRequestLogEntry(String message, java.util.Date timestamp) { + super(); + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * Human-readable log message. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** The time the log message was written. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time the log message was written. An RFC3339 formatted datetime string + * + * @param timestamp the value to set + * @return this builder + */ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntry build() { + WorkRequestLogEntry model = new WorkRequestLogEntry(this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntry model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Human-readable log message. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * Human-readable log message. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** The time the log message was written. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time the log message was written. An RFC3339 formatted datetime string + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntry("); + sb.append("super=").append(super.toString()); + sb.append("message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntry)) { + return false; + } + + WorkRequestLogEntry other = (WorkRequestLogEntry) o; + return java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestLogEntryCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..1ad2b514e0b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestLogEntryCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a workRequestLog search. Contains both workRequestLog items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestLogEntryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of workRequestLogEntries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestLogEntries. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntryCollection build() { + WorkRequestLogEntryCollection model = new WorkRequestLogEntryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of workRequestLogEntries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestLogEntries. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntryCollection)) { + return false; + } + + WorkRequestLogEntryCollection other = (WorkRequestLogEntryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestResource.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestResource.java new file mode 100644 index 00000000000..908001307f3 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestResource.java @@ -0,0 +1,307 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * A resource created or operated on by a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestResource + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "entityType", + "actionType", + "identifier", + "entityUri", + "metadata" + }) + public WorkRequestResource( + String entityType, + ActionType actionType, + String identifier, + String entityUri, + java.util.Map metadata) { + super(); + this.entityType = entityType; + this.actionType = actionType; + this.identifier = identifier; + this.entityUri = entityUri; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The resource type the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * The resource type the work request affects. + * + * @param entityType the value to set + * @return this builder + */ + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + /** + * The way in which this resource is affected by the work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The way in which this resource is affected by the work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** The identifier of the resource the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * The identifier of the resource the work request affects. + * + * @param identifier the value to set + * @return this builder + */ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + /** The URI path that the user can do a GET on to access the resource metadata */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * The URI path that the user can do a GET on to access the resource metadata + * + * @param entityUri the value to set + * @return this builder + */ + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestResource build() { + WorkRequestResource model = + new WorkRequestResource( + this.entityType, + this.actionType, + this.identifier, + this.entityUri, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestResource model) { + if (model.wasPropertyExplicitlySet("entityType")) { + this.entityType(model.getEntityType()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("entityUri")) { + this.entityUri(model.getEntityUri()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The resource type the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * The resource type the work request affects. + * + * @return the value + */ + public String getEntityType() { + return entityType; + } + + /** + * The way in which this resource is affected by the work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until work + * is complete for that resource at which point it will transition to CREATED, UPDATED, or + * DELETED, respectively. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The way in which this resource is affected by the work tracked in the work request. A + * resource being created, updated, or deleted will remain in the IN_PROGRESS state until work + * is complete for that resource at which point it will transition to CREATED, UPDATED, or + * DELETED, respectively. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** The identifier of the resource the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * The identifier of the resource the work request affects. + * + * @return the value + */ + public String getIdentifier() { + return identifier; + } + + /** The URI path that the user can do a GET on to access the resource metadata */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * The URI path that the user can do a GET on to access the resource metadata + * + * @return the value + */ + public String getEntityUri() { + return entityUri; + } + + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * + * @return the value + */ + public java.util.Map getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestResource("); + sb.append("super=").append(super.toString()); + sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(", entityUri=").append(String.valueOf(this.entityUri)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestResource)) { + return false; + } + + WorkRequestResource other = (WorkRequestResource) o; + return java.util.Objects.equals(this.entityType, other.entityType) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.identifier, other.identifier) + && java.util.Objects.equals(this.entityUri, other.entityUri) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + (this.entityUri == null ? 43 : this.entityUri.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestResourceMetadataKey.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestResourceMetadataKey.java new file mode 100644 index 00000000000..95ff9414338 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestResourceMetadataKey.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** Possible Metadata keys for workRequest resource metadata */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public enum WorkRequestResourceMetadataKey implements com.oracle.bmc.http.internal.BmcEnum { + IsDryRun("IS_DRY_RUN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(WorkRequestResourceMetadataKey.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WorkRequestResourceMetadataKey v : WorkRequestResourceMetadataKey.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + WorkRequestResourceMetadataKey(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkRequestResourceMetadataKey create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'WorkRequestResourceMetadataKey', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestSummary.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestSummary.java new file mode 100644 index 00000000000..3c956bed722 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestSummary.java @@ -0,0 +1,537 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * A summary of the status of a work request.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "timeUpdated" + }) + public WorkRequestSummary( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Date timeUpdated) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * Type of the work request + * + * @param operationType the value to set + * @return this builder + */ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * Status of current work request. + * + * @param status the value to set + * @return this builder + */ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** The id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id of the work request. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The OCID of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources affected by this work request. + * + * @param resources the value to set + * @return this builder + */ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Percentage of the request completed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeAccepted the value to set + * @return this builder + */ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @param timeStarted the value to set + * @return this builder + */ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + */ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * The date and time the object was updated, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the object was updated, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummary build() { + WorkRequestSummary model = + new WorkRequestSummary( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummary model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of the work request */ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * Type of the work request + * + * @return the value + */ + public OperationType getOperationType() { + return operationType; + } + + /** Status of current work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * Status of current work request. + * + * @return the value + */ + public OperationStatus getStatus() { + return status; + } + + /** The id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the work request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by this work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** Percentage of the request completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Percentage of the request completed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the request was created, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the request was started, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * The date and time the object was updated, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the object was updated, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummary("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummary)) { + return false; + } + + WorkRequestSummary other = (WorkRequestSummary) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestSummaryCollection.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestSummaryCollection.java new file mode 100644 index 00000000000..e522ee8e046 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkRequestSummaryCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Results of a workRequest search. Contains both WorkRequest items and other information, such as + * metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of workRequestSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestSummary objects. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummaryCollection build() { + WorkRequestSummaryCollection model = new WorkRequestSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of workRequestSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestSummary objects. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummaryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummaryCollection)) { + return false; + } + + WorkRequestSummaryCollection other = (WorkRequestSummaryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowComponent.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowComponent.java new file mode 100644 index 00000000000..8a8f86f705c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowComponent.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Workflow Component Details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = WorkflowComponent.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = WorkflowGroupComponent.class, + name = "PARALLEL_TASK_GROUP"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = WorkflowTaskComponent.class, + name = "TASK") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class WorkflowComponent extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected WorkflowComponent() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkflowComponent("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkflowComponent)) { + return false; + } + + WorkflowComponent other = (WorkflowComponent) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Content Source Details. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Task("TASK"), + ParallelTaskGroup("PARALLEL_TASK_GROUP"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowGroup.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowGroup.java new file mode 100644 index 00000000000..c53fa2784b8 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowGroup.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Workflow Group Layout.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkflowGroup.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkflowGroup extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"groupName", "type", "steps"}) + public WorkflowGroup(String groupName, Type type, java.util.List steps) { + super(); + this.groupName = groupName; + this.type = type; + this.steps = steps; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Provide the name of the group. */ + @com.fasterxml.jackson.annotation.JsonProperty("groupName") + private String groupName; + + /** + * Provide the name of the group. + * + * @param groupName the value to set + * @return this builder + */ + public Builder groupName(String groupName) { + this.groupName = groupName; + this.__explicitlySet__.add("groupName"); + return this; + } + /** Workflow Group Details. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Workflow Group Details. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** Steps within the Group. */ + @com.fasterxml.jackson.annotation.JsonProperty("steps") + private java.util.List steps; + + /** + * Steps within the Group. + * + * @param steps the value to set + * @return this builder + */ + public Builder steps(java.util.List steps) { + this.steps = steps; + this.__explicitlySet__.add("steps"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkflowGroup build() { + WorkflowGroup model = new WorkflowGroup(this.groupName, this.type, this.steps); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkflowGroup model) { + if (model.wasPropertyExplicitlySet("groupName")) { + this.groupName(model.getGroupName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("steps")) { + this.steps(model.getSteps()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Provide the name of the group. */ + @com.fasterxml.jackson.annotation.JsonProperty("groupName") + private final String groupName; + + /** + * Provide the name of the group. + * + * @return the value + */ + public String getGroupName() { + return groupName; + } + + /** Workflow Group Details. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + ParallelResourceGroup("PARALLEL_RESOURCE_GROUP"), + RollingResourceGroup("ROLLING_RESOURCE_GROUP"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** Workflow Group Details. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Workflow Group Details. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** Steps within the Group. */ + @com.fasterxml.jackson.annotation.JsonProperty("steps") + private final java.util.List steps; + + /** + * Steps within the Group. + * + * @return the value + */ + public java.util.List getSteps() { + return steps; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkflowGroup("); + sb.append("super=").append(super.toString()); + sb.append("groupName=").append(String.valueOf(this.groupName)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", steps=").append(String.valueOf(this.steps)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkflowGroup)) { + return false; + } + + WorkflowGroup other = (WorkflowGroup) o; + return java.util.Objects.equals(this.groupName, other.groupName) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.steps, other.steps) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.groupName == null ? 43 : this.groupName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.steps == null ? 43 : this.steps.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowGroupComponent.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowGroupComponent.java new file mode 100644 index 00000000000..dd693482981 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowGroupComponent.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Workflow Group Component Details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkflowGroupComponent.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkflowGroupComponent extends WorkflowComponent { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Provide the name of the group. */ + @com.fasterxml.jackson.annotation.JsonProperty("groupName") + private String groupName; + + /** + * Provide the name of the group. + * + * @param groupName the value to set + * @return this builder + */ + public Builder groupName(String groupName) { + this.groupName = groupName; + this.__explicitlySet__.add("groupName"); + return this; + } + /** Tasks within the Group. Provide the stepName for all tasks that are applicable */ + @com.fasterxml.jackson.annotation.JsonProperty("steps") + private java.util.List steps; + + /** + * Tasks within the Group. Provide the stepName for all tasks that are applicable + * + * @param steps the value to set + * @return this builder + */ + public Builder steps(java.util.List steps) { + this.steps = steps; + this.__explicitlySet__.add("steps"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkflowGroupComponent build() { + WorkflowGroupComponent model = new WorkflowGroupComponent(this.groupName, this.steps); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkflowGroupComponent model) { + if (model.wasPropertyExplicitlySet("groupName")) { + this.groupName(model.getGroupName()); + } + if (model.wasPropertyExplicitlySet("steps")) { + this.steps(model.getSteps()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public WorkflowGroupComponent(String groupName, java.util.List steps) { + super(); + this.groupName = groupName; + this.steps = steps; + } + + /** Provide the name of the group. */ + @com.fasterxml.jackson.annotation.JsonProperty("groupName") + private final String groupName; + + /** + * Provide the name of the group. + * + * @return the value + */ + public String getGroupName() { + return groupName; + } + + /** Tasks within the Group. Provide the stepName for all tasks that are applicable */ + @com.fasterxml.jackson.annotation.JsonProperty("steps") + private final java.util.List steps; + + /** + * Tasks within the Group. Provide the stepName for all tasks that are applicable + * + * @return the value + */ + public java.util.List getSteps() { + return steps; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkflowGroupComponent("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", groupName=").append(String.valueOf(this.groupName)); + sb.append(", steps=").append(String.valueOf(this.steps)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkflowGroupComponent)) { + return false; + } + + WorkflowGroupComponent other = (WorkflowGroupComponent) o; + return java.util.Objects.equals(this.groupName, other.groupName) + && java.util.Objects.equals(this.steps, other.steps) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.groupName == null ? 43 : this.groupName.hashCode()); + result = (result * PRIME) + (this.steps == null ? 43 : this.steps.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowTaskComponent.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowTaskComponent.java new file mode 100644 index 00000000000..7f5857efcd5 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/model/WorkflowTaskComponent.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.model; + +/** + * Workflow Task Component Details.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkflowTaskComponent.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkflowTaskComponent extends WorkflowComponent { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Provide StepName for the Task. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + /** + * Provide StepName for the Task. + * + * @param stepName the value to set + * @return this builder + */ + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkflowTaskComponent build() { + WorkflowTaskComponent model = new WorkflowTaskComponent(this.stepName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkflowTaskComponent model) { + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public WorkflowTaskComponent(String stepName) { + super(); + this.stepName = stepName; + } + + /** Provide StepName for the Task. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private final String stepName; + + /** + * Provide StepName for the Task. + * + * @return the value + */ + public String getStepName() { + return stepName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkflowTaskComponent("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", stepName=").append(String.valueOf(this.stepName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkflowTaskComponent)) { + return false; + } + + WorkflowTaskComponent other = (WorkflowTaskComponent) o; + return java.util.Objects.equals(this.stepName, other.stepName) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.stepName == null ? 43 : this.stepName.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CheckResourceTaggingRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CheckResourceTaggingRequest.java new file mode 100644 index 00000000000..eb8feb7b205 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CheckResourceTaggingRequest.java @@ -0,0 +1,282 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use CheckResourceTaggingRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CheckResourceTaggingRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.CheckResourceTaggingDetails> { + + /** Details for Checking if FAMS tags can be added for the resources */ + private com.oracle.bmc.fleetappsmanagement.model.CheckResourceTaggingDetails + checkResourceTaggingDetails; + + /** Details for Checking if FAMS tags can be added for the resources */ + public com.oracle.bmc.fleetappsmanagement.model.CheckResourceTaggingDetails + getCheckResourceTaggingDetails() { + return checkResourceTaggingDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.CheckResourceTaggingDetails getBody$() { + return checkResourceTaggingDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CheckResourceTaggingRequest, + com.oracle.bmc.fleetappsmanagement.model.CheckResourceTaggingDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for Checking if FAMS tags can be added for the resources */ + private com.oracle.bmc.fleetappsmanagement.model.CheckResourceTaggingDetails + checkResourceTaggingDetails = null; + + /** + * Details for Checking if FAMS tags can be added for the resources + * + * @param checkResourceTaggingDetails the value to set + * @return this builder instance + */ + public Builder checkResourceTaggingDetails( + com.oracle.bmc.fleetappsmanagement.model.CheckResourceTaggingDetails + checkResourceTaggingDetails) { + this.checkResourceTaggingDetails = checkResourceTaggingDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CheckResourceTaggingRequest o) { + checkResourceTaggingDetails(o.getCheckResourceTaggingDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CheckResourceTaggingRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of CheckResourceTaggingRequest + */ + public CheckResourceTaggingRequest build() { + CheckResourceTaggingRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.CheckResourceTaggingDetails body) { + checkResourceTaggingDetails(body); + return this; + } + + /** + * Build the instance of CheckResourceTaggingRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CheckResourceTaggingRequest + */ + public CheckResourceTaggingRequest buildWithoutInvocationCallback() { + CheckResourceTaggingRequest request = new CheckResourceTaggingRequest(); + request.checkResourceTaggingDetails = checkResourceTaggingDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CheckResourceTaggingRequest(checkResourceTaggingDetails, opcRetryToken, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .checkResourceTaggingDetails(checkResourceTaggingDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",checkResourceTaggingDetails=") + .append(String.valueOf(this.checkResourceTaggingDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CheckResourceTaggingRequest)) { + return false; + } + + CheckResourceTaggingRequest other = (CheckResourceTaggingRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.checkResourceTaggingDetails, other.checkResourceTaggingDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.checkResourceTaggingDetails == null + ? 43 + : this.checkResourceTaggingDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ConfirmTargetsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ConfirmTargetsRequest.java new file mode 100644 index 00000000000..fa288baab9c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ConfirmTargetsRequest.java @@ -0,0 +1,305 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ConfirmTargetsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ConfirmTargetsRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.ConfirmTargetsDetails> { + + /** Details for confirming Targets. */ + private com.oracle.bmc.fleetappsmanagement.model.ConfirmTargetsDetails confirmTargetsDetails; + + /** Details for confirming Targets. */ + public com.oracle.bmc.fleetappsmanagement.model.ConfirmTargetsDetails + getConfirmTargetsDetails() { + return confirmTargetsDetails; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.ConfirmTargetsDetails getBody$() { + return confirmTargetsDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ConfirmTargetsRequest, + com.oracle.bmc.fleetappsmanagement.model.ConfirmTargetsDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for confirming Targets. */ + private com.oracle.bmc.fleetappsmanagement.model.ConfirmTargetsDetails + confirmTargetsDetails = null; + + /** + * Details for confirming Targets. + * + * @param confirmTargetsDetails the value to set + * @return this builder instance + */ + public Builder confirmTargetsDetails( + com.oracle.bmc.fleetappsmanagement.model.ConfirmTargetsDetails + confirmTargetsDetails) { + this.confirmTargetsDetails = confirmTargetsDetails; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ConfirmTargetsRequest o) { + confirmTargetsDetails(o.getConfirmTargetsDetails()); + fleetId(o.getFleetId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ConfirmTargetsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ConfirmTargetsRequest + */ + public ConfirmTargetsRequest build() { + ConfirmTargetsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.fleetappsmanagement.model.ConfirmTargetsDetails body) { + confirmTargetsDetails(body); + return this; + } + + /** + * Build the instance of ConfirmTargetsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ConfirmTargetsRequest + */ + public ConfirmTargetsRequest buildWithoutInvocationCallback() { + ConfirmTargetsRequest request = new ConfirmTargetsRequest(); + request.confirmTargetsDetails = confirmTargetsDetails; + request.fleetId = fleetId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ConfirmTargetsRequest(confirmTargetsDetails, fleetId, opcRetryToken, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .confirmTargetsDetails(confirmTargetsDetails) + .fleetId(fleetId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",confirmTargetsDetails=").append(String.valueOf(this.confirmTargetsDetails)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfirmTargetsRequest)) { + return false; + } + + ConfirmTargetsRequest other = (ConfirmTargetsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.confirmTargetsDetails, other.confirmTargetsDetails) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.confirmTargetsDetails == null + ? 43 + : this.confirmTargetsDetails.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetCredentialRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetCredentialRequest.java new file mode 100644 index 00000000000..7665826cfc0 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetCredentialRequest.java @@ -0,0 +1,310 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * CreateFleetCredentialRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateFleetCredentialRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.CreateFleetCredentialDetails> { + + /** Details for the new FleetCredential. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateFleetCredentialDetails + createFleetCredentialDetails; + + /** Details for the new FleetCredential. */ + public com.oracle.bmc.fleetappsmanagement.model.CreateFleetCredentialDetails + getCreateFleetCredentialDetails() { + return createFleetCredentialDetails; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.CreateFleetCredentialDetails getBody$() { + return createFleetCredentialDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateFleetCredentialRequest, + com.oracle.bmc.fleetappsmanagement.model.CreateFleetCredentialDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new FleetCredential. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateFleetCredentialDetails + createFleetCredentialDetails = null; + + /** + * Details for the new FleetCredential. + * + * @param createFleetCredentialDetails the value to set + * @return this builder instance + */ + public Builder createFleetCredentialDetails( + com.oracle.bmc.fleetappsmanagement.model.CreateFleetCredentialDetails + createFleetCredentialDetails) { + this.createFleetCredentialDetails = createFleetCredentialDetails; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateFleetCredentialRequest o) { + createFleetCredentialDetails(o.getCreateFleetCredentialDetails()); + fleetId(o.getFleetId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateFleetCredentialRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of CreateFleetCredentialRequest + */ + public CreateFleetCredentialRequest build() { + CreateFleetCredentialRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.CreateFleetCredentialDetails body) { + createFleetCredentialDetails(body); + return this; + } + + /** + * Build the instance of CreateFleetCredentialRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateFleetCredentialRequest + */ + public CreateFleetCredentialRequest buildWithoutInvocationCallback() { + CreateFleetCredentialRequest request = new CreateFleetCredentialRequest(); + request.createFleetCredentialDetails = createFleetCredentialDetails; + request.fleetId = fleetId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateFleetCredentialRequest(createFleetCredentialDetails, fleetId, + // opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createFleetCredentialDetails(createFleetCredentialDetails) + .fleetId(fleetId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createFleetCredentialDetails=") + .append(String.valueOf(this.createFleetCredentialDetails)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetCredentialRequest)) { + return false; + } + + CreateFleetCredentialRequest other = (CreateFleetCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createFleetCredentialDetails, other.createFleetCredentialDetails) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createFleetCredentialDetails == null + ? 43 + : this.createFleetCredentialDetails.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetPropertyRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetPropertyRequest.java new file mode 100644 index 00000000000..cf2e16cf3a4 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetPropertyRequest.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use CreateFleetPropertyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateFleetPropertyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.CreateFleetPropertyDetails> { + + /** Details for the new FleetProperty. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateFleetPropertyDetails + createFleetPropertyDetails; + + /** Details for the new FleetProperty. */ + public com.oracle.bmc.fleetappsmanagement.model.CreateFleetPropertyDetails + getCreateFleetPropertyDetails() { + return createFleetPropertyDetails; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.CreateFleetPropertyDetails getBody$() { + return createFleetPropertyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateFleetPropertyRequest, + com.oracle.bmc.fleetappsmanagement.model.CreateFleetPropertyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new FleetProperty. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateFleetPropertyDetails + createFleetPropertyDetails = null; + + /** + * Details for the new FleetProperty. + * + * @param createFleetPropertyDetails the value to set + * @return this builder instance + */ + public Builder createFleetPropertyDetails( + com.oracle.bmc.fleetappsmanagement.model.CreateFleetPropertyDetails + createFleetPropertyDetails) { + this.createFleetPropertyDetails = createFleetPropertyDetails; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateFleetPropertyRequest o) { + createFleetPropertyDetails(o.getCreateFleetPropertyDetails()); + fleetId(o.getFleetId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateFleetPropertyRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of CreateFleetPropertyRequest + */ + public CreateFleetPropertyRequest build() { + CreateFleetPropertyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.CreateFleetPropertyDetails body) { + createFleetPropertyDetails(body); + return this; + } + + /** + * Build the instance of CreateFleetPropertyRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateFleetPropertyRequest + */ + public CreateFleetPropertyRequest buildWithoutInvocationCallback() { + CreateFleetPropertyRequest request = new CreateFleetPropertyRequest(); + request.createFleetPropertyDetails = createFleetPropertyDetails; + request.fleetId = fleetId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateFleetPropertyRequest(createFleetPropertyDetails, fleetId, opcRetryToken, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createFleetPropertyDetails(createFleetPropertyDetails) + .fleetId(fleetId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createFleetPropertyDetails=") + .append(String.valueOf(this.createFleetPropertyDetails)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetPropertyRequest)) { + return false; + } + + CreateFleetPropertyRequest other = (CreateFleetPropertyRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createFleetPropertyDetails, other.createFleetPropertyDetails) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createFleetPropertyDetails == null + ? 43 + : this.createFleetPropertyDetails.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetRequest.java new file mode 100644 index 00000000000..068802b302a --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetRequest.java @@ -0,0 +1,275 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use CreateFleetRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateFleetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.CreateFleetDetails> { + + /** Details for the new Fleet. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateFleetDetails createFleetDetails; + + /** Details for the new Fleet. */ + public com.oracle.bmc.fleetappsmanagement.model.CreateFleetDetails getCreateFleetDetails() { + return createFleetDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.CreateFleetDetails getBody$() { + return createFleetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateFleetRequest, + com.oracle.bmc.fleetappsmanagement.model.CreateFleetDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new Fleet. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateFleetDetails createFleetDetails = + null; + + /** + * Details for the new Fleet. + * + * @param createFleetDetails the value to set + * @return this builder instance + */ + public Builder createFleetDetails( + com.oracle.bmc.fleetappsmanagement.model.CreateFleetDetails createFleetDetails) { + this.createFleetDetails = createFleetDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateFleetRequest o) { + createFleetDetails(o.getCreateFleetDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateFleetRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of CreateFleetRequest + */ + public CreateFleetRequest build() { + CreateFleetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.fleetappsmanagement.model.CreateFleetDetails body) { + createFleetDetails(body); + return this; + } + + /** + * Build the instance of CreateFleetRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateFleetRequest + */ + public CreateFleetRequest buildWithoutInvocationCallback() { + CreateFleetRequest request = new CreateFleetRequest(); + request.createFleetDetails = createFleetDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateFleetRequest(createFleetDetails, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createFleetDetails(createFleetDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createFleetDetails=").append(String.valueOf(this.createFleetDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetRequest)) { + return false; + } + + CreateFleetRequest other = (CreateFleetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.createFleetDetails, other.createFleetDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createFleetDetails == null + ? 43 + : this.createFleetDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetResourceRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetResourceRequest.java new file mode 100644 index 00000000000..873d9f60021 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateFleetResourceRequest.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use CreateFleetResourceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateFleetResourceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.CreateFleetResourceDetails> { + + /** Details for the new FleetResource. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateFleetResourceDetails + createFleetResourceDetails; + + /** Details for the new FleetResource. */ + public com.oracle.bmc.fleetappsmanagement.model.CreateFleetResourceDetails + getCreateFleetResourceDetails() { + return createFleetResourceDetails; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.CreateFleetResourceDetails getBody$() { + return createFleetResourceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateFleetResourceRequest, + com.oracle.bmc.fleetappsmanagement.model.CreateFleetResourceDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new FleetResource. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateFleetResourceDetails + createFleetResourceDetails = null; + + /** + * Details for the new FleetResource. + * + * @param createFleetResourceDetails the value to set + * @return this builder instance + */ + public Builder createFleetResourceDetails( + com.oracle.bmc.fleetappsmanagement.model.CreateFleetResourceDetails + createFleetResourceDetails) { + this.createFleetResourceDetails = createFleetResourceDetails; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateFleetResourceRequest o) { + createFleetResourceDetails(o.getCreateFleetResourceDetails()); + fleetId(o.getFleetId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateFleetResourceRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of CreateFleetResourceRequest + */ + public CreateFleetResourceRequest build() { + CreateFleetResourceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.CreateFleetResourceDetails body) { + createFleetResourceDetails(body); + return this; + } + + /** + * Build the instance of CreateFleetResourceRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateFleetResourceRequest + */ + public CreateFleetResourceRequest buildWithoutInvocationCallback() { + CreateFleetResourceRequest request = new CreateFleetResourceRequest(); + request.createFleetResourceDetails = createFleetResourceDetails; + request.fleetId = fleetId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateFleetResourceRequest(createFleetResourceDetails, fleetId, opcRetryToken, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createFleetResourceDetails(createFleetResourceDetails) + .fleetId(fleetId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createFleetResourceDetails=") + .append(String.valueOf(this.createFleetResourceDetails)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetResourceRequest)) { + return false; + } + + CreateFleetResourceRequest other = (CreateFleetResourceRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createFleetResourceDetails, other.createFleetResourceDetails) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createFleetResourceDetails == null + ? 43 + : this.createFleetResourceDetails.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateMaintenanceWindowRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateMaintenanceWindowRequest.java new file mode 100644 index 00000000000..aceffd956b2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateMaintenanceWindowRequest.java @@ -0,0 +1,283 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * CreateMaintenanceWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateMaintenanceWindowRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.CreateMaintenanceWindowDetails> { + + /** Details for the new MaintenanceWindow. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateMaintenanceWindowDetails + createMaintenanceWindowDetails; + + /** Details for the new MaintenanceWindow. */ + public com.oracle.bmc.fleetappsmanagement.model.CreateMaintenanceWindowDetails + getCreateMaintenanceWindowDetails() { + return createMaintenanceWindowDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.CreateMaintenanceWindowDetails getBody$() { + return createMaintenanceWindowDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateMaintenanceWindowRequest, + com.oracle.bmc.fleetappsmanagement.model.CreateMaintenanceWindowDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new MaintenanceWindow. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateMaintenanceWindowDetails + createMaintenanceWindowDetails = null; + + /** + * Details for the new MaintenanceWindow. + * + * @param createMaintenanceWindowDetails the value to set + * @return this builder instance + */ + public Builder createMaintenanceWindowDetails( + com.oracle.bmc.fleetappsmanagement.model.CreateMaintenanceWindowDetails + createMaintenanceWindowDetails) { + this.createMaintenanceWindowDetails = createMaintenanceWindowDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateMaintenanceWindowRequest o) { + createMaintenanceWindowDetails(o.getCreateMaintenanceWindowDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateMaintenanceWindowRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of CreateMaintenanceWindowRequest + */ + public CreateMaintenanceWindowRequest build() { + CreateMaintenanceWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.CreateMaintenanceWindowDetails body) { + createMaintenanceWindowDetails(body); + return this; + } + + /** + * Build the instance of CreateMaintenanceWindowRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateMaintenanceWindowRequest + */ + public CreateMaintenanceWindowRequest buildWithoutInvocationCallback() { + CreateMaintenanceWindowRequest request = new CreateMaintenanceWindowRequest(); + request.createMaintenanceWindowDetails = createMaintenanceWindowDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateMaintenanceWindowRequest(createMaintenanceWindowDetails, opcRetryToken, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createMaintenanceWindowDetails(createMaintenanceWindowDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createMaintenanceWindowDetails=") + .append(String.valueOf(this.createMaintenanceWindowDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateMaintenanceWindowRequest)) { + return false; + } + + CreateMaintenanceWindowRequest other = (CreateMaintenanceWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createMaintenanceWindowDetails, other.createMaintenanceWindowDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createMaintenanceWindowDetails == null + ? 43 + : this.createMaintenanceWindowDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateOnboardingRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateOnboardingRequest.java new file mode 100644 index 00000000000..a63e5aec114 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateOnboardingRequest.java @@ -0,0 +1,280 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use CreateOnboardingRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateOnboardingRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.CreateOnboardingDetails> { + + /** Details for onboarding FAMS. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateOnboardingDetails + createOnboardingDetails; + + /** Details for onboarding FAMS. */ + public com.oracle.bmc.fleetappsmanagement.model.CreateOnboardingDetails + getCreateOnboardingDetails() { + return createOnboardingDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.CreateOnboardingDetails getBody$() { + return createOnboardingDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateOnboardingRequest, + com.oracle.bmc.fleetappsmanagement.model.CreateOnboardingDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for onboarding FAMS. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateOnboardingDetails + createOnboardingDetails = null; + + /** + * Details for onboarding FAMS. + * + * @param createOnboardingDetails the value to set + * @return this builder instance + */ + public Builder createOnboardingDetails( + com.oracle.bmc.fleetappsmanagement.model.CreateOnboardingDetails + createOnboardingDetails) { + this.createOnboardingDetails = createOnboardingDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateOnboardingRequest o) { + createOnboardingDetails(o.getCreateOnboardingDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateOnboardingRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of CreateOnboardingRequest + */ + public CreateOnboardingRequest build() { + CreateOnboardingRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.CreateOnboardingDetails body) { + createOnboardingDetails(body); + return this; + } + + /** + * Build the instance of CreateOnboardingRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateOnboardingRequest + */ + public CreateOnboardingRequest buildWithoutInvocationCallback() { + CreateOnboardingRequest request = new CreateOnboardingRequest(); + request.createOnboardingDetails = createOnboardingDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateOnboardingRequest(createOnboardingDetails, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createOnboardingDetails(createOnboardingDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createOnboardingDetails=").append(String.valueOf(this.createOnboardingDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOnboardingRequest)) { + return false; + } + + CreateOnboardingRequest other = (CreateOnboardingRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createOnboardingDetails, other.createOnboardingDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createOnboardingDetails == null + ? 43 + : this.createOnboardingDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreatePropertyRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreatePropertyRequest.java new file mode 100644 index 00000000000..157fea534d0 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreatePropertyRequest.java @@ -0,0 +1,277 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use CreatePropertyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreatePropertyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.CreatePropertyDetails> { + + /** Details for the new Property. */ + private com.oracle.bmc.fleetappsmanagement.model.CreatePropertyDetails createPropertyDetails; + + /** Details for the new Property. */ + public com.oracle.bmc.fleetappsmanagement.model.CreatePropertyDetails + getCreatePropertyDetails() { + return createPropertyDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.CreatePropertyDetails getBody$() { + return createPropertyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreatePropertyRequest, + com.oracle.bmc.fleetappsmanagement.model.CreatePropertyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new Property. */ + private com.oracle.bmc.fleetappsmanagement.model.CreatePropertyDetails + createPropertyDetails = null; + + /** + * Details for the new Property. + * + * @param createPropertyDetails the value to set + * @return this builder instance + */ + public Builder createPropertyDetails( + com.oracle.bmc.fleetappsmanagement.model.CreatePropertyDetails + createPropertyDetails) { + this.createPropertyDetails = createPropertyDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreatePropertyRequest o) { + createPropertyDetails(o.getCreatePropertyDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreatePropertyRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of CreatePropertyRequest + */ + public CreatePropertyRequest build() { + CreatePropertyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.fleetappsmanagement.model.CreatePropertyDetails body) { + createPropertyDetails(body); + return this; + } + + /** + * Build the instance of CreatePropertyRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreatePropertyRequest + */ + public CreatePropertyRequest buildWithoutInvocationCallback() { + CreatePropertyRequest request = new CreatePropertyRequest(); + request.createPropertyDetails = createPropertyDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreatePropertyRequest(createPropertyDetails, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createPropertyDetails(createPropertyDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createPropertyDetails=").append(String.valueOf(this.createPropertyDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreatePropertyRequest)) { + return false; + } + + CreatePropertyRequest other = (CreatePropertyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.createPropertyDetails, other.createPropertyDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createPropertyDetails == null + ? 43 + : this.createPropertyDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateSchedulerDefinitionRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateSchedulerDefinitionRequest.java new file mode 100644 index 00000000000..718b0aa49e0 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/CreateSchedulerDefinitionRequest.java @@ -0,0 +1,284 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * CreateSchedulerDefinitionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateSchedulerDefinitionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.CreateSchedulerDefinitionDetails> { + + /** Details for the new SchedulerDefinition. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateSchedulerDefinitionDetails + createSchedulerDefinitionDetails; + + /** Details for the new SchedulerDefinition. */ + public com.oracle.bmc.fleetappsmanagement.model.CreateSchedulerDefinitionDetails + getCreateSchedulerDefinitionDetails() { + return createSchedulerDefinitionDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.CreateSchedulerDefinitionDetails getBody$() { + return createSchedulerDefinitionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateSchedulerDefinitionRequest, + com.oracle.bmc.fleetappsmanagement.model.CreateSchedulerDefinitionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new SchedulerDefinition. */ + private com.oracle.bmc.fleetappsmanagement.model.CreateSchedulerDefinitionDetails + createSchedulerDefinitionDetails = null; + + /** + * Details for the new SchedulerDefinition. + * + * @param createSchedulerDefinitionDetails the value to set + * @return this builder instance + */ + public Builder createSchedulerDefinitionDetails( + com.oracle.bmc.fleetappsmanagement.model.CreateSchedulerDefinitionDetails + createSchedulerDefinitionDetails) { + this.createSchedulerDefinitionDetails = createSchedulerDefinitionDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateSchedulerDefinitionRequest o) { + createSchedulerDefinitionDetails(o.getCreateSchedulerDefinitionDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateSchedulerDefinitionRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of CreateSchedulerDefinitionRequest + */ + public CreateSchedulerDefinitionRequest build() { + CreateSchedulerDefinitionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.CreateSchedulerDefinitionDetails body) { + createSchedulerDefinitionDetails(body); + return this; + } + + /** + * Build the instance of CreateSchedulerDefinitionRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateSchedulerDefinitionRequest + */ + public CreateSchedulerDefinitionRequest buildWithoutInvocationCallback() { + CreateSchedulerDefinitionRequest request = new CreateSchedulerDefinitionRequest(); + request.createSchedulerDefinitionDetails = createSchedulerDefinitionDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateSchedulerDefinitionRequest(createSchedulerDefinitionDetails, opcRetryToken, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createSchedulerDefinitionDetails(createSchedulerDefinitionDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createSchedulerDefinitionDetails=") + .append(String.valueOf(this.createSchedulerDefinitionDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSchedulerDefinitionRequest)) { + return false; + } + + CreateSchedulerDefinitionRequest other = (CreateSchedulerDefinitionRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createSchedulerDefinitionDetails, + other.createSchedulerDefinitionDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createSchedulerDefinitionDetails == null + ? 43 + : this.createSchedulerDefinitionDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetCredentialRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetCredentialRequest.java new file mode 100644 index 00000000000..719209011bd --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetCredentialRequest.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * DeleteFleetCredentialRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteFleetCredentialRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique FleetCredential identifier */ + private String fleetCredentialId; + + /** unique FleetCredential identifier */ + public String getFleetCredentialId() { + return fleetCredentialId; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteFleetCredentialRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FleetCredential identifier */ + private String fleetCredentialId = null; + + /** + * unique FleetCredential identifier + * + * @param fleetCredentialId the value to set + * @return this builder instance + */ + public Builder fleetCredentialId(String fleetCredentialId) { + this.fleetCredentialId = fleetCredentialId; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteFleetCredentialRequest o) { + fleetCredentialId(o.getFleetCredentialId()); + fleetId(o.getFleetId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteFleetCredentialRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of DeleteFleetCredentialRequest + */ + public DeleteFleetCredentialRequest build() { + DeleteFleetCredentialRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteFleetCredentialRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteFleetCredentialRequest + */ + public DeleteFleetCredentialRequest buildWithoutInvocationCallback() { + DeleteFleetCredentialRequest request = new DeleteFleetCredentialRequest(); + request.fleetCredentialId = fleetCredentialId; + request.fleetId = fleetId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteFleetCredentialRequest(fleetCredentialId, fleetId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetCredentialId(fleetCredentialId) + .fleetId(fleetId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetCredentialId=").append(String.valueOf(this.fleetCredentialId)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteFleetCredentialRequest)) { + return false; + } + + DeleteFleetCredentialRequest other = (DeleteFleetCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetCredentialId, other.fleetCredentialId) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fleetCredentialId == null ? 43 : this.fleetCredentialId.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetPropertyRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetPropertyRequest.java new file mode 100644 index 00000000000..3b14132db04 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetPropertyRequest.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use DeleteFleetPropertyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteFleetPropertyRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique FleetProperty identifier */ + private String fleetPropertyId; + + /** unique FleetProperty identifier */ + public String getFleetPropertyId() { + return fleetPropertyId; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteFleetPropertyRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FleetProperty identifier */ + private String fleetPropertyId = null; + + /** + * unique FleetProperty identifier + * + * @param fleetPropertyId the value to set + * @return this builder instance + */ + public Builder fleetPropertyId(String fleetPropertyId) { + this.fleetPropertyId = fleetPropertyId; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteFleetPropertyRequest o) { + fleetPropertyId(o.getFleetPropertyId()); + fleetId(o.getFleetId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteFleetPropertyRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of DeleteFleetPropertyRequest + */ + public DeleteFleetPropertyRequest build() { + DeleteFleetPropertyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteFleetPropertyRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteFleetPropertyRequest + */ + public DeleteFleetPropertyRequest buildWithoutInvocationCallback() { + DeleteFleetPropertyRequest request = new DeleteFleetPropertyRequest(); + request.fleetPropertyId = fleetPropertyId; + request.fleetId = fleetId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteFleetPropertyRequest(fleetPropertyId, fleetId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetPropertyId(fleetPropertyId) + .fleetId(fleetId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetPropertyId=").append(String.valueOf(this.fleetPropertyId)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteFleetPropertyRequest)) { + return false; + } + + DeleteFleetPropertyRequest other = (DeleteFleetPropertyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetPropertyId, other.fleetPropertyId) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fleetPropertyId == null ? 43 : this.fleetPropertyId.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetRequest.java new file mode 100644 index 00000000000..8fe3f2978fb --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetRequest.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use DeleteFleetRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteFleetRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteFleetRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteFleetRequest o) { + fleetId(o.getFleetId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteFleetRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of DeleteFleetRequest + */ + public DeleteFleetRequest build() { + DeleteFleetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteFleetRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteFleetRequest + */ + public DeleteFleetRequest buildWithoutInvocationCallback() { + DeleteFleetRequest request = new DeleteFleetRequest(); + request.fleetId = fleetId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteFleetRequest(fleetId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().fleetId(fleetId).ifMatch(ifMatch).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteFleetRequest)) { + return false; + } + + DeleteFleetRequest other = (DeleteFleetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetResourceRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetResourceRequest.java new file mode 100644 index 00000000000..0447066afde --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteFleetResourceRequest.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use DeleteFleetResourceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteFleetResourceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique FleetResource identifier */ + private String fleetResourceId; + + /** unique FleetResource identifier */ + public String getFleetResourceId() { + return fleetResourceId; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteFleetResourceRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FleetResource identifier */ + private String fleetResourceId = null; + + /** + * unique FleetResource identifier + * + * @param fleetResourceId the value to set + * @return this builder instance + */ + public Builder fleetResourceId(String fleetResourceId) { + this.fleetResourceId = fleetResourceId; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteFleetResourceRequest o) { + fleetResourceId(o.getFleetResourceId()); + fleetId(o.getFleetId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteFleetResourceRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of DeleteFleetResourceRequest + */ + public DeleteFleetResourceRequest build() { + DeleteFleetResourceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteFleetResourceRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteFleetResourceRequest + */ + public DeleteFleetResourceRequest buildWithoutInvocationCallback() { + DeleteFleetResourceRequest request = new DeleteFleetResourceRequest(); + request.fleetResourceId = fleetResourceId; + request.fleetId = fleetId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteFleetResourceRequest(fleetResourceId, fleetId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetResourceId(fleetResourceId) + .fleetId(fleetId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetResourceId=").append(String.valueOf(this.fleetResourceId)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteFleetResourceRequest)) { + return false; + } + + DeleteFleetResourceRequest other = (DeleteFleetResourceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetResourceId, other.fleetResourceId) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fleetResourceId == null ? 43 : this.fleetResourceId.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteMaintenanceWindowRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteMaintenanceWindowRequest.java new file mode 100644 index 00000000000..d0976095354 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteMaintenanceWindowRequest.java @@ -0,0 +1,243 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * DeleteMaintenanceWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteMaintenanceWindowRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique MaintenanceWindow identifier */ + private String maintenanceWindowId; + + /** unique MaintenanceWindow identifier */ + public String getMaintenanceWindowId() { + return maintenanceWindowId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteMaintenanceWindowRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique MaintenanceWindow identifier */ + private String maintenanceWindowId = null; + + /** + * unique MaintenanceWindow identifier + * + * @param maintenanceWindowId the value to set + * @return this builder instance + */ + public Builder maintenanceWindowId(String maintenanceWindowId) { + this.maintenanceWindowId = maintenanceWindowId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteMaintenanceWindowRequest o) { + maintenanceWindowId(o.getMaintenanceWindowId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteMaintenanceWindowRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of DeleteMaintenanceWindowRequest + */ + public DeleteMaintenanceWindowRequest build() { + DeleteMaintenanceWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteMaintenanceWindowRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteMaintenanceWindowRequest + */ + public DeleteMaintenanceWindowRequest buildWithoutInvocationCallback() { + DeleteMaintenanceWindowRequest request = new DeleteMaintenanceWindowRequest(); + request.maintenanceWindowId = maintenanceWindowId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteMaintenanceWindowRequest(maintenanceWindowId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .maintenanceWindowId(maintenanceWindowId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",maintenanceWindowId=").append(String.valueOf(this.maintenanceWindowId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteMaintenanceWindowRequest)) { + return false; + } + + DeleteMaintenanceWindowRequest other = (DeleteMaintenanceWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.maintenanceWindowId, other.maintenanceWindowId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.maintenanceWindowId == null + ? 43 + : this.maintenanceWindowId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeletePropertyRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeletePropertyRequest.java new file mode 100644 index 00000000000..83ad7e58103 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeletePropertyRequest.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use DeletePropertyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeletePropertyRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Property identifier */ + private String propertyId; + + /** unique Property identifier */ + public String getPropertyId() { + return propertyId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeletePropertyRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Property identifier */ + private String propertyId = null; + + /** + * unique Property identifier + * + * @param propertyId the value to set + * @return this builder instance + */ + public Builder propertyId(String propertyId) { + this.propertyId = propertyId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeletePropertyRequest o) { + propertyId(o.getPropertyId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeletePropertyRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of DeletePropertyRequest + */ + public DeletePropertyRequest build() { + DeletePropertyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeletePropertyRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeletePropertyRequest + */ + public DeletePropertyRequest buildWithoutInvocationCallback() { + DeletePropertyRequest request = new DeletePropertyRequest(); + request.propertyId = propertyId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeletePropertyRequest(propertyId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().propertyId(propertyId).ifMatch(ifMatch).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",propertyId=").append(String.valueOf(this.propertyId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeletePropertyRequest)) { + return false; + } + + DeletePropertyRequest other = (DeletePropertyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.propertyId, other.propertyId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.propertyId == null ? 43 : this.propertyId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteSchedulerDefinitionRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteSchedulerDefinitionRequest.java new file mode 100644 index 00000000000..968a5440dfb --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteSchedulerDefinitionRequest.java @@ -0,0 +1,243 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * DeleteSchedulerDefinitionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteSchedulerDefinitionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique SchedulerDefinition identifier */ + private String schedulerDefinitionId; + + /** unique SchedulerDefinition identifier */ + public String getSchedulerDefinitionId() { + return schedulerDefinitionId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteSchedulerDefinitionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique SchedulerDefinition identifier */ + private String schedulerDefinitionId = null; + + /** + * unique SchedulerDefinition identifier + * + * @param schedulerDefinitionId the value to set + * @return this builder instance + */ + public Builder schedulerDefinitionId(String schedulerDefinitionId) { + this.schedulerDefinitionId = schedulerDefinitionId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteSchedulerDefinitionRequest o) { + schedulerDefinitionId(o.getSchedulerDefinitionId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteSchedulerDefinitionRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of DeleteSchedulerDefinitionRequest + */ + public DeleteSchedulerDefinitionRequest build() { + DeleteSchedulerDefinitionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteSchedulerDefinitionRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteSchedulerDefinitionRequest + */ + public DeleteSchedulerDefinitionRequest buildWithoutInvocationCallback() { + DeleteSchedulerDefinitionRequest request = new DeleteSchedulerDefinitionRequest(); + request.schedulerDefinitionId = schedulerDefinitionId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteSchedulerDefinitionRequest(schedulerDefinitionId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .schedulerDefinitionId(schedulerDefinitionId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",schedulerDefinitionId=").append(String.valueOf(this.schedulerDefinitionId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteSchedulerDefinitionRequest)) { + return false; + } + + DeleteSchedulerDefinitionRequest other = (DeleteSchedulerDefinitionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulerDefinitionId, other.schedulerDefinitionId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulerDefinitionId == null + ? 43 + : this.schedulerDefinitionId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteSchedulerJobRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteSchedulerJobRequest.java new file mode 100644 index 00000000000..f41ed4f7e65 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/DeleteSchedulerJobRequest.java @@ -0,0 +1,239 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use DeleteSchedulerJobRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteSchedulerJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique SchedulerJob identifier */ + private String schedulerJobId; + + /** unique SchedulerJob identifier */ + public String getSchedulerJobId() { + return schedulerJobId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteSchedulerJobRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique SchedulerJob identifier */ + private String schedulerJobId = null; + + /** + * unique SchedulerJob identifier + * + * @param schedulerJobId the value to set + * @return this builder instance + */ + public Builder schedulerJobId(String schedulerJobId) { + this.schedulerJobId = schedulerJobId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteSchedulerJobRequest o) { + schedulerJobId(o.getSchedulerJobId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteSchedulerJobRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of DeleteSchedulerJobRequest + */ + public DeleteSchedulerJobRequest build() { + DeleteSchedulerJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteSchedulerJobRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteSchedulerJobRequest + */ + public DeleteSchedulerJobRequest buildWithoutInvocationCallback() { + DeleteSchedulerJobRequest request = new DeleteSchedulerJobRequest(); + request.schedulerJobId = schedulerJobId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteSchedulerJobRequest(schedulerJobId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .schedulerJobId(schedulerJobId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",schedulerJobId=").append(String.valueOf(this.schedulerJobId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteSchedulerJobRequest)) { + return false; + } + + DeleteSchedulerJobRequest other = (DeleteSchedulerJobRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulerJobId, other.schedulerJobId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulerJobId == null ? 43 : this.schedulerJobId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GenerateComplianceReportRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GenerateComplianceReportRequest.java new file mode 100644 index 00000000000..b7baf8db2bc --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GenerateComplianceReportRequest.java @@ -0,0 +1,310 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * GenerateComplianceReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GenerateComplianceReportRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.GenerateComplianceReportDetails> { + + /** Details for generating Compliance Report fort the Fleet. */ + private com.oracle.bmc.fleetappsmanagement.model.GenerateComplianceReportDetails + generateComplianceReportDetails; + + /** Details for generating Compliance Report fort the Fleet. */ + public com.oracle.bmc.fleetappsmanagement.model.GenerateComplianceReportDetails + getGenerateComplianceReportDetails() { + return generateComplianceReportDetails; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.GenerateComplianceReportDetails getBody$() { + return generateComplianceReportDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateComplianceReportRequest, + com.oracle.bmc.fleetappsmanagement.model.GenerateComplianceReportDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for generating Compliance Report fort the Fleet. */ + private com.oracle.bmc.fleetappsmanagement.model.GenerateComplianceReportDetails + generateComplianceReportDetails = null; + + /** + * Details for generating Compliance Report fort the Fleet. + * + * @param generateComplianceReportDetails the value to set + * @return this builder instance + */ + public Builder generateComplianceReportDetails( + com.oracle.bmc.fleetappsmanagement.model.GenerateComplianceReportDetails + generateComplianceReportDetails) { + this.generateComplianceReportDetails = generateComplianceReportDetails; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GenerateComplianceReportRequest o) { + generateComplianceReportDetails(o.getGenerateComplianceReportDetails()); + fleetId(o.getFleetId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateComplianceReportRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GenerateComplianceReportRequest + */ + public GenerateComplianceReportRequest build() { + GenerateComplianceReportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.GenerateComplianceReportDetails body) { + generateComplianceReportDetails(body); + return this; + } + + /** + * Build the instance of GenerateComplianceReportRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GenerateComplianceReportRequest + */ + public GenerateComplianceReportRequest buildWithoutInvocationCallback() { + GenerateComplianceReportRequest request = new GenerateComplianceReportRequest(); + request.generateComplianceReportDetails = generateComplianceReportDetails; + request.fleetId = fleetId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new GenerateComplianceReportRequest(generateComplianceReportDetails, fleetId, + // opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .generateComplianceReportDetails(generateComplianceReportDetails) + .fleetId(fleetId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",generateComplianceReportDetails=") + .append(String.valueOf(this.generateComplianceReportDetails)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateComplianceReportRequest)) { + return false; + } + + GenerateComplianceReportRequest other = (GenerateComplianceReportRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.generateComplianceReportDetails, other.generateComplianceReportDetails) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.generateComplianceReportDetails == null + ? 43 + : this.generateComplianceReportDetails.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetComplianceReportRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetComplianceReportRequest.java new file mode 100644 index 00000000000..890663aa56d --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetComplianceReportRequest.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetComplianceReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetComplianceReportRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** compliance report identifier */ + private String complianceReportId; + + /** compliance report identifier */ + public String getComplianceReportId() { + return complianceReportId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetComplianceReportRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** compliance report identifier */ + private String complianceReportId = null; + + /** + * compliance report identifier + * + * @param complianceReportId the value to set + * @return this builder instance + */ + public Builder complianceReportId(String complianceReportId) { + this.complianceReportId = complianceReportId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetComplianceReportRequest o) { + fleetId(o.getFleetId()); + complianceReportId(o.getComplianceReportId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetComplianceReportRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetComplianceReportRequest + */ + public GetComplianceReportRequest build() { + GetComplianceReportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetComplianceReportRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetComplianceReportRequest + */ + public GetComplianceReportRequest buildWithoutInvocationCallback() { + GetComplianceReportRequest request = new GetComplianceReportRequest(); + request.fleetId = fleetId; + request.complianceReportId = complianceReportId; + request.opcRequestId = opcRequestId; + return request; + // new GetComplianceReportRequest(fleetId, complianceReportId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetId(fleetId) + .complianceReportId(complianceReportId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",complianceReportId=").append(String.valueOf(this.complianceReportId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetComplianceReportRequest)) { + return false; + } + + GetComplianceReportRequest other = (GetComplianceReportRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.complianceReportId, other.complianceReportId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.complianceReportId == null + ? 43 + : this.complianceReportId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetExecutionRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetExecutionRequest.java new file mode 100644 index 00000000000..de7443491cf --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetExecutionRequest.java @@ -0,0 +1,278 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetExecutionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetExecutionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique SchedulerJob identifier */ + private String schedulerJobId; + + /** unique SchedulerJob identifier */ + public String getSchedulerJobId() { + return schedulerJobId; + } + /** unique jobActivity identifier */ + private String jobActivityId; + + /** unique jobActivity identifier */ + public String getJobActivityId() { + return jobActivityId; + } + /** unique Resource identifier */ + private String resourceId; + + /** unique Resource identifier */ + public String getResourceId() { + return resourceId; + } + /** Execution Id */ + private String executionId; + + /** Execution Id */ + public String getExecutionId() { + return executionId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetExecutionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique SchedulerJob identifier */ + private String schedulerJobId = null; + + /** + * unique SchedulerJob identifier + * + * @param schedulerJobId the value to set + * @return this builder instance + */ + public Builder schedulerJobId(String schedulerJobId) { + this.schedulerJobId = schedulerJobId; + return this; + } + + /** unique jobActivity identifier */ + private String jobActivityId = null; + + /** + * unique jobActivity identifier + * + * @param jobActivityId the value to set + * @return this builder instance + */ + public Builder jobActivityId(String jobActivityId) { + this.jobActivityId = jobActivityId; + return this; + } + + /** unique Resource identifier */ + private String resourceId = null; + + /** + * unique Resource identifier + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** Execution Id */ + private String executionId = null; + + /** + * Execution Id + * + * @param executionId the value to set + * @return this builder instance + */ + public Builder executionId(String executionId) { + this.executionId = executionId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetExecutionRequest o) { + schedulerJobId(o.getSchedulerJobId()); + jobActivityId(o.getJobActivityId()); + resourceId(o.getResourceId()); + executionId(o.getExecutionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetExecutionRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetExecutionRequest + */ + public GetExecutionRequest build() { + GetExecutionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetExecutionRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetExecutionRequest + */ + public GetExecutionRequest buildWithoutInvocationCallback() { + GetExecutionRequest request = new GetExecutionRequest(); + request.schedulerJobId = schedulerJobId; + request.jobActivityId = jobActivityId; + request.resourceId = resourceId; + request.executionId = executionId; + request.opcRequestId = opcRequestId; + return request; + // new GetExecutionRequest(schedulerJobId, jobActivityId, resourceId, executionId, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .schedulerJobId(schedulerJobId) + .jobActivityId(jobActivityId) + .resourceId(resourceId) + .executionId(executionId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",schedulerJobId=").append(String.valueOf(this.schedulerJobId)); + sb.append(",jobActivityId=").append(String.valueOf(this.jobActivityId)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",executionId=").append(String.valueOf(this.executionId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetExecutionRequest)) { + return false; + } + + GetExecutionRequest other = (GetExecutionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulerJobId, other.schedulerJobId) + && java.util.Objects.equals(this.jobActivityId, other.jobActivityId) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.executionId, other.executionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulerJobId == null ? 43 : this.schedulerJobId.hashCode()); + result = + (result * PRIME) + + (this.jobActivityId == null ? 43 : this.jobActivityId.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.executionId == null ? 43 : this.executionId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetCredentialRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetCredentialRequest.java new file mode 100644 index 00000000000..1254769db59 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetCredentialRequest.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetFleetCredentialRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetFleetCredentialRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique FleetCredential identifier */ + private String fleetCredentialId; + + /** unique FleetCredential identifier */ + public String getFleetCredentialId() { + return fleetCredentialId; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetFleetCredentialRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FleetCredential identifier */ + private String fleetCredentialId = null; + + /** + * unique FleetCredential identifier + * + * @param fleetCredentialId the value to set + * @return this builder instance + */ + public Builder fleetCredentialId(String fleetCredentialId) { + this.fleetCredentialId = fleetCredentialId; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetFleetCredentialRequest o) { + fleetCredentialId(o.getFleetCredentialId()); + fleetId(o.getFleetId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetFleetCredentialRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetFleetCredentialRequest + */ + public GetFleetCredentialRequest build() { + GetFleetCredentialRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetFleetCredentialRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetFleetCredentialRequest + */ + public GetFleetCredentialRequest buildWithoutInvocationCallback() { + GetFleetCredentialRequest request = new GetFleetCredentialRequest(); + request.fleetCredentialId = fleetCredentialId; + request.fleetId = fleetId; + request.opcRequestId = opcRequestId; + return request; + // new GetFleetCredentialRequest(fleetCredentialId, fleetId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetCredentialId(fleetCredentialId) + .fleetId(fleetId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetCredentialId=").append(String.valueOf(this.fleetCredentialId)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetFleetCredentialRequest)) { + return false; + } + + GetFleetCredentialRequest other = (GetFleetCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetCredentialId, other.fleetCredentialId) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fleetCredentialId == null ? 43 : this.fleetCredentialId.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetPropertyRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetPropertyRequest.java new file mode 100644 index 00000000000..3d2f769889d --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetPropertyRequest.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetFleetPropertyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetFleetPropertyRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique FleetProperty identifier */ + private String fleetPropertyId; + + /** unique FleetProperty identifier */ + public String getFleetPropertyId() { + return fleetPropertyId; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetFleetPropertyRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FleetProperty identifier */ + private String fleetPropertyId = null; + + /** + * unique FleetProperty identifier + * + * @param fleetPropertyId the value to set + * @return this builder instance + */ + public Builder fleetPropertyId(String fleetPropertyId) { + this.fleetPropertyId = fleetPropertyId; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetFleetPropertyRequest o) { + fleetPropertyId(o.getFleetPropertyId()); + fleetId(o.getFleetId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetFleetPropertyRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetFleetPropertyRequest + */ + public GetFleetPropertyRequest build() { + GetFleetPropertyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetFleetPropertyRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetFleetPropertyRequest + */ + public GetFleetPropertyRequest buildWithoutInvocationCallback() { + GetFleetPropertyRequest request = new GetFleetPropertyRequest(); + request.fleetPropertyId = fleetPropertyId; + request.fleetId = fleetId; + request.opcRequestId = opcRequestId; + return request; + // new GetFleetPropertyRequest(fleetPropertyId, fleetId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetPropertyId(fleetPropertyId) + .fleetId(fleetId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetPropertyId=").append(String.valueOf(this.fleetPropertyId)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetFleetPropertyRequest)) { + return false; + } + + GetFleetPropertyRequest other = (GetFleetPropertyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetPropertyId, other.fleetPropertyId) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fleetPropertyId == null ? 43 : this.fleetPropertyId.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetRequest.java new file mode 100644 index 00000000000..33dd6b65e08 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetRequest.java @@ -0,0 +1,189 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetFleetRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetFleetRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetFleetRequest o) { + fleetId(o.getFleetId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetFleetRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetFleetRequest + */ + public GetFleetRequest build() { + GetFleetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetFleetRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetFleetRequest + */ + public GetFleetRequest buildWithoutInvocationCallback() { + GetFleetRequest request = new GetFleetRequest(); + request.fleetId = fleetId; + request.opcRequestId = opcRequestId; + return request; + // new GetFleetRequest(fleetId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().fleetId(fleetId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetFleetRequest)) { + return false; + } + + GetFleetRequest other = (GetFleetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetResourceRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetResourceRequest.java new file mode 100644 index 00000000000..5e081dd6690 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetFleetResourceRequest.java @@ -0,0 +1,221 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetFleetResourceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetFleetResourceRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique FleetResource identifier */ + private String fleetResourceId; + + /** unique FleetResource identifier */ + public String getFleetResourceId() { + return fleetResourceId; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetFleetResourceRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FleetResource identifier */ + private String fleetResourceId = null; + + /** + * unique FleetResource identifier + * + * @param fleetResourceId the value to set + * @return this builder instance + */ + public Builder fleetResourceId(String fleetResourceId) { + this.fleetResourceId = fleetResourceId; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetFleetResourceRequest o) { + fleetResourceId(o.getFleetResourceId()); + fleetId(o.getFleetId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetFleetResourceRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetFleetResourceRequest + */ + public GetFleetResourceRequest build() { + GetFleetResourceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetFleetResourceRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetFleetResourceRequest + */ + public GetFleetResourceRequest buildWithoutInvocationCallback() { + GetFleetResourceRequest request = new GetFleetResourceRequest(); + request.fleetResourceId = fleetResourceId; + request.fleetId = fleetId; + request.opcRequestId = opcRequestId; + return request; + // new GetFleetResourceRequest(fleetResourceId, fleetId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetResourceId(fleetResourceId) + .fleetId(fleetId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetResourceId=").append(String.valueOf(this.fleetResourceId)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetFleetResourceRequest)) { + return false; + } + + GetFleetResourceRequest other = (GetFleetResourceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetResourceId, other.fleetResourceId) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fleetResourceId == null ? 43 : this.fleetResourceId.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetJobActivityRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetJobActivityRequest.java new file mode 100644 index 00000000000..4d7424f859e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetJobActivityRequest.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetJobActivityRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetJobActivityRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique SchedulerJob identifier */ + private String schedulerJobId; + + /** unique SchedulerJob identifier */ + public String getSchedulerJobId() { + return schedulerJobId; + } + /** unique jobActivity identifier */ + private String jobActivityId; + + /** unique jobActivity identifier */ + public String getJobActivityId() { + return jobActivityId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetJobActivityRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique SchedulerJob identifier */ + private String schedulerJobId = null; + + /** + * unique SchedulerJob identifier + * + * @param schedulerJobId the value to set + * @return this builder instance + */ + public Builder schedulerJobId(String schedulerJobId) { + this.schedulerJobId = schedulerJobId; + return this; + } + + /** unique jobActivity identifier */ + private String jobActivityId = null; + + /** + * unique jobActivity identifier + * + * @param jobActivityId the value to set + * @return this builder instance + */ + public Builder jobActivityId(String jobActivityId) { + this.jobActivityId = jobActivityId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetJobActivityRequest o) { + schedulerJobId(o.getSchedulerJobId()); + jobActivityId(o.getJobActivityId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetJobActivityRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetJobActivityRequest + */ + public GetJobActivityRequest build() { + GetJobActivityRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetJobActivityRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetJobActivityRequest + */ + public GetJobActivityRequest buildWithoutInvocationCallback() { + GetJobActivityRequest request = new GetJobActivityRequest(); + request.schedulerJobId = schedulerJobId; + request.jobActivityId = jobActivityId; + request.opcRequestId = opcRequestId; + return request; + // new GetJobActivityRequest(schedulerJobId, jobActivityId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .schedulerJobId(schedulerJobId) + .jobActivityId(jobActivityId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",schedulerJobId=").append(String.valueOf(this.schedulerJobId)); + sb.append(",jobActivityId=").append(String.valueOf(this.jobActivityId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetJobActivityRequest)) { + return false; + } + + GetJobActivityRequest other = (GetJobActivityRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulerJobId, other.schedulerJobId) + && java.util.Objects.equals(this.jobActivityId, other.jobActivityId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulerJobId == null ? 43 : this.schedulerJobId.hashCode()); + result = + (result * PRIME) + + (this.jobActivityId == null ? 43 : this.jobActivityId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetMaintenanceWindowRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetMaintenanceWindowRequest.java new file mode 100644 index 00000000000..8c94c1037d7 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetMaintenanceWindowRequest.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetMaintenanceWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetMaintenanceWindowRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique MaintenanceWindow identifier */ + private String maintenanceWindowId; + + /** unique MaintenanceWindow identifier */ + public String getMaintenanceWindowId() { + return maintenanceWindowId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetMaintenanceWindowRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique MaintenanceWindow identifier */ + private String maintenanceWindowId = null; + + /** + * unique MaintenanceWindow identifier + * + * @param maintenanceWindowId the value to set + * @return this builder instance + */ + public Builder maintenanceWindowId(String maintenanceWindowId) { + this.maintenanceWindowId = maintenanceWindowId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetMaintenanceWindowRequest o) { + maintenanceWindowId(o.getMaintenanceWindowId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetMaintenanceWindowRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetMaintenanceWindowRequest + */ + public GetMaintenanceWindowRequest build() { + GetMaintenanceWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetMaintenanceWindowRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetMaintenanceWindowRequest + */ + public GetMaintenanceWindowRequest buildWithoutInvocationCallback() { + GetMaintenanceWindowRequest request = new GetMaintenanceWindowRequest(); + request.maintenanceWindowId = maintenanceWindowId; + request.opcRequestId = opcRequestId; + return request; + // new GetMaintenanceWindowRequest(maintenanceWindowId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().maintenanceWindowId(maintenanceWindowId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",maintenanceWindowId=").append(String.valueOf(this.maintenanceWindowId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMaintenanceWindowRequest)) { + return false; + } + + GetMaintenanceWindowRequest other = (GetMaintenanceWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.maintenanceWindowId, other.maintenanceWindowId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.maintenanceWindowId == null + ? 43 + : this.maintenanceWindowId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetPropertyRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetPropertyRequest.java new file mode 100644 index 00000000000..51c7644fbd2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetPropertyRequest.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetPropertyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetPropertyRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Property identifier */ + private String propertyId; + + /** unique Property identifier */ + public String getPropertyId() { + return propertyId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetPropertyRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Property identifier */ + private String propertyId = null; + + /** + * unique Property identifier + * + * @param propertyId the value to set + * @return this builder instance + */ + public Builder propertyId(String propertyId) { + this.propertyId = propertyId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetPropertyRequest o) { + propertyId(o.getPropertyId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetPropertyRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetPropertyRequest + */ + public GetPropertyRequest build() { + GetPropertyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetPropertyRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetPropertyRequest + */ + public GetPropertyRequest buildWithoutInvocationCallback() { + GetPropertyRequest request = new GetPropertyRequest(); + request.propertyId = propertyId; + request.opcRequestId = opcRequestId; + return request; + // new GetPropertyRequest(propertyId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().propertyId(propertyId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",propertyId=").append(String.valueOf(this.propertyId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetPropertyRequest)) { + return false; + } + + GetPropertyRequest other = (GetPropertyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.propertyId, other.propertyId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.propertyId == null ? 43 : this.propertyId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetRunbookRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetRunbookRequest.java new file mode 100644 index 00000000000..1f806b0fa45 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetRunbookRequest.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetRunbookRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetRunbookRequest extends com.oracle.bmc.requests.BmcRequest { + + /** Unique Runbook identifier */ + private String runbookId; + + /** Unique Runbook identifier */ + public String getRunbookId() { + return runbookId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetRunbookRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Runbook identifier */ + private String runbookId = null; + + /** + * Unique Runbook identifier + * + * @param runbookId the value to set + * @return this builder instance + */ + public Builder runbookId(String runbookId) { + this.runbookId = runbookId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetRunbookRequest o) { + runbookId(o.getRunbookId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetRunbookRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetRunbookRequest + */ + public GetRunbookRequest build() { + GetRunbookRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetRunbookRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetRunbookRequest + */ + public GetRunbookRequest buildWithoutInvocationCallback() { + GetRunbookRequest request = new GetRunbookRequest(); + request.runbookId = runbookId; + request.opcRequestId = opcRequestId; + return request; + // new GetRunbookRequest(runbookId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().runbookId(runbookId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",runbookId=").append(String.valueOf(this.runbookId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetRunbookRequest)) { + return false; + } + + GetRunbookRequest other = (GetRunbookRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.runbookId, other.runbookId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.runbookId == null ? 43 : this.runbookId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetSchedulerDefinitionRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetSchedulerDefinitionRequest.java new file mode 100644 index 00000000000..4c7083b0a9e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetSchedulerDefinitionRequest.java @@ -0,0 +1,198 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * GetSchedulerDefinitionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetSchedulerDefinitionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique SchedulerDefinition identifier */ + private String schedulerDefinitionId; + + /** unique SchedulerDefinition identifier */ + public String getSchedulerDefinitionId() { + return schedulerDefinitionId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetSchedulerDefinitionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique SchedulerDefinition identifier */ + private String schedulerDefinitionId = null; + + /** + * unique SchedulerDefinition identifier + * + * @param schedulerDefinitionId the value to set + * @return this builder instance + */ + public Builder schedulerDefinitionId(String schedulerDefinitionId) { + this.schedulerDefinitionId = schedulerDefinitionId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetSchedulerDefinitionRequest o) { + schedulerDefinitionId(o.getSchedulerDefinitionId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetSchedulerDefinitionRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetSchedulerDefinitionRequest + */ + public GetSchedulerDefinitionRequest build() { + GetSchedulerDefinitionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetSchedulerDefinitionRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetSchedulerDefinitionRequest + */ + public GetSchedulerDefinitionRequest buildWithoutInvocationCallback() { + GetSchedulerDefinitionRequest request = new GetSchedulerDefinitionRequest(); + request.schedulerDefinitionId = schedulerDefinitionId; + request.opcRequestId = opcRequestId; + return request; + // new GetSchedulerDefinitionRequest(schedulerDefinitionId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .schedulerDefinitionId(schedulerDefinitionId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",schedulerDefinitionId=").append(String.valueOf(this.schedulerDefinitionId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSchedulerDefinitionRequest)) { + return false; + } + + GetSchedulerDefinitionRequest other = (GetSchedulerDefinitionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulerDefinitionId, other.schedulerDefinitionId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulerDefinitionId == null + ? 43 + : this.schedulerDefinitionId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetSchedulerJobRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetSchedulerJobRequest.java new file mode 100644 index 00000000000..add15b04994 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetSchedulerJobRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetSchedulerJobRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetSchedulerJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique SchedulerJob identifier */ + private String schedulerJobId; + + /** unique SchedulerJob identifier */ + public String getSchedulerJobId() { + return schedulerJobId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetSchedulerJobRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique SchedulerJob identifier */ + private String schedulerJobId = null; + + /** + * unique SchedulerJob identifier + * + * @param schedulerJobId the value to set + * @return this builder instance + */ + public Builder schedulerJobId(String schedulerJobId) { + this.schedulerJobId = schedulerJobId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetSchedulerJobRequest o) { + schedulerJobId(o.getSchedulerJobId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetSchedulerJobRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetSchedulerJobRequest + */ + public GetSchedulerJobRequest build() { + GetSchedulerJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetSchedulerJobRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetSchedulerJobRequest + */ + public GetSchedulerJobRequest buildWithoutInvocationCallback() { + GetSchedulerJobRequest request = new GetSchedulerJobRequest(); + request.schedulerJobId = schedulerJobId; + request.opcRequestId = opcRequestId; + return request; + // new GetSchedulerJobRequest(schedulerJobId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().schedulerJobId(schedulerJobId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",schedulerJobId=").append(String.valueOf(this.schedulerJobId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSchedulerJobRequest)) { + return false; + } + + GetSchedulerJobRequest other = (GetSchedulerJobRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulerJobId, other.schedulerJobId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulerJobId == null ? 43 : this.schedulerJobId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetTaskRecordRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetTaskRecordRequest.java new file mode 100644 index 00000000000..09a9972ba8e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetTaskRecordRequest.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetTaskRecordRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetTaskRecordRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique TaskDetail identifier */ + private String taskRecordId; + + /** unique TaskDetail identifier */ + public String getTaskRecordId() { + return taskRecordId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetTaskRecordRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique TaskDetail identifier */ + private String taskRecordId = null; + + /** + * unique TaskDetail identifier + * + * @param taskRecordId the value to set + * @return this builder instance + */ + public Builder taskRecordId(String taskRecordId) { + this.taskRecordId = taskRecordId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetTaskRecordRequest o) { + taskRecordId(o.getTaskRecordId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetTaskRecordRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetTaskRecordRequest + */ + public GetTaskRecordRequest build() { + GetTaskRecordRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetTaskRecordRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetTaskRecordRequest + */ + public GetTaskRecordRequest buildWithoutInvocationCallback() { + GetTaskRecordRequest request = new GetTaskRecordRequest(); + request.taskRecordId = taskRecordId; + request.opcRequestId = opcRequestId; + return request; + // new GetTaskRecordRequest(taskRecordId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().taskRecordId(taskRecordId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",taskRecordId=").append(String.valueOf(this.taskRecordId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetTaskRecordRequest)) { + return false; + } + + GetTaskRecordRequest other = (GetTaskRecordRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.taskRecordId, other.taskRecordId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.taskRecordId == null ? 43 : this.taskRecordId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetWorkRequestRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..b61878002a7 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/GetWorkRequestRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the asynchronous request. */ + private String workRequestId; + + /** The ID of the asynchronous request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the asynchronous request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest build() { + GetWorkRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest buildWithoutInvocationCallback() { + GetWorkRequestRequest request = new GetWorkRequestRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + return request; + // new GetWorkRequestRequest(workRequestId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().workRequestId(workRequestId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestRequest)) { + return false; + } + + GetWorkRequestRequest other = (GetWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListAnnouncementsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListAnnouncementsRequest.java new file mode 100644 index 00000000000..f1ecd3278d9 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListAnnouncementsRequest.java @@ -0,0 +1,350 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListAnnouncementsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListAnnouncementsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** Filter the list with summary contains the given value. */ + private String summaryContains; + + /** Filter the list with summary contains the given value. */ + public String getSummaryContains() { + return summaryContains; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort AnnouncementSummary by. Only one sort order may be provided. If no value is + * specified _timeReleased_ is default. + */ + private com.oracle.bmc.fleetappsmanagement.model.AnnouncementSortBy sortBy; + + /** + * The field to sort AnnouncementSummary by. Only one sort order may be provided. If no value is + * specified _timeReleased_ is default. + */ + public com.oracle.bmc.fleetappsmanagement.model.AnnouncementSortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAnnouncementsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Filter the list with summary contains the given value. */ + private String summaryContains = null; + + /** + * Filter the list with summary contains the given value. + * + * @param summaryContains the value to set + * @return this builder instance + */ + public Builder summaryContains(String summaryContains) { + this.summaryContains = summaryContains; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort AnnouncementSummary by. Only one sort order may be provided. If no + * value is specified _timeReleased_ is default. + */ + private com.oracle.bmc.fleetappsmanagement.model.AnnouncementSortBy sortBy = null; + + /** + * The field to sort AnnouncementSummary by. Only one sort order may be provided. If no + * value is specified _timeReleased_ is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(com.oracle.bmc.fleetappsmanagement.model.AnnouncementSortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListAnnouncementsRequest o) { + summaryContains(o.getSummaryContains()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAnnouncementsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListAnnouncementsRequest + */ + public ListAnnouncementsRequest build() { + ListAnnouncementsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAnnouncementsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListAnnouncementsRequest + */ + public ListAnnouncementsRequest buildWithoutInvocationCallback() { + ListAnnouncementsRequest request = new ListAnnouncementsRequest(); + request.summaryContains = summaryContains; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListAnnouncementsRequest(summaryContains, displayName, limit, page, sortOrder, + // sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .summaryContains(summaryContains) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",summaryContains=").append(String.valueOf(this.summaryContains)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAnnouncementsRequest)) { + return false; + } + + ListAnnouncementsRequest other = (ListAnnouncementsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.summaryContains, other.summaryContains) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.summaryContains == null ? 43 : this.summaryContains.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListExecutionsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListExecutionsRequest.java new file mode 100644 index 00000000000..1a0e86d1797 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListExecutionsRequest.java @@ -0,0 +1,525 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListExecutionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListExecutionsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique SchedulerJob identifier */ + private String schedulerJobId; + + /** unique SchedulerJob identifier */ + public String getSchedulerJobId() { + return schedulerJobId; + } + /** unique jobActivity identifier */ + private String jobActivityId; + + /** unique jobActivity identifier */ + public String getJobActivityId() { + return jobActivityId; + } + /** unique Resource identifier */ + private String resourceId; + + /** unique Resource identifier */ + public String getResourceId() { + return resourceId; + } + /** Task Id */ + private String resourceTaskId; + + /** Task Id */ + public String getResourceTaskId() { + return resourceTaskId; + } + /** Unique step name */ + private String stepName; + + /** Unique step name */ + public String getStepName() { + return stepName; + } + /** Unique target name */ + private String targetName; + + /** Unique target name */ + public String getTargetName() { + return targetName; + } + /** Task Order Sequence */ + private String sequence; + + /** Task Order Sequence */ + public String getSequence() { + return sequence; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeStarted is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeStarted is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeStarted("timeStarted"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeStarted is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListExecutionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique SchedulerJob identifier */ + private String schedulerJobId = null; + + /** + * unique SchedulerJob identifier + * + * @param schedulerJobId the value to set + * @return this builder instance + */ + public Builder schedulerJobId(String schedulerJobId) { + this.schedulerJobId = schedulerJobId; + return this; + } + + /** unique jobActivity identifier */ + private String jobActivityId = null; + + /** + * unique jobActivity identifier + * + * @param jobActivityId the value to set + * @return this builder instance + */ + public Builder jobActivityId(String jobActivityId) { + this.jobActivityId = jobActivityId; + return this; + } + + /** unique Resource identifier */ + private String resourceId = null; + + /** + * unique Resource identifier + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** Task Id */ + private String resourceTaskId = null; + + /** + * Task Id + * + * @param resourceTaskId the value to set + * @return this builder instance + */ + public Builder resourceTaskId(String resourceTaskId) { + this.resourceTaskId = resourceTaskId; + return this; + } + + /** Unique step name */ + private String stepName = null; + + /** + * Unique step name + * + * @param stepName the value to set + * @return this builder instance + */ + public Builder stepName(String stepName) { + this.stepName = stepName; + return this; + } + + /** Unique target name */ + private String targetName = null; + + /** + * Unique target name + * + * @param targetName the value to set + * @return this builder instance + */ + public Builder targetName(String targetName) { + this.targetName = targetName; + return this; + } + + /** Task Order Sequence */ + private String sequence = null; + + /** + * Task Order Sequence + * + * @param sequence the value to set + * @return this builder instance + */ + public Builder sequence(String sequence) { + this.sequence = sequence; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeStarted + * is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeStarted + * is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListExecutionsRequest o) { + schedulerJobId(o.getSchedulerJobId()); + jobActivityId(o.getJobActivityId()); + resourceId(o.getResourceId()); + resourceTaskId(o.getResourceTaskId()); + stepName(o.getStepName()); + targetName(o.getTargetName()); + sequence(o.getSequence()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListExecutionsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListExecutionsRequest + */ + public ListExecutionsRequest build() { + ListExecutionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListExecutionsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListExecutionsRequest + */ + public ListExecutionsRequest buildWithoutInvocationCallback() { + ListExecutionsRequest request = new ListExecutionsRequest(); + request.schedulerJobId = schedulerJobId; + request.jobActivityId = jobActivityId; + request.resourceId = resourceId; + request.resourceTaskId = resourceTaskId; + request.stepName = stepName; + request.targetName = targetName; + request.sequence = sequence; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListExecutionsRequest(schedulerJobId, jobActivityId, resourceId, resourceTaskId, + // stepName, targetName, sequence, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .schedulerJobId(schedulerJobId) + .jobActivityId(jobActivityId) + .resourceId(resourceId) + .resourceTaskId(resourceTaskId) + .stepName(stepName) + .targetName(targetName) + .sequence(sequence) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",schedulerJobId=").append(String.valueOf(this.schedulerJobId)); + sb.append(",jobActivityId=").append(String.valueOf(this.jobActivityId)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",resourceTaskId=").append(String.valueOf(this.resourceTaskId)); + sb.append(",stepName=").append(String.valueOf(this.stepName)); + sb.append(",targetName=").append(String.valueOf(this.targetName)); + sb.append(",sequence=").append(String.valueOf(this.sequence)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListExecutionsRequest)) { + return false; + } + + ListExecutionsRequest other = (ListExecutionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulerJobId, other.schedulerJobId) + && java.util.Objects.equals(this.jobActivityId, other.jobActivityId) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.resourceTaskId, other.resourceTaskId) + && java.util.Objects.equals(this.stepName, other.stepName) + && java.util.Objects.equals(this.targetName, other.targetName) + && java.util.Objects.equals(this.sequence, other.sequence) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulerJobId == null ? 43 : this.schedulerJobId.hashCode()); + result = + (result * PRIME) + + (this.jobActivityId == null ? 43 : this.jobActivityId.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.resourceTaskId == null ? 43 : this.resourceTaskId.hashCode()); + result = (result * PRIME) + (this.stepName == null ? 43 : this.stepName.hashCode()); + result = (result * PRIME) + (this.targetName == null ? 43 : this.targetName.hashCode()); + result = (result * PRIME) + (this.sequence == null ? 43 : this.sequence.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetCredentialsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetCredentialsRequest.java new file mode 100644 index 00000000000..f126bb18af8 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetCredentialsRequest.java @@ -0,0 +1,513 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListFleetCredentialsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetCredentialsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetCredential.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.fleetappsmanagement.model.FleetCredential.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** Credential Level. */ + private com.oracle.bmc.fleetappsmanagement.model.CredentialEntitySpecificDetails.CredentialLevel + credentialLevel; + + /** Credential Level. */ + public com.oracle.bmc.fleetappsmanagement.model.CredentialEntitySpecificDetails.CredentialLevel + getCredentialLevel() { + return credentialLevel; + } + /** unique FleetCredential identifier */ + private String id; + + /** unique FleetCredential identifier */ + public String getId() { + return id; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListFleetCredentialsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.fleetappsmanagement.model.FleetCredential.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fleetappsmanagement.model.FleetCredential.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** Credential Level. */ + private com.oracle.bmc.fleetappsmanagement.model.CredentialEntitySpecificDetails + .CredentialLevel + credentialLevel = null; + + /** + * Credential Level. + * + * @param credentialLevel the value to set + * @return this builder instance + */ + public Builder credentialLevel( + com.oracle.bmc.fleetappsmanagement.model.CredentialEntitySpecificDetails + .CredentialLevel + credentialLevel) { + this.credentialLevel = credentialLevel; + return this; + } + + /** unique FleetCredential identifier */ + private String id = null; + + /** + * unique FleetCredential identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListFleetCredentialsRequest o) { + fleetId(o.getFleetId()); + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + credentialLevel(o.getCredentialLevel()); + id(o.getId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListFleetCredentialsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListFleetCredentialsRequest + */ + public ListFleetCredentialsRequest build() { + ListFleetCredentialsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListFleetCredentialsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListFleetCredentialsRequest + */ + public ListFleetCredentialsRequest buildWithoutInvocationCallback() { + ListFleetCredentialsRequest request = new ListFleetCredentialsRequest(); + request.fleetId = fleetId; + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.credentialLevel = credentialLevel; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListFleetCredentialsRequest(fleetId, compartmentId, lifecycleState, displayName, + // credentialLevel, id, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetId(fleetId) + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .credentialLevel(credentialLevel) + .id(id) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",credentialLevel=").append(String.valueOf(this.credentialLevel)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetCredentialsRequest)) { + return false; + } + + ListFleetCredentialsRequest other = (ListFleetCredentialsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.credentialLevel, other.credentialLevel) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.credentialLevel == null ? 43 : this.credentialLevel.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetProductsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetProductsRequest.java new file mode 100644 index 00000000000..d0f05a75556 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetProductsRequest.java @@ -0,0 +1,472 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListFleetProductsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetProductsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** Resource Identifier */ + private String resourceId; + + /** Resource Identifier */ + public String getResourceId() { + return resourceId; + } + /** Resource Display Name */ + private String resourceDisplayName; + + /** Resource Display Name */ + public String getResourceDisplayName() { + return resourceDisplayName; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName and + * resourceDisplayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName and + * resourceDisplayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + ResourceDisplayName("resourceDisplayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName and + * resourceDisplayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListFleetProductsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** Resource Identifier */ + private String resourceId = null; + + /** + * Resource Identifier + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** Resource Display Name */ + private String resourceDisplayName = null; + + /** + * Resource Display Name + * + * @param resourceDisplayName the value to set + * @return this builder instance + */ + public Builder resourceDisplayName(String resourceDisplayName) { + this.resourceDisplayName = resourceDisplayName; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName + * and resourceDisplayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName + * and resourceDisplayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListFleetProductsRequest o) { + fleetId(o.getFleetId()); + compartmentId(o.getCompartmentId()); + resourceId(o.getResourceId()); + resourceDisplayName(o.getResourceDisplayName()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListFleetProductsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListFleetProductsRequest + */ + public ListFleetProductsRequest build() { + ListFleetProductsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListFleetProductsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListFleetProductsRequest + */ + public ListFleetProductsRequest buildWithoutInvocationCallback() { + ListFleetProductsRequest request = new ListFleetProductsRequest(); + request.fleetId = fleetId; + request.compartmentId = compartmentId; + request.resourceId = resourceId; + request.resourceDisplayName = resourceDisplayName; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListFleetProductsRequest(fleetId, compartmentId, resourceId, resourceDisplayName, + // displayName, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetId(fleetId) + .compartmentId(compartmentId) + .resourceId(resourceId) + .resourceDisplayName(resourceDisplayName) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",resourceDisplayName=").append(String.valueOf(this.resourceDisplayName)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetProductsRequest)) { + return false; + } + + ListFleetProductsRequest other = (ListFleetProductsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.resourceDisplayName, other.resourceDisplayName) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.resourceDisplayName == null + ? 43 + : this.resourceDisplayName.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetPropertiesRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetPropertiesRequest.java new file mode 100644 index 00000000000..01628f22752 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetPropertiesRequest.java @@ -0,0 +1,476 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListFleetPropertiesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetPropertiesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetProperty.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.fleetappsmanagement.model.FleetProperty.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique FleetProperty identifier */ + private String id; + + /** unique FleetProperty identifier */ + public String getId() { + return id; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListFleetPropertiesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.fleetappsmanagement.model.FleetProperty.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fleetappsmanagement.model.FleetProperty.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique FleetProperty identifier */ + private String id = null; + + /** + * unique FleetProperty identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListFleetPropertiesRequest o) { + fleetId(o.getFleetId()); + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListFleetPropertiesRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListFleetPropertiesRequest + */ + public ListFleetPropertiesRequest build() { + ListFleetPropertiesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListFleetPropertiesRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListFleetPropertiesRequest + */ + public ListFleetPropertiesRequest buildWithoutInvocationCallback() { + ListFleetPropertiesRequest request = new ListFleetPropertiesRequest(); + request.fleetId = fleetId; + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListFleetPropertiesRequest(fleetId, compartmentId, lifecycleState, displayName, + // id, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetId(fleetId) + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetPropertiesRequest)) { + return false; + } + + ListFleetPropertiesRequest other = (ListFleetPropertiesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetResourcesRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetResourcesRequest.java new file mode 100644 index 00000000000..a8713d8b500 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetResourcesRequest.java @@ -0,0 +1,503 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListFleetResourcesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetResourcesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** Resource Tenancy Id */ + private String tenancyId; + + /** Resource Tenancy Id */ + public String getTenancyId() { + return tenancyId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetResource.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.fleetappsmanagement.model.FleetResource.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique FleetResource identifier */ + private String id; + + /** unique FleetResource identifier */ + public String getId() { + return id; + } + /** A filter to return resources that match the Type */ + private String fleetResourceType; + + /** A filter to return resources that match the Type */ + public String getFleetResourceType() { + return fleetResourceType; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListFleetResourcesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** Resource Tenancy Id */ + private String tenancyId = null; + + /** + * Resource Tenancy Id + * + * @param tenancyId the value to set + * @return this builder instance + */ + public Builder tenancyId(String tenancyId) { + this.tenancyId = tenancyId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.fleetappsmanagement.model.FleetResource.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fleetappsmanagement.model.FleetResource.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique FleetResource identifier */ + private String id = null; + + /** + * unique FleetResource identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** A filter to return resources that match the Type */ + private String fleetResourceType = null; + + /** + * A filter to return resources that match the Type + * + * @param fleetResourceType the value to set + * @return this builder instance + */ + public Builder fleetResourceType(String fleetResourceType) { + this.fleetResourceType = fleetResourceType; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListFleetResourcesRequest o) { + fleetId(o.getFleetId()); + tenancyId(o.getTenancyId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + fleetResourceType(o.getFleetResourceType()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListFleetResourcesRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListFleetResourcesRequest + */ + public ListFleetResourcesRequest build() { + ListFleetResourcesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListFleetResourcesRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListFleetResourcesRequest + */ + public ListFleetResourcesRequest buildWithoutInvocationCallback() { + ListFleetResourcesRequest request = new ListFleetResourcesRequest(); + request.fleetId = fleetId; + request.tenancyId = tenancyId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.fleetResourceType = fleetResourceType; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListFleetResourcesRequest(fleetId, tenancyId, lifecycleState, displayName, id, + // fleetResourceType, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetId(fleetId) + .tenancyId(tenancyId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .fleetResourceType(fleetResourceType) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",tenancyId=").append(String.valueOf(this.tenancyId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",fleetResourceType=").append(String.valueOf(this.fleetResourceType)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetResourcesRequest)) { + return false; + } + + ListFleetResourcesRequest other = (ListFleetResourcesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.tenancyId, other.tenancyId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.fleetResourceType, other.fleetResourceType) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.tenancyId == null ? 43 : this.tenancyId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.fleetResourceType == null ? 43 : this.fleetResourceType.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetTargetsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetTargetsRequest.java new file mode 100644 index 00000000000..18c3587ea88 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetTargetsRequest.java @@ -0,0 +1,471 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListFleetTargetsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetTargetsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** Product Name */ + private String product; + + /** Product Name */ + public String getProduct() { + return product; + } + /** Resource Identifier */ + private String resourceId; + + /** Resource Identifier */ + public String getResourceId() { + return resourceId; + } + /** Resource Display Name */ + private String resourceDisplayName; + + /** Resource Display Name */ + public String getResourceDisplayName() { + return resourceDisplayName; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for + * displayName,product and resourceDisplayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for + * displayName,product and resourceDisplayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + Product("product"), + ResourceDisplayName("resourceDisplayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for + * displayName,product and resourceDisplayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListFleetTargetsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** Product Name */ + private String product = null; + + /** + * Product Name + * + * @param product the value to set + * @return this builder instance + */ + public Builder product(String product) { + this.product = product; + return this; + } + + /** Resource Identifier */ + private String resourceId = null; + + /** + * Resource Identifier + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** Resource Display Name */ + private String resourceDisplayName = null; + + /** + * Resource Display Name + * + * @param resourceDisplayName the value to set + * @return this builder instance + */ + public Builder resourceDisplayName(String resourceDisplayName) { + this.resourceDisplayName = resourceDisplayName; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for + * displayName,product and resourceDisplayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for + * displayName,product and resourceDisplayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListFleetTargetsRequest o) { + fleetId(o.getFleetId()); + displayName(o.getDisplayName()); + product(o.getProduct()); + resourceId(o.getResourceId()); + resourceDisplayName(o.getResourceDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListFleetTargetsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListFleetTargetsRequest + */ + public ListFleetTargetsRequest build() { + ListFleetTargetsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListFleetTargetsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListFleetTargetsRequest + */ + public ListFleetTargetsRequest buildWithoutInvocationCallback() { + ListFleetTargetsRequest request = new ListFleetTargetsRequest(); + request.fleetId = fleetId; + request.displayName = displayName; + request.product = product; + request.resourceId = resourceId; + request.resourceDisplayName = resourceDisplayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListFleetTargetsRequest(fleetId, displayName, product, resourceId, + // resourceDisplayName, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetId(fleetId) + .displayName(displayName) + .product(product) + .resourceId(resourceId) + .resourceDisplayName(resourceDisplayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",product=").append(String.valueOf(this.product)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",resourceDisplayName=").append(String.valueOf(this.resourceDisplayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetTargetsRequest)) { + return false; + } + + ListFleetTargetsRequest other = (ListFleetTargetsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.product, other.product) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.resourceDisplayName, other.resourceDisplayName) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.product == null ? 43 : this.product.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = + (result * PRIME) + + (this.resourceDisplayName == null + ? 43 + : this.resourceDisplayName.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetsRequest.java new file mode 100644 index 00000000000..d7a578bafc0 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListFleetsRequest.java @@ -0,0 +1,560 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListFleetsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.Fleet.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.fleetappsmanagement.model.Fleet.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources their fleetType matches the given fleetType. */ + private com.oracle.bmc.fleetappsmanagement.model.Fleet.FleetType fleetType; + + /** A filter to return only resources their fleetType matches the given fleetType. */ + public com.oracle.bmc.fleetappsmanagement.model.Fleet.FleetType getFleetType() { + return fleetType; + } + /** A filter to return only resources that match the Application Type given. */ + private String applicationType; + + /** A filter to return only resources that match the Application Type given. */ + public String getApplicationType() { + return applicationType; + } + /** A filter to return only resources that match the Product Type given. */ + private String product; + + /** A filter to return only resources that match the Product Type given. */ + public String getProduct() { + return product; + } + /** A filter to return only resources that match the Environment Type given. */ + private String environmentType; + + /** A filter to return only resources that match the Environment Type given. */ + public String getEnvironmentType() { + return environmentType; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique Fleet identifier */ + private String id; + + /** unique Fleet identifier */ + public String getId() { + return id; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListFleetsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.fleetappsmanagement.model.Fleet.LifecycleState lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fleetappsmanagement.model.Fleet.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** A filter to return only resources their fleetType matches the given fleetType. */ + private com.oracle.bmc.fleetappsmanagement.model.Fleet.FleetType fleetType = null; + + /** + * A filter to return only resources their fleetType matches the given fleetType. + * + * @param fleetType the value to set + * @return this builder instance + */ + public Builder fleetType( + com.oracle.bmc.fleetappsmanagement.model.Fleet.FleetType fleetType) { + this.fleetType = fleetType; + return this; + } + + /** A filter to return only resources that match the Application Type given. */ + private String applicationType = null; + + /** + * A filter to return only resources that match the Application Type given. + * + * @param applicationType the value to set + * @return this builder instance + */ + public Builder applicationType(String applicationType) { + this.applicationType = applicationType; + return this; + } + + /** A filter to return only resources that match the Product Type given. */ + private String product = null; + + /** + * A filter to return only resources that match the Product Type given. + * + * @param product the value to set + * @return this builder instance + */ + public Builder product(String product) { + this.product = product; + return this; + } + + /** A filter to return only resources that match the Environment Type given. */ + private String environmentType = null; + + /** + * A filter to return only resources that match the Environment Type given. + * + * @param environmentType the value to set + * @return this builder instance + */ + public Builder environmentType(String environmentType) { + this.environmentType = environmentType; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique Fleet identifier */ + private String id = null; + + /** + * unique Fleet identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListFleetsRequest o) { + lifecycleState(o.getLifecycleState()); + compartmentId(o.getCompartmentId()); + fleetType(o.getFleetType()); + applicationType(o.getApplicationType()); + product(o.getProduct()); + environmentType(o.getEnvironmentType()); + displayName(o.getDisplayName()); + id(o.getId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListFleetsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListFleetsRequest + */ + public ListFleetsRequest build() { + ListFleetsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListFleetsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListFleetsRequest + */ + public ListFleetsRequest buildWithoutInvocationCallback() { + ListFleetsRequest request = new ListFleetsRequest(); + request.lifecycleState = lifecycleState; + request.compartmentId = compartmentId; + request.fleetType = fleetType; + request.applicationType = applicationType; + request.product = product; + request.environmentType = environmentType; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListFleetsRequest(lifecycleState, compartmentId, fleetType, applicationType, + // product, environmentType, displayName, id, limit, page, sortOrder, sortBy, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .lifecycleState(lifecycleState) + .compartmentId(compartmentId) + .fleetType(fleetType) + .applicationType(applicationType) + .product(product) + .environmentType(environmentType) + .displayName(displayName) + .id(id) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",fleetType=").append(String.valueOf(this.fleetType)); + sb.append(",applicationType=").append(String.valueOf(this.applicationType)); + sb.append(",product=").append(String.valueOf(this.product)); + sb.append(",environmentType=").append(String.valueOf(this.environmentType)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetsRequest)) { + return false; + } + + ListFleetsRequest other = (ListFleetsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.fleetType, other.fleetType) + && java.util.Objects.equals(this.applicationType, other.applicationType) + && java.util.Objects.equals(this.product, other.product) + && java.util.Objects.equals(this.environmentType, other.environmentType) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.fleetType == null ? 43 : this.fleetType.hashCode()); + result = + (result * PRIME) + + (this.applicationType == null ? 43 : this.applicationType.hashCode()); + result = (result * PRIME) + (this.product == null ? 43 : this.product.hashCode()); + result = + (result * PRIME) + + (this.environmentType == null ? 43 : this.environmentType.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListInventoryResourcesRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListInventoryResourcesRequest.java new file mode 100644 index 00000000000..26364cdc1d4 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListInventoryResourcesRequest.java @@ -0,0 +1,698 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * ListInventoryResourcesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListInventoryResourcesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** Resource Compartment ID */ + private String resourceCompartmentId; + + /** Resource Compartment ID */ + public String getResourceCompartmentId() { + return resourceCompartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private String lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public String getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** Resource Region */ + private String resourceRegion; + + /** Resource Region */ + public String getResourceRegion() { + return resourceRegion; + } + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will be + * returned. Each item in the list has the format "{namespace}.{tagName}={value}". All inputs + * are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are + * interpreted as "OR". Values for different keys (i.e. different namespaces, different tag + * names, or both) are interpreted as "AND". + */ + private java.util.List definedTagEquals; + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will be + * returned. Each item in the list has the format "{namespace}.{tagName}={value}". All inputs + * are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are + * interpreted as "OR". Values for different keys (i.e. different namespaces, different tag + * names, or both) are interpreted as "AND". + */ + public java.util.List getDefinedTagEquals() { + return definedTagEquals; + } + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value will be + * returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. + * Multiple values for the same tag name are interpreted as "OR". Values for different tag names + * are interpreted as "AND". + */ + private java.util.List freeformTagEquals; + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value will be + * returned. The key for each tag is "{tagName}.{value}". All inputs are case-insensitive. + * Multiple values for the same tag name are interpreted as "OR". Values for different tag names + * are interpreted as "AND". + */ + public java.util.List getFreeformTagEquals() { + return freeformTagEquals; + } + /** + * A list of inventory properties filters to apply. The key for each inventory property and + * value for each resource type is "{resourceType}.{inventoryProperty}={value}". + */ + private java.util.List inventoryProperties; + + /** + * A list of inventory properties filters to apply. The key for each inventory property and + * value for each resource type is "{resourceType}.{inventoryProperty}={value}". + */ + public java.util.List getInventoryProperties() { + return inventoryProperties; + } + /** + * Fetch resources matching matching ANY or ALL criteria passed as params in "tags" and + * "inventoryProperties" + */ + private String matchingCriteria; + + /** + * Fetch resources matching matching ANY or ALL criteria passed as params in "tags" and + * "inventoryProperties" + */ + public String getMatchingCriteria() { + return matchingCriteria; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListInventoryResourcesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** Resource Compartment ID */ + private String resourceCompartmentId = null; + + /** + * Resource Compartment ID + * + * @param resourceCompartmentId the value to set + * @return this builder instance + */ + public Builder resourceCompartmentId(String resourceCompartmentId) { + this.resourceCompartmentId = resourceCompartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private String lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState(String lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** Resource Region */ + private String resourceRegion = null; + + /** + * Resource Region + * + * @param resourceRegion the value to set + * @return this builder instance + */ + public Builder resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + return this; + } + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will + * be returned. Each item in the list has the format "{namespace}.{tagName}={value}". All + * inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and + * tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + */ + private java.util.List definedTagEquals = null; + + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will + * be returned. Each item in the list has the format "{namespace}.{tagName}={value}". All + * inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and + * tag name) are interpreted as "OR". Values for different keys (i.e. different namespaces, + * different tag names, or both) are interpreted as "AND". + * + * @param definedTagEquals the value to set + * @return this builder instance + */ + public Builder definedTagEquals(java.util.List definedTagEquals) { + this.definedTagEquals = definedTagEquals; + return this; + } + + /** + * Singular setter. A list of tag filters to apply. Only resources with a defined tag + * matching the value will be returned. Each item in the list has the format + * "{namespace}.{tagName}={value}". All inputs are case-insensitive. Multiple values for the + * same key (i.e. same namespace and tag name) are interpreted as "OR". Values for different + * keys (i.e. different namespaces, different tag names, or both) are interpreted as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder definedTagEquals(String singularValue) { + return this.definedTagEquals(java.util.Arrays.asList(singularValue)); + } + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value + * will be returned. The key for each tag is "{tagName}.{value}". All inputs are + * case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values + * for different tag names are interpreted as "AND". + */ + private java.util.List freeformTagEquals = null; + + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value + * will be returned. The key for each tag is "{tagName}.{value}". All inputs are + * case-insensitive. Multiple values for the same tag name are interpreted as "OR". Values + * for different tag names are interpreted as "AND". + * + * @param freeformTagEquals the value to set + * @return this builder instance + */ + public Builder freeformTagEquals(java.util.List freeformTagEquals) { + this.freeformTagEquals = freeformTagEquals; + return this; + } + + /** + * Singular setter. A list of tag filters to apply. Only resources with a freeform tag + * matching the value will be returned. The key for each tag is "{tagName}.{value}". All + * inputs are case-insensitive. Multiple values for the same tag name are interpreted as + * "OR". Values for different tag names are interpreted as "AND". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder freeformTagEquals(String singularValue) { + return this.freeformTagEquals(java.util.Arrays.asList(singularValue)); + } + + /** + * A list of inventory properties filters to apply. The key for each inventory property and + * value for each resource type is "{resourceType}.{inventoryProperty}={value}". + */ + private java.util.List inventoryProperties = null; + + /** + * A list of inventory properties filters to apply. The key for each inventory property and + * value for each resource type is "{resourceType}.{inventoryProperty}={value}". + * + * @param inventoryProperties the value to set + * @return this builder instance + */ + public Builder inventoryProperties(java.util.List inventoryProperties) { + this.inventoryProperties = inventoryProperties; + return this; + } + + /** + * Singular setter. A list of inventory properties filters to apply. The key for each + * inventory property and value for each resource type is + * "{resourceType}.{inventoryProperty}={value}". + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder inventoryProperties(String singularValue) { + return this.inventoryProperties(java.util.Arrays.asList(singularValue)); + } + + /** + * Fetch resources matching matching ANY or ALL criteria passed as params in "tags" and + * "inventoryProperties" + */ + private String matchingCriteria = null; + + /** + * Fetch resources matching matching ANY or ALL criteria passed as params in "tags" and + * "inventoryProperties" + * + * @param matchingCriteria the value to set + * @return this builder instance + */ + public Builder matchingCriteria(String matchingCriteria) { + this.matchingCriteria = matchingCriteria; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListInventoryResourcesRequest o) { + compartmentId(o.getCompartmentId()); + resourceCompartmentId(o.getResourceCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + resourceRegion(o.getResourceRegion()); + definedTagEquals(o.getDefinedTagEquals()); + freeformTagEquals(o.getFreeformTagEquals()); + inventoryProperties(o.getInventoryProperties()); + matchingCriteria(o.getMatchingCriteria()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListInventoryResourcesRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListInventoryResourcesRequest + */ + public ListInventoryResourcesRequest build() { + ListInventoryResourcesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListInventoryResourcesRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListInventoryResourcesRequest + */ + public ListInventoryResourcesRequest buildWithoutInvocationCallback() { + ListInventoryResourcesRequest request = new ListInventoryResourcesRequest(); + request.compartmentId = compartmentId; + request.resourceCompartmentId = resourceCompartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.resourceRegion = resourceRegion; + request.definedTagEquals = definedTagEquals; + request.freeformTagEquals = freeformTagEquals; + request.inventoryProperties = inventoryProperties; + request.matchingCriteria = matchingCriteria; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListInventoryResourcesRequest(compartmentId, resourceCompartmentId, + // lifecycleState, displayName, resourceRegion, definedTagEquals, freeformTagEquals, + // inventoryProperties, matchingCriteria, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .resourceCompartmentId(resourceCompartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .resourceRegion(resourceRegion) + .definedTagEquals(definedTagEquals) + .freeformTagEquals(freeformTagEquals) + .inventoryProperties(inventoryProperties) + .matchingCriteria(matchingCriteria) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",resourceCompartmentId=").append(String.valueOf(this.resourceCompartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",resourceRegion=").append(String.valueOf(this.resourceRegion)); + sb.append(",definedTagEquals=").append(String.valueOf(this.definedTagEquals)); + sb.append(",freeformTagEquals=").append(String.valueOf(this.freeformTagEquals)); + sb.append(",inventoryProperties=").append(String.valueOf(this.inventoryProperties)); + sb.append(",matchingCriteria=").append(String.valueOf(this.matchingCriteria)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInventoryResourcesRequest)) { + return false; + } + + ListInventoryResourcesRequest other = (ListInventoryResourcesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resourceCompartmentId, other.resourceCompartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.resourceRegion, other.resourceRegion) + && java.util.Objects.equals(this.definedTagEquals, other.definedTagEquals) + && java.util.Objects.equals(this.freeformTagEquals, other.freeformTagEquals) + && java.util.Objects.equals(this.inventoryProperties, other.inventoryProperties) + && java.util.Objects.equals(this.matchingCriteria, other.matchingCriteria) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.resourceCompartmentId == null + ? 43 + : this.resourceCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.resourceRegion == null ? 43 : this.resourceRegion.hashCode()); + result = + (result * PRIME) + + (this.definedTagEquals == null ? 43 : this.definedTagEquals.hashCode()); + result = + (result * PRIME) + + (this.freeformTagEquals == null ? 43 : this.freeformTagEquals.hashCode()); + result = + (result * PRIME) + + (this.inventoryProperties == null + ? 43 + : this.inventoryProperties.hashCode()); + result = + (result * PRIME) + + (this.matchingCriteria == null ? 43 : this.matchingCriteria.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListMaintenanceWindowsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListMaintenanceWindowsRequest.java new file mode 100644 index 00000000000..652e30b0793 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListMaintenanceWindowsRequest.java @@ -0,0 +1,452 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * ListMaintenanceWindowsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListMaintenanceWindowsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.LifecycleState + lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique MaintenanceWindow identifier */ + private String id; + + /** unique MaintenanceWindow identifier */ + public String getId() { + return id; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListMaintenanceWindowsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique MaintenanceWindow identifier */ + private String id = null; + + /** + * unique MaintenanceWindow identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListMaintenanceWindowsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListMaintenanceWindowsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListMaintenanceWindowsRequest + */ + public ListMaintenanceWindowsRequest build() { + ListMaintenanceWindowsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListMaintenanceWindowsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListMaintenanceWindowsRequest + */ + public ListMaintenanceWindowsRequest buildWithoutInvocationCallback() { + ListMaintenanceWindowsRequest request = new ListMaintenanceWindowsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListMaintenanceWindowsRequest(compartmentId, lifecycleState, displayName, id, + // limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaintenanceWindowsRequest)) { + return false; + } + + ListMaintenanceWindowsRequest other = (ListMaintenanceWindowsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListOnboardingPoliciesRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListOnboardingPoliciesRequest.java new file mode 100644 index 00000000000..6429c5dae8e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListOnboardingPoliciesRequest.java @@ -0,0 +1,331 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * ListOnboardingPoliciesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListOnboardingPoliciesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOnboardingPoliciesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListOnboardingPoliciesRequest o) { + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListOnboardingPoliciesRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListOnboardingPoliciesRequest + */ + public ListOnboardingPoliciesRequest build() { + ListOnboardingPoliciesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOnboardingPoliciesRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListOnboardingPoliciesRequest + */ + public ListOnboardingPoliciesRequest buildWithoutInvocationCallback() { + ListOnboardingPoliciesRequest request = new ListOnboardingPoliciesRequest(); + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListOnboardingPoliciesRequest(limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOnboardingPoliciesRequest)) { + return false; + } + + ListOnboardingPoliciesRequest other = (ListOnboardingPoliciesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListOnboardingsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListOnboardingsRequest.java new file mode 100644 index 00000000000..99a8acaf5b5 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListOnboardingsRequest.java @@ -0,0 +1,420 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListOnboardingsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListOnboardingsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.Onboarding.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.fleetappsmanagement.model.Onboarding.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** unique onboarding identifier */ + private String id; + + /** unique onboarding identifier */ + public String getId() { + return id; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListOnboardingsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.fleetappsmanagement.model.Onboarding.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fleetappsmanagement.model.Onboarding.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** unique onboarding identifier */ + private String id = null; + + /** + * unique onboarding identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListOnboardingsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + id(o.getId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListOnboardingsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListOnboardingsRequest + */ + public ListOnboardingsRequest build() { + ListOnboardingsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListOnboardingsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListOnboardingsRequest + */ + public ListOnboardingsRequest buildWithoutInvocationCallback() { + ListOnboardingsRequest request = new ListOnboardingsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.id = id; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListOnboardingsRequest(compartmentId, lifecycleState, id, limit, page, sortOrder, + // sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .id(id) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOnboardingsRequest)) { + return false; + } + + ListOnboardingsRequest other = (ListOnboardingsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListPropertiesRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListPropertiesRequest.java new file mode 100644 index 00000000000..b4f4002e906 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListPropertiesRequest.java @@ -0,0 +1,474 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListPropertiesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListPropertiesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.Property.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.fleetappsmanagement.model.Property.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique Property identifier */ + private String id; + + /** unique Property identifier */ + public String getId() { + return id; + } + /** A filter to return only resources their scope matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.Scope scope; + + /** A filter to return only resources their scope matches the given lifecycleState. */ + public com.oracle.bmc.fleetappsmanagement.model.Scope getScope() { + return scope; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListPropertiesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.fleetappsmanagement.model.Property.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fleetappsmanagement.model.Property.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique Property identifier */ + private String id = null; + + /** + * unique Property identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** A filter to return only resources their scope matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.Scope scope = null; + + /** + * A filter to return only resources their scope matches the given lifecycleState. + * + * @param scope the value to set + * @return this builder instance + */ + public Builder scope(com.oracle.bmc.fleetappsmanagement.model.Scope scope) { + this.scope = scope; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListPropertiesRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + scope(o.getScope()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListPropertiesRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListPropertiesRequest + */ + public ListPropertiesRequest build() { + ListPropertiesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListPropertiesRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListPropertiesRequest + */ + public ListPropertiesRequest buildWithoutInvocationCallback() { + ListPropertiesRequest request = new ListPropertiesRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.scope = scope; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListPropertiesRequest(compartmentId, lifecycleState, displayName, id, scope, + // limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .scope(scope) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",scope=").append(String.valueOf(this.scope)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPropertiesRequest)) { + return false; + } + + ListPropertiesRequest other = (ListPropertiesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.scope, other.scope) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.scope == null ? 43 : this.scope.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListRunbooksRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListRunbooksRequest.java new file mode 100644 index 00000000000..5f50e521c14 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListRunbooksRequest.java @@ -0,0 +1,560 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListRunbooksRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListRunbooksRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.Runbook.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.fleetappsmanagement.model.Runbook.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique Runbook identifier */ + private String id; + + /** unique Runbook identifier */ + public String getId() { + return id; + } + /** The ID of the runbook type. */ + private com.oracle.bmc.fleetappsmanagement.model.Runbook.Type type; + + /** The ID of the runbook type. */ + public com.oracle.bmc.fleetappsmanagement.model.Runbook.Type getType() { + return type; + } + /** The runbook relevance of product or full-stack. */ + private com.oracle.bmc.fleetappsmanagement.model.Runbook.RunbookRelevance runbookRelevance; + + /** The runbook relevance of product or full-stack. */ + public com.oracle.bmc.fleetappsmanagement.model.Runbook.RunbookRelevance getRunbookRelevance() { + return runbookRelevance; + } + /** The ID of the runbook platform. */ + private String platform; + + /** The ID of the runbook platform. */ + public String getPlatform() { + return platform; + } + /** The runbook lifecycle. */ + private String operation; + + /** The runbook lifecycle. */ + public String getOperation() { + return operation; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListRunbooksRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.fleetappsmanagement.model.Runbook.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fleetappsmanagement.model.Runbook.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique Runbook identifier */ + private String id = null; + + /** + * unique Runbook identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** The ID of the runbook type. */ + private com.oracle.bmc.fleetappsmanagement.model.Runbook.Type type = null; + + /** + * The ID of the runbook type. + * + * @param type the value to set + * @return this builder instance + */ + public Builder type(com.oracle.bmc.fleetappsmanagement.model.Runbook.Type type) { + this.type = type; + return this; + } + + /** The runbook relevance of product or full-stack. */ + private com.oracle.bmc.fleetappsmanagement.model.Runbook.RunbookRelevance runbookRelevance = + null; + + /** + * The runbook relevance of product or full-stack. + * + * @param runbookRelevance the value to set + * @return this builder instance + */ + public Builder runbookRelevance( + com.oracle.bmc.fleetappsmanagement.model.Runbook.RunbookRelevance + runbookRelevance) { + this.runbookRelevance = runbookRelevance; + return this; + } + + /** The ID of the runbook platform. */ + private String platform = null; + + /** + * The ID of the runbook platform. + * + * @param platform the value to set + * @return this builder instance + */ + public Builder platform(String platform) { + this.platform = platform; + return this; + } + + /** The runbook lifecycle. */ + private String operation = null; + + /** + * The runbook lifecycle. + * + * @param operation the value to set + * @return this builder instance + */ + public Builder operation(String operation) { + this.operation = operation; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListRunbooksRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + id(o.getId()); + type(o.getType()); + runbookRelevance(o.getRunbookRelevance()); + platform(o.getPlatform()); + operation(o.getOperation()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListRunbooksRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListRunbooksRequest + */ + public ListRunbooksRequest build() { + ListRunbooksRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListRunbooksRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListRunbooksRequest + */ + public ListRunbooksRequest buildWithoutInvocationCallback() { + ListRunbooksRequest request = new ListRunbooksRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.id = id; + request.type = type; + request.runbookRelevance = runbookRelevance; + request.platform = platform; + request.operation = operation; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListRunbooksRequest(compartmentId, lifecycleState, displayName, id, type, + // runbookRelevance, platform, operation, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .id(id) + .type(type) + .runbookRelevance(runbookRelevance) + .platform(platform) + .operation(operation) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",type=").append(String.valueOf(this.type)); + sb.append(",runbookRelevance=").append(String.valueOf(this.runbookRelevance)); + sb.append(",platform=").append(String.valueOf(this.platform)); + sb.append(",operation=").append(String.valueOf(this.operation)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRunbooksRequest)) { + return false; + } + + ListRunbooksRequest other = (ListRunbooksRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.runbookRelevance, other.runbookRelevance) + && java.util.Objects.equals(this.platform, other.platform) + && java.util.Objects.equals(this.operation, other.operation) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = + (result * PRIME) + + (this.runbookRelevance == null ? 43 : this.runbookRelevance.hashCode()); + result = (result * PRIME) + (this.platform == null ? 43 : this.platform.hashCode()); + result = (result * PRIME) + (this.operation == null ? 43 : this.operation.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListScheduledFleetsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListScheduledFleetsRequest.java new file mode 100644 index 00000000000..8abddbeedd2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListScheduledFleetsRequest.java @@ -0,0 +1,417 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListScheduledFleetsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListScheduledFleetsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique SchedulerDefinition identifier */ + private String schedulerDefinitionId; + + /** unique SchedulerDefinition identifier */ + public String getSchedulerDefinitionId() { + return schedulerDefinitionId; + } + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName is + * ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName is + * ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName is + * ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListScheduledFleetsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique SchedulerDefinition identifier */ + private String schedulerDefinitionId = null; + + /** + * unique SchedulerDefinition identifier + * + * @param schedulerDefinitionId the value to set + * @return this builder instance + */ + public Builder schedulerDefinitionId(String schedulerDefinitionId) { + this.schedulerDefinitionId = schedulerDefinitionId; + return this; + } + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName + * is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName + * is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListScheduledFleetsRequest o) { + schedulerDefinitionId(o.getSchedulerDefinitionId()); + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListScheduledFleetsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListScheduledFleetsRequest + */ + public ListScheduledFleetsRequest build() { + ListScheduledFleetsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListScheduledFleetsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListScheduledFleetsRequest + */ + public ListScheduledFleetsRequest buildWithoutInvocationCallback() { + ListScheduledFleetsRequest request = new ListScheduledFleetsRequest(); + request.schedulerDefinitionId = schedulerDefinitionId; + request.compartmentId = compartmentId; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListScheduledFleetsRequest(schedulerDefinitionId, compartmentId, displayName, + // limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .schedulerDefinitionId(schedulerDefinitionId) + .compartmentId(compartmentId) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",schedulerDefinitionId=").append(String.valueOf(this.schedulerDefinitionId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListScheduledFleetsRequest)) { + return false; + } + + ListScheduledFleetsRequest other = (ListScheduledFleetsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulerDefinitionId, other.schedulerDefinitionId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulerDefinitionId == null + ? 43 + : this.schedulerDefinitionId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListSchedulerDefinitionsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListSchedulerDefinitionsRequest.java new file mode 100644 index 00000000000..20bc5ec1381 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListSchedulerDefinitionsRequest.java @@ -0,0 +1,549 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * ListSchedulerDefinitionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListSchedulerDefinitionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.LifecycleState + lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** + * A filter to return only Scheduler Definitions whose assocaited product matches the given + * product + */ + private String product; + + /** + * A filter to return only Scheduler Definitions whose assocaited product matches the given + * product + */ + public String getProduct() { + return product; + } + /** unique SchedulerDefinition identifier */ + private String id; + + /** unique SchedulerDefinition identifier */ + public String getId() { + return id; + } + /** unique MaintenanceWindow identifier */ + private String maintenanceWindowId; + + /** unique MaintenanceWindow identifier */ + public String getMaintenanceWindowId() { + return maintenanceWindowId; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated and + * timeOfNextRun is descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated and + * timeOfNextRun is descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + TimeOfNextRun("timeOfNextRun"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated and + * timeOfNextRun is descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListSchedulerDefinitionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A filter to return only Scheduler Definitions whose assocaited product matches the given + * product + */ + private String product = null; + + /** + * A filter to return only Scheduler Definitions whose assocaited product matches the given + * product + * + * @param product the value to set + * @return this builder instance + */ + public Builder product(String product) { + this.product = product; + return this; + } + + /** unique SchedulerDefinition identifier */ + private String id = null; + + /** + * unique SchedulerDefinition identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** unique MaintenanceWindow identifier */ + private String maintenanceWindowId = null; + + /** + * unique MaintenanceWindow identifier + * + * @param maintenanceWindowId the value to set + * @return this builder instance + */ + public Builder maintenanceWindowId(String maintenanceWindowId) { + this.maintenanceWindowId = maintenanceWindowId; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * and timeOfNextRun is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * and timeOfNextRun is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListSchedulerDefinitionsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + product(o.getProduct()); + id(o.getId()); + maintenanceWindowId(o.getMaintenanceWindowId()); + fleetId(o.getFleetId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSchedulerDefinitionsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListSchedulerDefinitionsRequest + */ + public ListSchedulerDefinitionsRequest build() { + ListSchedulerDefinitionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSchedulerDefinitionsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListSchedulerDefinitionsRequest + */ + public ListSchedulerDefinitionsRequest buildWithoutInvocationCallback() { + ListSchedulerDefinitionsRequest request = new ListSchedulerDefinitionsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.product = product; + request.id = id; + request.maintenanceWindowId = maintenanceWindowId; + request.fleetId = fleetId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListSchedulerDefinitionsRequest(compartmentId, lifecycleState, displayName, + // product, id, maintenanceWindowId, fleetId, limit, page, sortOrder, sortBy, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .displayName(displayName) + .product(product) + .id(id) + .maintenanceWindowId(maintenanceWindowId) + .fleetId(fleetId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",product=").append(String.valueOf(this.product)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",maintenanceWindowId=").append(String.valueOf(this.maintenanceWindowId)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSchedulerDefinitionsRequest)) { + return false; + } + + ListSchedulerDefinitionsRequest other = (ListSchedulerDefinitionsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.product, other.product) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.maintenanceWindowId, other.maintenanceWindowId) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.product == null ? 43 : this.product.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindowId == null + ? 43 + : this.maintenanceWindowId.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListSchedulerJobsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListSchedulerJobsRequest.java new file mode 100644 index 00000000000..5089ae2e3db --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListSchedulerJobsRequest.java @@ -0,0 +1,603 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListSchedulerJobsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListSchedulerJobsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** Scheduled Time */ + private java.util.Date timeScheduledGreaterThanOrEqualTo; + + /** Scheduled Time */ + public java.util.Date getTimeScheduledGreaterThanOrEqualTo() { + return timeScheduledGreaterThanOrEqualTo; + } + /** Scheduled Time */ + private java.util.Date timeScheduledLessThan; + + /** Scheduled Time */ + public java.util.Date getTimeScheduledLessThan() { + return timeScheduledLessThan; + } + /** Fetch next remediation Job */ + private Boolean isRemediationJobNeeded; + + /** Fetch next remediation Job */ + public Boolean getIsRemediationJobNeeded() { + return isRemediationJobNeeded; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique SchedulerJob identifier */ + private String id; + + /** unique SchedulerJob identifier */ + public String getId() { + return id; + } + /** SchedulerJob Definition identifier */ + private String defintionId; + + /** SchedulerJob Definition identifier */ + public String getDefintionId() { + return defintionId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated and + * timeScheduled is descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated and + * timeScheduled is descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + TimeScheduled("timeScheduled"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated and + * timeScheduled is descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListSchedulerJobsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.LifecycleState + lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** Scheduled Time */ + private java.util.Date timeScheduledGreaterThanOrEqualTo = null; + + /** + * Scheduled Time + * + * @param timeScheduledGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder timeScheduledGreaterThanOrEqualTo( + java.util.Date timeScheduledGreaterThanOrEqualTo) { + this.timeScheduledGreaterThanOrEqualTo = timeScheduledGreaterThanOrEqualTo; + return this; + } + + /** Scheduled Time */ + private java.util.Date timeScheduledLessThan = null; + + /** + * Scheduled Time + * + * @param timeScheduledLessThan the value to set + * @return this builder instance + */ + public Builder timeScheduledLessThan(java.util.Date timeScheduledLessThan) { + this.timeScheduledLessThan = timeScheduledLessThan; + return this; + } + + /** Fetch next remediation Job */ + private Boolean isRemediationJobNeeded = null; + + /** + * Fetch next remediation Job + * + * @param isRemediationJobNeeded the value to set + * @return this builder instance + */ + public Builder isRemediationJobNeeded(Boolean isRemediationJobNeeded) { + this.isRemediationJobNeeded = isRemediationJobNeeded; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique SchedulerJob identifier */ + private String id = null; + + /** + * unique SchedulerJob identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** SchedulerJob Definition identifier */ + private String defintionId = null; + + /** + * SchedulerJob Definition identifier + * + * @param defintionId the value to set + * @return this builder instance + */ + public Builder defintionId(String defintionId) { + this.defintionId = defintionId; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * and timeScheduled is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * and timeScheduled is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListSchedulerJobsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + fleetId(o.getFleetId()); + timeScheduledGreaterThanOrEqualTo(o.getTimeScheduledGreaterThanOrEqualTo()); + timeScheduledLessThan(o.getTimeScheduledLessThan()); + isRemediationJobNeeded(o.getIsRemediationJobNeeded()); + displayName(o.getDisplayName()); + id(o.getId()); + defintionId(o.getDefintionId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListSchedulerJobsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListSchedulerJobsRequest + */ + public ListSchedulerJobsRequest build() { + ListSchedulerJobsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListSchedulerJobsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListSchedulerJobsRequest + */ + public ListSchedulerJobsRequest buildWithoutInvocationCallback() { + ListSchedulerJobsRequest request = new ListSchedulerJobsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.fleetId = fleetId; + request.timeScheduledGreaterThanOrEqualTo = timeScheduledGreaterThanOrEqualTo; + request.timeScheduledLessThan = timeScheduledLessThan; + request.isRemediationJobNeeded = isRemediationJobNeeded; + request.displayName = displayName; + request.id = id; + request.defintionId = defintionId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListSchedulerJobsRequest(compartmentId, lifecycleState, fleetId, + // timeScheduledGreaterThanOrEqualTo, timeScheduledLessThan, isRemediationJobNeeded, + // displayName, id, defintionId, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .fleetId(fleetId) + .timeScheduledGreaterThanOrEqualTo(timeScheduledGreaterThanOrEqualTo) + .timeScheduledLessThan(timeScheduledLessThan) + .isRemediationJobNeeded(isRemediationJobNeeded) + .displayName(displayName) + .id(id) + .defintionId(defintionId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",timeScheduledGreaterThanOrEqualTo=") + .append(String.valueOf(this.timeScheduledGreaterThanOrEqualTo)); + sb.append(",timeScheduledLessThan=").append(String.valueOf(this.timeScheduledLessThan)); + sb.append(",isRemediationJobNeeded=").append(String.valueOf(this.isRemediationJobNeeded)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",defintionId=").append(String.valueOf(this.defintionId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSchedulerJobsRequest)) { + return false; + } + + ListSchedulerJobsRequest other = (ListSchedulerJobsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals( + this.timeScheduledGreaterThanOrEqualTo, + other.timeScheduledGreaterThanOrEqualTo) + && java.util.Objects.equals(this.timeScheduledLessThan, other.timeScheduledLessThan) + && java.util.Objects.equals( + this.isRemediationJobNeeded, other.isRemediationJobNeeded) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.defintionId, other.defintionId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledGreaterThanOrEqualTo == null + ? 43 + : this.timeScheduledGreaterThanOrEqualTo.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledLessThan == null + ? 43 + : this.timeScheduledLessThan.hashCode()); + result = + (result * PRIME) + + (this.isRemediationJobNeeded == null + ? 43 + : this.isRemediationJobNeeded.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.defintionId == null ? 43 : this.defintionId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListTargetsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListTargetsRequest.java new file mode 100644 index 00000000000..6711ff6f2b9 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListTargetsRequest.java @@ -0,0 +1,385 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListTargetsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListTargetsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListTargetsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListTargetsRequest o) { + fleetId(o.getFleetId()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListTargetsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListTargetsRequest + */ + public ListTargetsRequest build() { + ListTargetsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListTargetsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListTargetsRequest + */ + public ListTargetsRequest buildWithoutInvocationCallback() { + ListTargetsRequest request = new ListTargetsRequest(); + request.fleetId = fleetId; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListTargetsRequest(fleetId, displayName, limit, page, sortOrder, sortBy, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetId(fleetId) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListTargetsRequest)) { + return false; + } + + ListTargetsRequest other = (ListTargetsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListTaskRecordsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListTaskRecordsRequest.java new file mode 100644 index 00000000000..f0210ab0b41 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListTaskRecordsRequest.java @@ -0,0 +1,499 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListTaskRecordsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListTaskRecordsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** The platform for the Task. */ + private String platform; + + /** The platform for the Task. */ + public String getPlatform() { + return platform; + } + /** The type of the Task. */ + private com.oracle.bmc.fleetappsmanagement.model.TaskRecord.Type type; + + /** The type of the Task. */ + public com.oracle.bmc.fleetappsmanagement.model.TaskRecord.Type getType() { + return type; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** unique TaskDetail identifier */ + private String id; + + /** unique TaskDetail identifier */ + public String getId() { + return id; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The current state of the Task. */ + private com.oracle.bmc.fleetappsmanagement.model.TaskRecord.LifecycleState lifecycleState; + + /** The current state of the Task. */ + public com.oracle.bmc.fleetappsmanagement.model.TaskRecord.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListTaskRecordsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The platform for the Task. */ + private String platform = null; + + /** + * The platform for the Task. + * + * @param platform the value to set + * @return this builder instance + */ + public Builder platform(String platform) { + this.platform = platform; + return this; + } + + /** The type of the Task. */ + private com.oracle.bmc.fleetappsmanagement.model.TaskRecord.Type type = null; + + /** + * The type of the Task. + * + * @param type the value to set + * @return this builder instance + */ + public Builder type(com.oracle.bmc.fleetappsmanagement.model.TaskRecord.Type type) { + this.type = type; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** unique TaskDetail identifier */ + private String id = null; + + /** + * unique TaskDetail identifier + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The current state of the Task. */ + private com.oracle.bmc.fleetappsmanagement.model.TaskRecord.LifecycleState lifecycleState = + null; + + /** + * The current state of the Task. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.fleetappsmanagement.model.TaskRecord.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListTaskRecordsRequest o) { + compartmentId(o.getCompartmentId()); + platform(o.getPlatform()); + type(o.getType()); + displayName(o.getDisplayName()); + id(o.getId()); + limit(o.getLimit()); + page(o.getPage()); + lifecycleState(o.getLifecycleState()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListTaskRecordsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListTaskRecordsRequest + */ + public ListTaskRecordsRequest build() { + ListTaskRecordsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListTaskRecordsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListTaskRecordsRequest + */ + public ListTaskRecordsRequest buildWithoutInvocationCallback() { + ListTaskRecordsRequest request = new ListTaskRecordsRequest(); + request.compartmentId = compartmentId; + request.platform = platform; + request.type = type; + request.displayName = displayName; + request.id = id; + request.limit = limit; + request.page = page; + request.lifecycleState = lifecycleState; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListTaskRecordsRequest(compartmentId, platform, type, displayName, id, limit, + // page, lifecycleState, sortBy, sortOrder, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .platform(platform) + .type(type) + .displayName(displayName) + .id(id) + .limit(limit) + .page(page) + .lifecycleState(lifecycleState) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",platform=").append(String.valueOf(this.platform)); + sb.append(",type=").append(String.valueOf(this.type)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListTaskRecordsRequest)) { + return false; + } + + ListTaskRecordsRequest other = (ListTaskRecordsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.platform, other.platform) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.platform == null ? 43 : this.platform.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListWorkRequestErrorsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..b2c52fa4bed --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,361 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * ListWorkRequestErrorsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the asynchronous request. */ + private String workRequestId; + + /** The ID of the asynchronous request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestErrorsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the asynchronous request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest build() { + ListWorkRequestErrorsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest buildWithoutInvocationCallback() { + ListWorkRequestErrorsRequest request = new ListWorkRequestErrorsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, page, limit, sortBy, + // sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsRequest)) { + return false; + } + + ListWorkRequestErrorsRequest other = (ListWorkRequestErrorsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListWorkRequestLogsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..a5d149e105e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,359 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListWorkRequestLogsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the asynchronous request. */ + private String workRequestId; + + /** The ID of the asynchronous request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestLogsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the asynchronous request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest build() { + ListWorkRequestLogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest buildWithoutInvocationCallback() { + ListWorkRequestLogsRequest request = new ListWorkRequestLogsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, page, limit, sortBy, + // sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsRequest)) { + return false; + } + + ListWorkRequestLogsRequest other = (ListWorkRequestLogsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListWorkRequestsRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..5ae8dbfc5ff --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/ListWorkRequestsRequest.java @@ -0,0 +1,444 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** The ID of the asynchronous work request. */ + private String workRequestId; + + /** The ID of the asynchronous work request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** A filter to return only resources their lifecycleState matches the given OperationStatus. */ + private com.oracle.bmc.fleetappsmanagement.model.OperationStatus status; + + /** A filter to return only resources their lifecycleState matches the given OperationStatus. */ + public com.oracle.bmc.fleetappsmanagement.model.OperationStatus getStatus() { + return status; + } + /** Resource Identifier */ + private String resourceId; + + /** Resource Identifier */ + public String getResourceId() { + return resourceId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.fleetappsmanagement.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeAccepted("timeAccepted"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The ID of the asynchronous work request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given OperationStatus. + */ + private com.oracle.bmc.fleetappsmanagement.model.OperationStatus status = null; + + /** + * A filter to return only resources their lifecycleState matches the given OperationStatus. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(com.oracle.bmc.fleetappsmanagement.model.OperationStatus status) { + this.status = status; + return this; + } + + /** Resource Identifier */ + private String resourceId = null; + + /** + * Resource Identifier + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.fleetappsmanagement.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted + * is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted + * is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestsRequest o) { + compartmentId(o.getCompartmentId()); + workRequestId(o.getWorkRequestId()); + status(o.getStatus()); + resourceId(o.getResourceId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest build() { + ListWorkRequestsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest buildWithoutInvocationCallback() { + ListWorkRequestsRequest request = new ListWorkRequestsRequest(); + request.compartmentId = compartmentId; + request.workRequestId = workRequestId; + request.status = status; + request.resourceId = resourceId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, + // opcRequestId, page, limit, sortOrder, sortBy); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .workRequestId(workRequestId) + .status(status) + .resourceId(resourceId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortOrder(sortOrder) + .sortBy(sortBy); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",status=").append(String.valueOf(this.status)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsRequest)) { + return false; + } + + ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/RequestResourceValidationRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/RequestResourceValidationRequest.java new file mode 100644 index 00000000000..d33ad51f608 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/RequestResourceValidationRequest.java @@ -0,0 +1,311 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * RequestResourceValidationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class RequestResourceValidationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.RequestResourceValidationDetails> { + + /** Details for requesting resource validation */ + private com.oracle.bmc.fleetappsmanagement.model.RequestResourceValidationDetails + requestResourceValidationDetails; + + /** Details for requesting resource validation */ + public com.oracle.bmc.fleetappsmanagement.model.RequestResourceValidationDetails + getRequestResourceValidationDetails() { + return requestResourceValidationDetails; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.RequestResourceValidationDetails getBody$() { + return requestResourceValidationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RequestResourceValidationRequest, + com.oracle.bmc.fleetappsmanagement.model.RequestResourceValidationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for requesting resource validation */ + private com.oracle.bmc.fleetappsmanagement.model.RequestResourceValidationDetails + requestResourceValidationDetails = null; + + /** + * Details for requesting resource validation + * + * @param requestResourceValidationDetails the value to set + * @return this builder instance + */ + public Builder requestResourceValidationDetails( + com.oracle.bmc.fleetappsmanagement.model.RequestResourceValidationDetails + requestResourceValidationDetails) { + this.requestResourceValidationDetails = requestResourceValidationDetails; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RequestResourceValidationRequest o) { + requestResourceValidationDetails(o.getRequestResourceValidationDetails()); + fleetId(o.getFleetId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RequestResourceValidationRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of RequestResourceValidationRequest + */ + public RequestResourceValidationRequest build() { + RequestResourceValidationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.RequestResourceValidationDetails body) { + requestResourceValidationDetails(body); + return this; + } + + /** + * Build the instance of RequestResourceValidationRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RequestResourceValidationRequest + */ + public RequestResourceValidationRequest buildWithoutInvocationCallback() { + RequestResourceValidationRequest request = new RequestResourceValidationRequest(); + request.requestResourceValidationDetails = requestResourceValidationDetails; + request.fleetId = fleetId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new RequestResourceValidationRequest(requestResourceValidationDetails, fleetId, + // opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .requestResourceValidationDetails(requestResourceValidationDetails) + .fleetId(fleetId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",requestResourceValidationDetails=") + .append(String.valueOf(this.requestResourceValidationDetails)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RequestResourceValidationRequest)) { + return false; + } + + RequestResourceValidationRequest other = (RequestResourceValidationRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.requestResourceValidationDetails, + other.requestResourceValidationDetails) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.requestResourceValidationDetails == null + ? 43 + : this.requestResourceValidationDetails.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/RequestTargetDiscoveryRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/RequestTargetDiscoveryRequest.java new file mode 100644 index 00000000000..2f2e328a9b2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/RequestTargetDiscoveryRequest.java @@ -0,0 +1,310 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * RequestTargetDiscoveryRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class RequestTargetDiscoveryRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.RequestTargetDiscoveryDetails> { + + /** Details for requesting target discovery */ + private com.oracle.bmc.fleetappsmanagement.model.RequestTargetDiscoveryDetails + requestTargetDiscoveryDetails; + + /** Details for requesting target discovery */ + public com.oracle.bmc.fleetappsmanagement.model.RequestTargetDiscoveryDetails + getRequestTargetDiscoveryDetails() { + return requestTargetDiscoveryDetails; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.RequestTargetDiscoveryDetails getBody$() { + return requestTargetDiscoveryDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RequestTargetDiscoveryRequest, + com.oracle.bmc.fleetappsmanagement.model.RequestTargetDiscoveryDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for requesting target discovery */ + private com.oracle.bmc.fleetappsmanagement.model.RequestTargetDiscoveryDetails + requestTargetDiscoveryDetails = null; + + /** + * Details for requesting target discovery + * + * @param requestTargetDiscoveryDetails the value to set + * @return this builder instance + */ + public Builder requestTargetDiscoveryDetails( + com.oracle.bmc.fleetappsmanagement.model.RequestTargetDiscoveryDetails + requestTargetDiscoveryDetails) { + this.requestTargetDiscoveryDetails = requestTargetDiscoveryDetails; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RequestTargetDiscoveryRequest o) { + requestTargetDiscoveryDetails(o.getRequestTargetDiscoveryDetails()); + fleetId(o.getFleetId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RequestTargetDiscoveryRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of RequestTargetDiscoveryRequest + */ + public RequestTargetDiscoveryRequest build() { + RequestTargetDiscoveryRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.RequestTargetDiscoveryDetails body) { + requestTargetDiscoveryDetails(body); + return this; + } + + /** + * Build the instance of RequestTargetDiscoveryRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RequestTargetDiscoveryRequest + */ + public RequestTargetDiscoveryRequest buildWithoutInvocationCallback() { + RequestTargetDiscoveryRequest request = new RequestTargetDiscoveryRequest(); + request.requestTargetDiscoveryDetails = requestTargetDiscoveryDetails; + request.fleetId = fleetId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new RequestTargetDiscoveryRequest(requestTargetDiscoveryDetails, fleetId, + // opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .requestTargetDiscoveryDetails(requestTargetDiscoveryDetails) + .fleetId(fleetId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",requestTargetDiscoveryDetails=") + .append(String.valueOf(this.requestTargetDiscoveryDetails)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RequestTargetDiscoveryRequest)) { + return false; + } + + RequestTargetDiscoveryRequest other = (RequestTargetDiscoveryRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.requestTargetDiscoveryDetails, other.requestTargetDiscoveryDetails) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.requestTargetDiscoveryDetails == null + ? 43 + : this.requestTargetDiscoveryDetails.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetCredentialRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetCredentialRequest.java new file mode 100644 index 00000000000..19a3ae47f89 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetCredentialRequest.java @@ -0,0 +1,333 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * UpdateFleetCredentialRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateFleetCredentialRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetCredentialDetails> { + + /** unique FleetCredential identifier */ + private String fleetCredentialId; + + /** unique FleetCredential identifier */ + public String getFleetCredentialId() { + return fleetCredentialId; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateFleetCredentialDetails + updateFleetCredentialDetails; + + /** The information to be updated. */ + public com.oracle.bmc.fleetappsmanagement.model.UpdateFleetCredentialDetails + getUpdateFleetCredentialDetails() { + return updateFleetCredentialDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.UpdateFleetCredentialDetails getBody$() { + return updateFleetCredentialDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateFleetCredentialRequest, + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetCredentialDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FleetCredential identifier */ + private String fleetCredentialId = null; + + /** + * unique FleetCredential identifier + * + * @param fleetCredentialId the value to set + * @return this builder instance + */ + public Builder fleetCredentialId(String fleetCredentialId) { + this.fleetCredentialId = fleetCredentialId; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateFleetCredentialDetails + updateFleetCredentialDetails = null; + + /** + * The information to be updated. + * + * @param updateFleetCredentialDetails the value to set + * @return this builder instance + */ + public Builder updateFleetCredentialDetails( + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetCredentialDetails + updateFleetCredentialDetails) { + this.updateFleetCredentialDetails = updateFleetCredentialDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateFleetCredentialRequest o) { + fleetCredentialId(o.getFleetCredentialId()); + fleetId(o.getFleetId()); + updateFleetCredentialDetails(o.getUpdateFleetCredentialDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateFleetCredentialRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of UpdateFleetCredentialRequest + */ + public UpdateFleetCredentialRequest build() { + UpdateFleetCredentialRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetCredentialDetails body) { + updateFleetCredentialDetails(body); + return this; + } + + /** + * Build the instance of UpdateFleetCredentialRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateFleetCredentialRequest + */ + public UpdateFleetCredentialRequest buildWithoutInvocationCallback() { + UpdateFleetCredentialRequest request = new UpdateFleetCredentialRequest(); + request.fleetCredentialId = fleetCredentialId; + request.fleetId = fleetId; + request.updateFleetCredentialDetails = updateFleetCredentialDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateFleetCredentialRequest(fleetCredentialId, fleetId, + // updateFleetCredentialDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetCredentialId(fleetCredentialId) + .fleetId(fleetId) + .updateFleetCredentialDetails(updateFleetCredentialDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetCredentialId=").append(String.valueOf(this.fleetCredentialId)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",updateFleetCredentialDetails=") + .append(String.valueOf(this.updateFleetCredentialDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetCredentialRequest)) { + return false; + } + + UpdateFleetCredentialRequest other = (UpdateFleetCredentialRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetCredentialId, other.fleetCredentialId) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals( + this.updateFleetCredentialDetails, other.updateFleetCredentialDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fleetCredentialId == null ? 43 : this.fleetCredentialId.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.updateFleetCredentialDetails == null + ? 43 + : this.updateFleetCredentialDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetPropertyRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetPropertyRequest.java new file mode 100644 index 00000000000..a58f87dedb6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetPropertyRequest.java @@ -0,0 +1,332 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use UpdateFleetPropertyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateFleetPropertyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetPropertyDetails> { + + /** unique FleetProperty identifier */ + private String fleetPropertyId; + + /** unique FleetProperty identifier */ + public String getFleetPropertyId() { + return fleetPropertyId; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateFleetPropertyDetails + updateFleetPropertyDetails; + + /** The information to be updated. */ + public com.oracle.bmc.fleetappsmanagement.model.UpdateFleetPropertyDetails + getUpdateFleetPropertyDetails() { + return updateFleetPropertyDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.UpdateFleetPropertyDetails getBody$() { + return updateFleetPropertyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateFleetPropertyRequest, + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetPropertyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FleetProperty identifier */ + private String fleetPropertyId = null; + + /** + * unique FleetProperty identifier + * + * @param fleetPropertyId the value to set + * @return this builder instance + */ + public Builder fleetPropertyId(String fleetPropertyId) { + this.fleetPropertyId = fleetPropertyId; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateFleetPropertyDetails + updateFleetPropertyDetails = null; + + /** + * The information to be updated. + * + * @param updateFleetPropertyDetails the value to set + * @return this builder instance + */ + public Builder updateFleetPropertyDetails( + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetPropertyDetails + updateFleetPropertyDetails) { + this.updateFleetPropertyDetails = updateFleetPropertyDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateFleetPropertyRequest o) { + fleetPropertyId(o.getFleetPropertyId()); + fleetId(o.getFleetId()); + updateFleetPropertyDetails(o.getUpdateFleetPropertyDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateFleetPropertyRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of UpdateFleetPropertyRequest + */ + public UpdateFleetPropertyRequest build() { + UpdateFleetPropertyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetPropertyDetails body) { + updateFleetPropertyDetails(body); + return this; + } + + /** + * Build the instance of UpdateFleetPropertyRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateFleetPropertyRequest + */ + public UpdateFleetPropertyRequest buildWithoutInvocationCallback() { + UpdateFleetPropertyRequest request = new UpdateFleetPropertyRequest(); + request.fleetPropertyId = fleetPropertyId; + request.fleetId = fleetId; + request.updateFleetPropertyDetails = updateFleetPropertyDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateFleetPropertyRequest(fleetPropertyId, fleetId, updateFleetPropertyDetails, + // ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetPropertyId(fleetPropertyId) + .fleetId(fleetId) + .updateFleetPropertyDetails(updateFleetPropertyDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetPropertyId=").append(String.valueOf(this.fleetPropertyId)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",updateFleetPropertyDetails=") + .append(String.valueOf(this.updateFleetPropertyDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetPropertyRequest)) { + return false; + } + + UpdateFleetPropertyRequest other = (UpdateFleetPropertyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetPropertyId, other.fleetPropertyId) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals( + this.updateFleetPropertyDetails, other.updateFleetPropertyDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fleetPropertyId == null ? 43 : this.fleetPropertyId.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.updateFleetPropertyDetails == null + ? 43 + : this.updateFleetPropertyDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetRequest.java new file mode 100644 index 00000000000..c4e407377e6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetRequest.java @@ -0,0 +1,296 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use UpdateFleetRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateFleetRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetDetails> { + + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateFleetDetails updateFleetDetails; + + /** The information to be updated. */ + public com.oracle.bmc.fleetappsmanagement.model.UpdateFleetDetails getUpdateFleetDetails() { + return updateFleetDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.UpdateFleetDetails getBody$() { + return updateFleetDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateFleetRequest, + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateFleetDetails updateFleetDetails = + null; + + /** + * The information to be updated. + * + * @param updateFleetDetails the value to set + * @return this builder instance + */ + public Builder updateFleetDetails( + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetDetails updateFleetDetails) { + this.updateFleetDetails = updateFleetDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateFleetRequest o) { + fleetId(o.getFleetId()); + updateFleetDetails(o.getUpdateFleetDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateFleetRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of UpdateFleetRequest + */ + public UpdateFleetRequest build() { + UpdateFleetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.fleetappsmanagement.model.UpdateFleetDetails body) { + updateFleetDetails(body); + return this; + } + + /** + * Build the instance of UpdateFleetRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateFleetRequest + */ + public UpdateFleetRequest buildWithoutInvocationCallback() { + UpdateFleetRequest request = new UpdateFleetRequest(); + request.fleetId = fleetId; + request.updateFleetDetails = updateFleetDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateFleetRequest(fleetId, updateFleetDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetId(fleetId) + .updateFleetDetails(updateFleetDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",updateFleetDetails=").append(String.valueOf(this.updateFleetDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetRequest)) { + return false; + } + + UpdateFleetRequest other = (UpdateFleetRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals(this.updateFleetDetails, other.updateFleetDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.updateFleetDetails == null + ? 43 + : this.updateFleetDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetResourceRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetResourceRequest.java new file mode 100644 index 00000000000..d15e926b675 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateFleetResourceRequest.java @@ -0,0 +1,332 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use UpdateFleetResourceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateFleetResourceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetResourceDetails> { + + /** unique FleetResource identifier */ + private String fleetResourceId; + + /** unique FleetResource identifier */ + public String getFleetResourceId() { + return fleetResourceId; + } + /** unique Fleet identifier */ + private String fleetId; + + /** unique Fleet identifier */ + public String getFleetId() { + return fleetId; + } + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateFleetResourceDetails + updateFleetResourceDetails; + + /** The information to be updated. */ + public com.oracle.bmc.fleetappsmanagement.model.UpdateFleetResourceDetails + getUpdateFleetResourceDetails() { + return updateFleetResourceDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.UpdateFleetResourceDetails getBody$() { + return updateFleetResourceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateFleetResourceRequest, + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetResourceDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique FleetResource identifier */ + private String fleetResourceId = null; + + /** + * unique FleetResource identifier + * + * @param fleetResourceId the value to set + * @return this builder instance + */ + public Builder fleetResourceId(String fleetResourceId) { + this.fleetResourceId = fleetResourceId; + return this; + } + + /** unique Fleet identifier */ + private String fleetId = null; + + /** + * unique Fleet identifier + * + * @param fleetId the value to set + * @return this builder instance + */ + public Builder fleetId(String fleetId) { + this.fleetId = fleetId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateFleetResourceDetails + updateFleetResourceDetails = null; + + /** + * The information to be updated. + * + * @param updateFleetResourceDetails the value to set + * @return this builder instance + */ + public Builder updateFleetResourceDetails( + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetResourceDetails + updateFleetResourceDetails) { + this.updateFleetResourceDetails = updateFleetResourceDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateFleetResourceRequest o) { + fleetResourceId(o.getFleetResourceId()); + fleetId(o.getFleetId()); + updateFleetResourceDetails(o.getUpdateFleetResourceDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateFleetResourceRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of UpdateFleetResourceRequest + */ + public UpdateFleetResourceRequest build() { + UpdateFleetResourceRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.UpdateFleetResourceDetails body) { + updateFleetResourceDetails(body); + return this; + } + + /** + * Build the instance of UpdateFleetResourceRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateFleetResourceRequest + */ + public UpdateFleetResourceRequest buildWithoutInvocationCallback() { + UpdateFleetResourceRequest request = new UpdateFleetResourceRequest(); + request.fleetResourceId = fleetResourceId; + request.fleetId = fleetId; + request.updateFleetResourceDetails = updateFleetResourceDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateFleetResourceRequest(fleetResourceId, fleetId, updateFleetResourceDetails, + // ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .fleetResourceId(fleetResourceId) + .fleetId(fleetId) + .updateFleetResourceDetails(updateFleetResourceDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",fleetResourceId=").append(String.valueOf(this.fleetResourceId)); + sb.append(",fleetId=").append(String.valueOf(this.fleetId)); + sb.append(",updateFleetResourceDetails=") + .append(String.valueOf(this.updateFleetResourceDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetResourceRequest)) { + return false; + } + + UpdateFleetResourceRequest other = (UpdateFleetResourceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.fleetResourceId, other.fleetResourceId) + && java.util.Objects.equals(this.fleetId, other.fleetId) + && java.util.Objects.equals( + this.updateFleetResourceDetails, other.updateFleetResourceDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.fleetResourceId == null ? 43 : this.fleetResourceId.hashCode()); + result = (result * PRIME) + (this.fleetId == null ? 43 : this.fleetId.hashCode()); + result = + (result * PRIME) + + (this.updateFleetResourceDetails == null + ? 43 + : this.updateFleetResourceDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateMaintenanceWindowRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateMaintenanceWindowRequest.java new file mode 100644 index 00000000000..d09583a4075 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateMaintenanceWindowRequest.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * UpdateMaintenanceWindowRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateMaintenanceWindowRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.UpdateMaintenanceWindowDetails> { + + /** unique MaintenanceWindow identifier */ + private String maintenanceWindowId; + + /** unique MaintenanceWindow identifier */ + public String getMaintenanceWindowId() { + return maintenanceWindowId; + } + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateMaintenanceWindowDetails + updateMaintenanceWindowDetails; + + /** The information to be updated. */ + public com.oracle.bmc.fleetappsmanagement.model.UpdateMaintenanceWindowDetails + getUpdateMaintenanceWindowDetails() { + return updateMaintenanceWindowDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.UpdateMaintenanceWindowDetails getBody$() { + return updateMaintenanceWindowDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateMaintenanceWindowRequest, + com.oracle.bmc.fleetappsmanagement.model.UpdateMaintenanceWindowDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique MaintenanceWindow identifier */ + private String maintenanceWindowId = null; + + /** + * unique MaintenanceWindow identifier + * + * @param maintenanceWindowId the value to set + * @return this builder instance + */ + public Builder maintenanceWindowId(String maintenanceWindowId) { + this.maintenanceWindowId = maintenanceWindowId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateMaintenanceWindowDetails + updateMaintenanceWindowDetails = null; + + /** + * The information to be updated. + * + * @param updateMaintenanceWindowDetails the value to set + * @return this builder instance + */ + public Builder updateMaintenanceWindowDetails( + com.oracle.bmc.fleetappsmanagement.model.UpdateMaintenanceWindowDetails + updateMaintenanceWindowDetails) { + this.updateMaintenanceWindowDetails = updateMaintenanceWindowDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateMaintenanceWindowRequest o) { + maintenanceWindowId(o.getMaintenanceWindowId()); + updateMaintenanceWindowDetails(o.getUpdateMaintenanceWindowDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateMaintenanceWindowRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of UpdateMaintenanceWindowRequest + */ + public UpdateMaintenanceWindowRequest build() { + UpdateMaintenanceWindowRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.UpdateMaintenanceWindowDetails body) { + updateMaintenanceWindowDetails(body); + return this; + } + + /** + * Build the instance of UpdateMaintenanceWindowRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateMaintenanceWindowRequest + */ + public UpdateMaintenanceWindowRequest buildWithoutInvocationCallback() { + UpdateMaintenanceWindowRequest request = new UpdateMaintenanceWindowRequest(); + request.maintenanceWindowId = maintenanceWindowId; + request.updateMaintenanceWindowDetails = updateMaintenanceWindowDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateMaintenanceWindowRequest(maintenanceWindowId, + // updateMaintenanceWindowDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .maintenanceWindowId(maintenanceWindowId) + .updateMaintenanceWindowDetails(updateMaintenanceWindowDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",maintenanceWindowId=").append(String.valueOf(this.maintenanceWindowId)); + sb.append(",updateMaintenanceWindowDetails=") + .append(String.valueOf(this.updateMaintenanceWindowDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMaintenanceWindowRequest)) { + return false; + } + + UpdateMaintenanceWindowRequest other = (UpdateMaintenanceWindowRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.maintenanceWindowId, other.maintenanceWindowId) + && java.util.Objects.equals( + this.updateMaintenanceWindowDetails, other.updateMaintenanceWindowDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.maintenanceWindowId == null + ? 43 + : this.maintenanceWindowId.hashCode()); + result = + (result * PRIME) + + (this.updateMaintenanceWindowDetails == null + ? 43 + : this.updateMaintenanceWindowDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdatePropertyRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdatePropertyRequest.java new file mode 100644 index 00000000000..9095d446233 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdatePropertyRequest.java @@ -0,0 +1,298 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use UpdatePropertyRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdatePropertyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.UpdatePropertyDetails> { + + /** unique Property identifier */ + private String propertyId; + + /** unique Property identifier */ + public String getPropertyId() { + return propertyId; + } + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdatePropertyDetails updatePropertyDetails; + + /** The information to be updated. */ + public com.oracle.bmc.fleetappsmanagement.model.UpdatePropertyDetails + getUpdatePropertyDetails() { + return updatePropertyDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.UpdatePropertyDetails getBody$() { + return updatePropertyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdatePropertyRequest, + com.oracle.bmc.fleetappsmanagement.model.UpdatePropertyDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique Property identifier */ + private String propertyId = null; + + /** + * unique Property identifier + * + * @param propertyId the value to set + * @return this builder instance + */ + public Builder propertyId(String propertyId) { + this.propertyId = propertyId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdatePropertyDetails + updatePropertyDetails = null; + + /** + * The information to be updated. + * + * @param updatePropertyDetails the value to set + * @return this builder instance + */ + public Builder updatePropertyDetails( + com.oracle.bmc.fleetappsmanagement.model.UpdatePropertyDetails + updatePropertyDetails) { + this.updatePropertyDetails = updatePropertyDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdatePropertyRequest o) { + propertyId(o.getPropertyId()); + updatePropertyDetails(o.getUpdatePropertyDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdatePropertyRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of UpdatePropertyRequest + */ + public UpdatePropertyRequest build() { + UpdatePropertyRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.fleetappsmanagement.model.UpdatePropertyDetails body) { + updatePropertyDetails(body); + return this; + } + + /** + * Build the instance of UpdatePropertyRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdatePropertyRequest + */ + public UpdatePropertyRequest buildWithoutInvocationCallback() { + UpdatePropertyRequest request = new UpdatePropertyRequest(); + request.propertyId = propertyId; + request.updatePropertyDetails = updatePropertyDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdatePropertyRequest(propertyId, updatePropertyDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .propertyId(propertyId) + .updatePropertyDetails(updatePropertyDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",propertyId=").append(String.valueOf(this.propertyId)); + sb.append(",updatePropertyDetails=").append(String.valueOf(this.updatePropertyDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePropertyRequest)) { + return false; + } + + UpdatePropertyRequest other = (UpdatePropertyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.propertyId, other.propertyId) + && java.util.Objects.equals(this.updatePropertyDetails, other.updatePropertyDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.propertyId == null ? 43 : this.propertyId.hashCode()); + result = + (result * PRIME) + + (this.updatePropertyDetails == null + ? 43 + : this.updatePropertyDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateSchedulerDefinitionRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateSchedulerDefinitionRequest.java new file mode 100644 index 00000000000..c1f8002b3f2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateSchedulerDefinitionRequest.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use + * UpdateSchedulerDefinitionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateSchedulerDefinitionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerDefinitionDetails> { + + /** unique SchedulerDefinition identifier */ + private String schedulerDefinitionId; + + /** unique SchedulerDefinition identifier */ + public String getSchedulerDefinitionId() { + return schedulerDefinitionId; + } + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerDefinitionDetails + updateSchedulerDefinitionDetails; + + /** The information to be updated. */ + public com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerDefinitionDetails + getUpdateSchedulerDefinitionDetails() { + return updateSchedulerDefinitionDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerDefinitionDetails getBody$() { + return updateSchedulerDefinitionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateSchedulerDefinitionRequest, + com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerDefinitionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique SchedulerDefinition identifier */ + private String schedulerDefinitionId = null; + + /** + * unique SchedulerDefinition identifier + * + * @param schedulerDefinitionId the value to set + * @return this builder instance + */ + public Builder schedulerDefinitionId(String schedulerDefinitionId) { + this.schedulerDefinitionId = schedulerDefinitionId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerDefinitionDetails + updateSchedulerDefinitionDetails = null; + + /** + * The information to be updated. + * + * @param updateSchedulerDefinitionDetails the value to set + * @return this builder instance + */ + public Builder updateSchedulerDefinitionDetails( + com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerDefinitionDetails + updateSchedulerDefinitionDetails) { + this.updateSchedulerDefinitionDetails = updateSchedulerDefinitionDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateSchedulerDefinitionRequest o) { + schedulerDefinitionId(o.getSchedulerDefinitionId()); + updateSchedulerDefinitionDetails(o.getUpdateSchedulerDefinitionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateSchedulerDefinitionRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of UpdateSchedulerDefinitionRequest + */ + public UpdateSchedulerDefinitionRequest build() { + UpdateSchedulerDefinitionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerDefinitionDetails body) { + updateSchedulerDefinitionDetails(body); + return this; + } + + /** + * Build the instance of UpdateSchedulerDefinitionRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateSchedulerDefinitionRequest + */ + public UpdateSchedulerDefinitionRequest buildWithoutInvocationCallback() { + UpdateSchedulerDefinitionRequest request = new UpdateSchedulerDefinitionRequest(); + request.schedulerDefinitionId = schedulerDefinitionId; + request.updateSchedulerDefinitionDetails = updateSchedulerDefinitionDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateSchedulerDefinitionRequest(schedulerDefinitionId, + // updateSchedulerDefinitionDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .schedulerDefinitionId(schedulerDefinitionId) + .updateSchedulerDefinitionDetails(updateSchedulerDefinitionDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",schedulerDefinitionId=").append(String.valueOf(this.schedulerDefinitionId)); + sb.append(",updateSchedulerDefinitionDetails=") + .append(String.valueOf(this.updateSchedulerDefinitionDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSchedulerDefinitionRequest)) { + return false; + } + + UpdateSchedulerDefinitionRequest other = (UpdateSchedulerDefinitionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulerDefinitionId, other.schedulerDefinitionId) + && java.util.Objects.equals( + this.updateSchedulerDefinitionDetails, + other.updateSchedulerDefinitionDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulerDefinitionId == null + ? 43 + : this.schedulerDefinitionId.hashCode()); + result = + (result * PRIME) + + (this.updateSchedulerDefinitionDetails == null + ? 43 + : this.updateSchedulerDefinitionDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateSchedulerJobRequest.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateSchedulerJobRequest.java new file mode 100644 index 00000000000..f2e445ed351 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/requests/UpdateSchedulerJobRequest.java @@ -0,0 +1,305 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.requests; + +import com.oracle.bmc.fleetappsmanagement.model.*; +/** + * Example: Click here to see how to use UpdateSchedulerJobRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateSchedulerJobRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerJobDetails> { + + /** unique SchedulerJob identifier */ + private String schedulerJobId; + + /** unique SchedulerJob identifier */ + public String getSchedulerJobId() { + return schedulerJobId; + } + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerJobDetails + updateSchedulerJobDetails; + + /** The information to be updated. */ + public com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerJobDetails + getUpdateSchedulerJobDetails() { + return updateSchedulerJobDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerJobDetails getBody$() { + return updateSchedulerJobDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateSchedulerJobRequest, + com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerJobDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** unique SchedulerJob identifier */ + private String schedulerJobId = null; + + /** + * unique SchedulerJob identifier + * + * @param schedulerJobId the value to set + * @return this builder instance + */ + public Builder schedulerJobId(String schedulerJobId) { + this.schedulerJobId = schedulerJobId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerJobDetails + updateSchedulerJobDetails = null; + + /** + * The information to be updated. + * + * @param updateSchedulerJobDetails the value to set + * @return this builder instance + */ + public Builder updateSchedulerJobDetails( + com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerJobDetails + updateSchedulerJobDetails) { + this.updateSchedulerJobDetails = updateSchedulerJobDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateSchedulerJobRequest o) { + schedulerJobId(o.getSchedulerJobId()); + updateSchedulerJobDetails(o.getUpdateSchedulerJobDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateSchedulerJobRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of UpdateSchedulerJobRequest + */ + public UpdateSchedulerJobRequest build() { + UpdateSchedulerJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerJobDetails body) { + updateSchedulerJobDetails(body); + return this; + } + + /** + * Build the instance of UpdateSchedulerJobRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateSchedulerJobRequest + */ + public UpdateSchedulerJobRequest buildWithoutInvocationCallback() { + UpdateSchedulerJobRequest request = new UpdateSchedulerJobRequest(); + request.schedulerJobId = schedulerJobId; + request.updateSchedulerJobDetails = updateSchedulerJobDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateSchedulerJobRequest(schedulerJobId, updateSchedulerJobDetails, ifMatch, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .schedulerJobId(schedulerJobId) + .updateSchedulerJobDetails(updateSchedulerJobDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",schedulerJobId=").append(String.valueOf(this.schedulerJobId)); + sb.append(",updateSchedulerJobDetails=") + .append(String.valueOf(this.updateSchedulerJobDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSchedulerJobRequest)) { + return false; + } + + UpdateSchedulerJobRequest other = (UpdateSchedulerJobRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.schedulerJobId, other.schedulerJobId) + && java.util.Objects.equals( + this.updateSchedulerJobDetails, other.updateSchedulerJobDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.schedulerJobId == null ? 43 : this.schedulerJobId.hashCode()); + result = + (result * PRIME) + + (this.updateSchedulerJobDetails == null + ? 43 + : this.updateSchedulerJobDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CheckResourceTaggingResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CheckResourceTaggingResponse.java new file mode 100644 index 00000000000..45a9de1d305 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CheckResourceTaggingResponse.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CheckResourceTaggingResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ResourceTagCheckDetails} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.ResourceTagCheckDetails + resourceTagCheckDetails; + + /** + * The returned {@code ResourceTagCheckDetails} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.ResourceTagCheckDetails + getResourceTagCheckDetails() { + return resourceTagCheckDetails; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "resourceTagCheckDetails" + }) + private CheckResourceTaggingResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.ResourceTagCheckDetails + resourceTagCheckDetails) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.resourceTagCheckDetails = resourceTagCheckDetails; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ResourceTagCheckDetails} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.ResourceTagCheckDetails + resourceTagCheckDetails; + + /** + * The returned {@code ResourceTagCheckDetails} instance. + * + * @param resourceTagCheckDetails the value to set + * @return this builder + */ + public Builder resourceTagCheckDetails( + com.oracle.bmc.fleetappsmanagement.model.ResourceTagCheckDetails + resourceTagCheckDetails) { + this.resourceTagCheckDetails = resourceTagCheckDetails; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CheckResourceTaggingResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + resourceTagCheckDetails(o.getResourceTagCheckDetails()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CheckResourceTaggingResponse build() { + return new CheckResourceTaggingResponse( + __httpStatusCode__, headers, etag, opcRequestId, resourceTagCheckDetails); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",resourceTagCheckDetails=").append(String.valueOf(resourceTagCheckDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CheckResourceTaggingResponse)) { + return false; + } + + CheckResourceTaggingResponse other = (CheckResourceTaggingResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.resourceTagCheckDetails, other.resourceTagCheckDetails); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.resourceTagCheckDetails == null + ? 43 + : this.resourceTagCheckDetails.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ConfirmTargetsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ConfirmTargetsResponse.java new file mode 100644 index 00000000000..f3883b3e846 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ConfirmTargetsResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ConfirmTargetsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ConfirmTargetsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ConfirmTargetsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ConfirmTargetsResponse build() { + return new ConfirmTargetsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConfirmTargetsResponse)) { + return false; + } + + ConfirmTargetsResponse other = (ConfirmTargetsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetCredentialResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetCredentialResponse.java new file mode 100644 index 00000000000..716888e32fe --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetCredentialResponse.java @@ -0,0 +1,337 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateFleetCredentialResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * URL for the created fleetCredential, the fleetCredential id will be generated after this + * request is sent. + */ + private String location; + + /** + * URL for the created fleetCredential, the fleetCredential id will be generated after this + * request is sent. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Same as location */ + private String contentLocation; + + /** + * Same as location + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code FleetCredential} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetCredential fleetCredential; + + /** + * The returned {@code FleetCredential} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetCredential getFleetCredential() { + return fleetCredential; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "contentLocation", + "etag", + "opcWorkRequestId", + "opcRequestId", + "fleetCredential" + }) + private CreateFleetCredentialResponse( + int __httpStatusCode__, + java.util.Map> headers, + String location, + String contentLocation, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.FleetCredential fleetCredential) { + super(__httpStatusCode__, headers); + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.fleetCredential = fleetCredential; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * URL for the created fleetCredential, the fleetCredential id will be generated after this + * request is sent. + */ + private String location; + + /** + * URL for the created fleetCredential, the fleetCredential id will be generated after this + * request is sent. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Same as location */ + private String contentLocation; + + /** + * Same as location + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code FleetCredential} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetCredential fleetCredential; + + /** + * The returned {@code FleetCredential} instance. + * + * @param fleetCredential the value to set + * @return this builder + */ + public Builder fleetCredential( + com.oracle.bmc.fleetappsmanagement.model.FleetCredential fleetCredential) { + this.fleetCredential = fleetCredential; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateFleetCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + fleetCredential(o.getFleetCredential()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateFleetCredentialResponse build() { + return new CreateFleetCredentialResponse( + __httpStatusCode__, + headers, + location, + contentLocation, + etag, + opcWorkRequestId, + opcRequestId, + fleetCredential); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",fleetCredential=").append(String.valueOf(fleetCredential)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetCredentialResponse)) { + return false; + } + + CreateFleetCredentialResponse other = (CreateFleetCredentialResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.fleetCredential, other.fleetCredential); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.fleetCredential == null ? 43 : this.fleetCredential.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetPropertyResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetPropertyResponse.java new file mode 100644 index 00000000000..da7e6144340 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetPropertyResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateFleetPropertyResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code FleetProperty} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty; + + /** + * The returned {@code FleetProperty} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetProperty getFleetProperty() { + return fleetProperty; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "fleetProperty" + }) + private CreateFleetPropertyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.fleetProperty = fleetProperty; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code FleetProperty} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty; + + /** + * The returned {@code FleetProperty} instance. + * + * @param fleetProperty the value to set + * @return this builder + */ + public Builder fleetProperty( + com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty) { + this.fleetProperty = fleetProperty; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateFleetPropertyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + fleetProperty(o.getFleetProperty()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateFleetPropertyResponse build() { + return new CreateFleetPropertyResponse( + __httpStatusCode__, headers, etag, opcRequestId, fleetProperty); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",fleetProperty=").append(String.valueOf(fleetProperty)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetPropertyResponse)) { + return false; + } + + CreateFleetPropertyResponse other = (CreateFleetPropertyResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.fleetProperty, other.fleetProperty); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.fleetProperty == null ? 43 : this.fleetProperty.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetResourceResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetResourceResponse.java new file mode 100644 index 00000000000..a04d2cd9804 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetResourceResponse.java @@ -0,0 +1,337 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateFleetResourceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * URL for the created fleetResource, the fleetResource id will be generated after this request + * is sent. + */ + private String location; + + /** + * URL for the created fleetResource, the fleetResource id will be generated after this request + * is sent. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Same as location */ + private String contentLocation; + + /** + * Same as location + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code FleetResource} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetResource fleetResource; + + /** + * The returned {@code FleetResource} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetResource getFleetResource() { + return fleetResource; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "contentLocation", + "etag", + "opcWorkRequestId", + "opcRequestId", + "fleetResource" + }) + private CreateFleetResourceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String location, + String contentLocation, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.FleetResource fleetResource) { + super(__httpStatusCode__, headers); + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.fleetResource = fleetResource; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * URL for the created fleetResource, the fleetResource id will be generated after this + * request is sent. + */ + private String location; + + /** + * URL for the created fleetResource, the fleetResource id will be generated after this + * request is sent. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Same as location */ + private String contentLocation; + + /** + * Same as location + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code FleetResource} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetResource fleetResource; + + /** + * The returned {@code FleetResource} instance. + * + * @param fleetResource the value to set + * @return this builder + */ + public Builder fleetResource( + com.oracle.bmc.fleetappsmanagement.model.FleetResource fleetResource) { + this.fleetResource = fleetResource; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateFleetResourceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + fleetResource(o.getFleetResource()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateFleetResourceResponse build() { + return new CreateFleetResourceResponse( + __httpStatusCode__, + headers, + location, + contentLocation, + etag, + opcWorkRequestId, + opcRequestId, + fleetResource); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",fleetResource=").append(String.valueOf(fleetResource)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetResourceResponse)) { + return false; + } + + CreateFleetResourceResponse other = (CreateFleetResourceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.fleetResource, other.fleetResource); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.fleetResource == null ? 43 : this.fleetResource.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetResponse.java new file mode 100644 index 00000000000..5974af37261 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateFleetResponse.java @@ -0,0 +1,326 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateFleetResponse extends com.oracle.bmc.responses.BmcResponse { + /** URL for the created fleet, the fleet id will be generated after this request is sent. */ + private String location; + + /** + * URL for the created fleet, the fleet id will be generated after this request is sent. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Same as location */ + private String contentLocation; + + /** + * Same as location + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Fleet} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Fleet fleet; + + /** + * The returned {@code Fleet} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.Fleet getFleet() { + return fleet; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "contentLocation", + "etag", + "opcWorkRequestId", + "opcRequestId", + "fleet" + }) + private CreateFleetResponse( + int __httpStatusCode__, + java.util.Map> headers, + String location, + String contentLocation, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.Fleet fleet) { + super(__httpStatusCode__, headers); + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.fleet = fleet; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** URL for the created fleet, the fleet id will be generated after this request is sent. */ + private String location; + + /** + * URL for the created fleet, the fleet id will be generated after this request is sent. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Same as location */ + private String contentLocation; + + /** + * Same as location + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Fleet} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Fleet fleet; + + /** + * The returned {@code Fleet} instance. + * + * @param fleet the value to set + * @return this builder + */ + public Builder fleet(com.oracle.bmc.fleetappsmanagement.model.Fleet fleet) { + this.fleet = fleet; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateFleetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + fleet(o.getFleet()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateFleetResponse build() { + return new CreateFleetResponse( + __httpStatusCode__, + headers, + location, + contentLocation, + etag, + opcWorkRequestId, + opcRequestId, + fleet); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",fleet=").append(String.valueOf(fleet)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateFleetResponse)) { + return false; + } + + CreateFleetResponse other = (CreateFleetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.fleet, other.fleet); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.fleet == null ? 43 : this.fleet.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateMaintenanceWindowResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateMaintenanceWindowResponse.java new file mode 100644 index 00000000000..40fecff409c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateMaintenanceWindowResponse.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateMaintenanceWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code MaintenanceWindow} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow maintenanceWindow; + + /** + * The returned {@code MaintenanceWindow} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "maintenanceWindow" + }) + private CreateMaintenanceWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow maintenanceWindow) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.maintenanceWindow = maintenanceWindow; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateMaintenanceWindowResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code MaintenanceWindow} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow maintenanceWindow; + + /** + * The returned {@code MaintenanceWindow} instance. + * + * @param maintenanceWindow the value to set + * @return this builder + */ + public Builder maintenanceWindow( + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateMaintenanceWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + maintenanceWindow(o.getMaintenanceWindow()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateMaintenanceWindowResponse build() { + return new CreateMaintenanceWindowResponse( + __httpStatusCode__, headers, etag, opcRequestId, maintenanceWindow); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",maintenanceWindow=").append(String.valueOf(maintenanceWindow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateMaintenanceWindowResponse)) { + return false; + } + + CreateMaintenanceWindowResponse other = (CreateMaintenanceWindowResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateOnboardingResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateOnboardingResponse.java new file mode 100644 index 00000000000..3d1a1b57419 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateOnboardingResponse.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateOnboardingResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * URL for the created Onboarding, the Onboarding id will be generated after this request is + * sent. + */ + private String location; + + /** + * URL for the created Onboarding, the Onboarding id will be generated after this request is + * sent. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Same as location */ + private String contentLocation; + + /** + * Same as location + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Onboarding} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Onboarding onboarding; + + /** + * The returned {@code Onboarding} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.Onboarding getOnboarding() { + return onboarding; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "contentLocation", + "etag", + "opcWorkRequestId", + "opcRequestId", + "onboarding" + }) + private CreateOnboardingResponse( + int __httpStatusCode__, + java.util.Map> headers, + String location, + String contentLocation, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.Onboarding onboarding) { + super(__httpStatusCode__, headers); + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.onboarding = onboarding; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * URL for the created Onboarding, the Onboarding id will be generated after this request is + * sent. + */ + private String location; + + /** + * URL for the created Onboarding, the Onboarding id will be generated after this request is + * sent. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Same as location */ + private String contentLocation; + + /** + * Same as location + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Onboarding} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Onboarding onboarding; + + /** + * The returned {@code Onboarding} instance. + * + * @param onboarding the value to set + * @return this builder + */ + public Builder onboarding(com.oracle.bmc.fleetappsmanagement.model.Onboarding onboarding) { + this.onboarding = onboarding; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateOnboardingResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + onboarding(o.getOnboarding()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateOnboardingResponse build() { + return new CreateOnboardingResponse( + __httpStatusCode__, + headers, + location, + contentLocation, + etag, + opcWorkRequestId, + opcRequestId, + onboarding); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",onboarding=").append(String.valueOf(onboarding)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOnboardingResponse)) { + return false; + } + + CreateOnboardingResponse other = (CreateOnboardingResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.onboarding, other.onboarding); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.onboarding == null ? 43 : this.onboarding.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreatePropertyResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreatePropertyResponse.java new file mode 100644 index 00000000000..092bc1dc704 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreatePropertyResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreatePropertyResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Property} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Property property; + + /** + * The returned {@code Property} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.Property getProperty() { + return property; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "property" + }) + private CreatePropertyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.Property property) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.property = property; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Property} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Property property; + + /** + * The returned {@code Property} instance. + * + * @param property the value to set + * @return this builder + */ + public Builder property(com.oracle.bmc.fleetappsmanagement.model.Property property) { + this.property = property; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreatePropertyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + property(o.getProperty()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreatePropertyResponse build() { + return new CreatePropertyResponse( + __httpStatusCode__, headers, etag, opcRequestId, property); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",property=").append(String.valueOf(property)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreatePropertyResponse)) { + return false; + } + + CreatePropertyResponse other = (CreatePropertyResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.property, other.property); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.property == null ? 43 : this.property.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateSchedulerDefinitionResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateSchedulerDefinitionResponse.java new file mode 100644 index 00000000000..d92dba6ddd9 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/CreateSchedulerDefinitionResponse.java @@ -0,0 +1,340 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class CreateSchedulerDefinitionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * URL for the created schedulerDefinition, the schedulerDefinition id will be generated after + * this request is sent. + */ + private String location; + + /** + * URL for the created schedulerDefinition, the schedulerDefinition id will be generated after + * this request is sent. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Same as location */ + private String contentLocation; + + /** + * Same as location + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulerDefinition} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition schedulerDefinition; + + /** + * The returned {@code SchedulerDefinition} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition getSchedulerDefinition() { + return schedulerDefinition; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "contentLocation", + "etag", + "opcWorkRequestId", + "opcRequestId", + "schedulerDefinition" + }) + private CreateSchedulerDefinitionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String location, + String contentLocation, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition schedulerDefinition) { + super(__httpStatusCode__, headers); + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.schedulerDefinition = schedulerDefinition; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateSchedulerDefinitionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * URL for the created schedulerDefinition, the schedulerDefinition id will be generated + * after this request is sent. + */ + private String location; + + /** + * URL for the created schedulerDefinition, the schedulerDefinition id will be generated + * after this request is sent. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Same as location */ + private String contentLocation; + + /** + * Same as location + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulerDefinition} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition schedulerDefinition; + + /** + * The returned {@code SchedulerDefinition} instance. + * + * @param schedulerDefinition the value to set + * @return this builder + */ + public Builder schedulerDefinition( + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition schedulerDefinition) { + this.schedulerDefinition = schedulerDefinition; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateSchedulerDefinitionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + schedulerDefinition(o.getSchedulerDefinition()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateSchedulerDefinitionResponse build() { + return new CreateSchedulerDefinitionResponse( + __httpStatusCode__, + headers, + location, + contentLocation, + etag, + opcWorkRequestId, + opcRequestId, + schedulerDefinition); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",schedulerDefinition=").append(String.valueOf(schedulerDefinition)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateSchedulerDefinitionResponse)) { + return false; + } + + CreateSchedulerDefinitionResponse other = (CreateSchedulerDefinitionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.schedulerDefinition, other.schedulerDefinition); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.schedulerDefinition == null + ? 43 + : this.schedulerDefinition.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetCredentialResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetCredentialResponse.java new file mode 100644 index 00000000000..10e766eba9c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetCredentialResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteFleetCredentialResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteFleetCredentialResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteFleetCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteFleetCredentialResponse build() { + return new DeleteFleetCredentialResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteFleetCredentialResponse)) { + return false; + } + + DeleteFleetCredentialResponse other = (DeleteFleetCredentialResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetPropertyResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetPropertyResponse.java new file mode 100644 index 00000000000..4e9b46dfc1d --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetPropertyResponse.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteFleetPropertyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteFleetPropertyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteFleetPropertyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteFleetPropertyResponse build() { + return new DeleteFleetPropertyResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteFleetPropertyResponse)) { + return false; + } + + DeleteFleetPropertyResponse other = (DeleteFleetPropertyResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetResourceResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetResourceResponse.java new file mode 100644 index 00000000000..9f5a754c934 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetResourceResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteFleetResourceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteFleetResourceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteFleetResourceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteFleetResourceResponse build() { + return new DeleteFleetResourceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteFleetResourceResponse)) { + return false; + } + + DeleteFleetResourceResponse other = (DeleteFleetResourceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetResponse.java new file mode 100644 index 00000000000..eff718431c2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteFleetResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteFleetResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteFleetResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteFleetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteFleetResponse build() { + return new DeleteFleetResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteFleetResponse)) { + return false; + } + + DeleteFleetResponse other = (DeleteFleetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteMaintenanceWindowResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteMaintenanceWindowResponse.java new file mode 100644 index 00000000000..97f864f14ed --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteMaintenanceWindowResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteMaintenanceWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteMaintenanceWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteMaintenanceWindowResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteMaintenanceWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteMaintenanceWindowResponse build() { + return new DeleteMaintenanceWindowResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteMaintenanceWindowResponse)) { + return false; + } + + DeleteMaintenanceWindowResponse other = (DeleteMaintenanceWindowResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeletePropertyResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeletePropertyResponse.java new file mode 100644 index 00000000000..82c0d67a182 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeletePropertyResponse.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeletePropertyResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeletePropertyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeletePropertyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeletePropertyResponse build() { + return new DeletePropertyResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeletePropertyResponse)) { + return false; + } + + DeletePropertyResponse other = (DeletePropertyResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteSchedulerDefinitionResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteSchedulerDefinitionResponse.java new file mode 100644 index 00000000000..492a90aab43 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteSchedulerDefinitionResponse.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteSchedulerDefinitionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteSchedulerDefinitionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteSchedulerDefinitionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteSchedulerDefinitionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteSchedulerDefinitionResponse build() { + return new DeleteSchedulerDefinitionResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteSchedulerDefinitionResponse)) { + return false; + } + + DeleteSchedulerDefinitionResponse other = (DeleteSchedulerDefinitionResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteSchedulerJobResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteSchedulerJobResponse.java new file mode 100644 index 00000000000..c7fe8f45540 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/DeleteSchedulerJobResponse.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class DeleteSchedulerJobResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteSchedulerJobResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteSchedulerJobResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteSchedulerJobResponse build() { + return new DeleteSchedulerJobResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteSchedulerJobResponse)) { + return false; + } + + DeleteSchedulerJobResponse other = (DeleteSchedulerJobResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GenerateComplianceReportResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GenerateComplianceReportResponse.java new file mode 100644 index 00000000000..0ca774b77bd --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GenerateComplianceReportResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GenerateComplianceReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private GenerateComplianceReportResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GenerateComplianceReportResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GenerateComplianceReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GenerateComplianceReportResponse build() { + return new GenerateComplianceReportResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateComplianceReportResponse)) { + return false; + } + + GenerateComplianceReportResponse other = (GenerateComplianceReportResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetComplianceReportResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetComplianceReportResponse.java new file mode 100644 index 00000000000..28407bd631e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetComplianceReportResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetComplianceReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ComplianceReport} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.ComplianceReport complianceReport; + + /** + * The returned {@code ComplianceReport} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.ComplianceReport getComplianceReport() { + return complianceReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "complianceReport" + }) + private GetComplianceReportResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.ComplianceReport complianceReport) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.complianceReport = complianceReport; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ComplianceReport} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.ComplianceReport complianceReport; + + /** + * The returned {@code ComplianceReport} instance. + * + * @param complianceReport the value to set + * @return this builder + */ + public Builder complianceReport( + com.oracle.bmc.fleetappsmanagement.model.ComplianceReport complianceReport) { + this.complianceReport = complianceReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetComplianceReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + complianceReport(o.getComplianceReport()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetComplianceReportResponse build() { + return new GetComplianceReportResponse( + __httpStatusCode__, headers, etag, opcRequestId, complianceReport); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",complianceReport=").append(String.valueOf(complianceReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetComplianceReportResponse)) { + return false; + } + + GetComplianceReportResponse other = (GetComplianceReportResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.complianceReport, other.complianceReport); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.complianceReport == null ? 43 : this.complianceReport.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetExecutionResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetExecutionResponse.java new file mode 100644 index 00000000000..e6a5ef9135e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetExecutionResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetExecutionResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Execution} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Execution execution; + + /** + * The returned {@code Execution} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.Execution getExecution() { + return execution; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "execution" + }) + private GetExecutionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.Execution execution) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.execution = execution; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Execution} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Execution execution; + + /** + * The returned {@code Execution} instance. + * + * @param execution the value to set + * @return this builder + */ + public Builder execution(com.oracle.bmc.fleetappsmanagement.model.Execution execution) { + this.execution = execution; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetExecutionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + execution(o.getExecution()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetExecutionResponse build() { + return new GetExecutionResponse( + __httpStatusCode__, headers, etag, opcRequestId, execution); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",execution=").append(String.valueOf(execution)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetExecutionResponse)) { + return false; + } + + GetExecutionResponse other = (GetExecutionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.execution, other.execution); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.execution == null ? 43 : this.execution.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetCredentialResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetCredentialResponse.java new file mode 100644 index 00000000000..9abc2f0f1c7 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetCredentialResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetFleetCredentialResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code FleetCredential} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetCredential fleetCredential; + + /** + * The returned {@code FleetCredential} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetCredential getFleetCredential() { + return fleetCredential; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "fleetCredential" + }) + private GetFleetCredentialResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.FleetCredential fleetCredential) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.fleetCredential = fleetCredential; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code FleetCredential} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetCredential fleetCredential; + + /** + * The returned {@code FleetCredential} instance. + * + * @param fleetCredential the value to set + * @return this builder + */ + public Builder fleetCredential( + com.oracle.bmc.fleetappsmanagement.model.FleetCredential fleetCredential) { + this.fleetCredential = fleetCredential; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetFleetCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + fleetCredential(o.getFleetCredential()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetFleetCredentialResponse build() { + return new GetFleetCredentialResponse( + __httpStatusCode__, headers, etag, opcRequestId, fleetCredential); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",fleetCredential=").append(String.valueOf(fleetCredential)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetFleetCredentialResponse)) { + return false; + } + + GetFleetCredentialResponse other = (GetFleetCredentialResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.fleetCredential, other.fleetCredential); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.fleetCredential == null ? 43 : this.fleetCredential.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetPropertyResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetPropertyResponse.java new file mode 100644 index 00000000000..c577bf264c4 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetPropertyResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetFleetPropertyResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code FleetProperty} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty; + + /** + * The returned {@code FleetProperty} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetProperty getFleetProperty() { + return fleetProperty; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "fleetProperty" + }) + private GetFleetPropertyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.fleetProperty = fleetProperty; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code FleetProperty} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty; + + /** + * The returned {@code FleetProperty} instance. + * + * @param fleetProperty the value to set + * @return this builder + */ + public Builder fleetProperty( + com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty) { + this.fleetProperty = fleetProperty; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetFleetPropertyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + fleetProperty(o.getFleetProperty()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetFleetPropertyResponse build() { + return new GetFleetPropertyResponse( + __httpStatusCode__, headers, etag, opcRequestId, fleetProperty); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",fleetProperty=").append(String.valueOf(fleetProperty)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetFleetPropertyResponse)) { + return false; + } + + GetFleetPropertyResponse other = (GetFleetPropertyResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.fleetProperty, other.fleetProperty); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.fleetProperty == null ? 43 : this.fleetProperty.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetResourceResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetResourceResponse.java new file mode 100644 index 00000000000..075dc4f1fa6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetResourceResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetFleetResourceResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code FleetResource} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetResource fleetResource; + + /** + * The returned {@code FleetResource} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetResource getFleetResource() { + return fleetResource; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "fleetResource" + }) + private GetFleetResourceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.FleetResource fleetResource) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.fleetResource = fleetResource; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code FleetResource} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetResource fleetResource; + + /** + * The returned {@code FleetResource} instance. + * + * @param fleetResource the value to set + * @return this builder + */ + public Builder fleetResource( + com.oracle.bmc.fleetappsmanagement.model.FleetResource fleetResource) { + this.fleetResource = fleetResource; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetFleetResourceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + fleetResource(o.getFleetResource()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetFleetResourceResponse build() { + return new GetFleetResourceResponse( + __httpStatusCode__, headers, etag, opcRequestId, fleetResource); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",fleetResource=").append(String.valueOf(fleetResource)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetFleetResourceResponse)) { + return false; + } + + GetFleetResourceResponse other = (GetFleetResourceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.fleetResource, other.fleetResource); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.fleetResource == null ? 43 : this.fleetResource.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetResponse.java new file mode 100644 index 00000000000..2f07fd91213 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetFleetResponse.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetFleetResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Fleet} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Fleet fleet; + + /** + * The returned {@code Fleet} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.Fleet getFleet() { + return fleet; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "fleet" + }) + private GetFleetResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.Fleet fleet) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.fleet = fleet; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Fleet} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Fleet fleet; + + /** + * The returned {@code Fleet} instance. + * + * @param fleet the value to set + * @return this builder + */ + public Builder fleet(com.oracle.bmc.fleetappsmanagement.model.Fleet fleet) { + this.fleet = fleet; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetFleetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + fleet(o.getFleet()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetFleetResponse build() { + return new GetFleetResponse(__httpStatusCode__, headers, etag, opcRequestId, fleet); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",fleet=").append(String.valueOf(fleet)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetFleetResponse)) { + return false; + } + + GetFleetResponse other = (GetFleetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.fleet, other.fleet); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.fleet == null ? 43 : this.fleet.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetJobActivityResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetJobActivityResponse.java new file mode 100644 index 00000000000..ef50c66baa8 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetJobActivityResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetJobActivityResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code JobActivity} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.JobActivity jobActivity; + + /** + * The returned {@code JobActivity} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.JobActivity getJobActivity() { + return jobActivity; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "jobActivity" + }) + private GetJobActivityResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.JobActivity jobActivity) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.jobActivity = jobActivity; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code JobActivity} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.JobActivity jobActivity; + + /** + * The returned {@code JobActivity} instance. + * + * @param jobActivity the value to set + * @return this builder + */ + public Builder jobActivity( + com.oracle.bmc.fleetappsmanagement.model.JobActivity jobActivity) { + this.jobActivity = jobActivity; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetJobActivityResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + jobActivity(o.getJobActivity()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetJobActivityResponse build() { + return new GetJobActivityResponse( + __httpStatusCode__, headers, etag, opcRequestId, jobActivity); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",jobActivity=").append(String.valueOf(jobActivity)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetJobActivityResponse)) { + return false; + } + + GetJobActivityResponse other = (GetJobActivityResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.jobActivity, other.jobActivity); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.jobActivity == null ? 43 : this.jobActivity.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetMaintenanceWindowResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetMaintenanceWindowResponse.java new file mode 100644 index 00000000000..41391e9dd00 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetMaintenanceWindowResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetMaintenanceWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code MaintenanceWindow} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow maintenanceWindow; + + /** + * The returned {@code MaintenanceWindow} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow getMaintenanceWindow() { + return maintenanceWindow; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "maintenanceWindow" + }) + private GetMaintenanceWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow maintenanceWindow) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.maintenanceWindow = maintenanceWindow; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code MaintenanceWindow} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow maintenanceWindow; + + /** + * The returned {@code MaintenanceWindow} instance. + * + * @param maintenanceWindow the value to set + * @return this builder + */ + public Builder maintenanceWindow( + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetMaintenanceWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + maintenanceWindow(o.getMaintenanceWindow()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetMaintenanceWindowResponse build() { + return new GetMaintenanceWindowResponse( + __httpStatusCode__, headers, etag, opcRequestId, maintenanceWindow); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",maintenanceWindow=").append(String.valueOf(maintenanceWindow)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMaintenanceWindowResponse)) { + return false; + } + + GetMaintenanceWindowResponse other = (GetMaintenanceWindowResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetPropertyResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetPropertyResponse.java new file mode 100644 index 00000000000..28a5a79b46a --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetPropertyResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetPropertyResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Property} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Property property; + + /** + * The returned {@code Property} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.Property getProperty() { + return property; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "property" + }) + private GetPropertyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.Property property) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.property = property; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Property} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Property property; + + /** + * The returned {@code Property} instance. + * + * @param property the value to set + * @return this builder + */ + public Builder property(com.oracle.bmc.fleetappsmanagement.model.Property property) { + this.property = property; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetPropertyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + property(o.getProperty()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetPropertyResponse build() { + return new GetPropertyResponse( + __httpStatusCode__, headers, etag, opcRequestId, property); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",property=").append(String.valueOf(property)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetPropertyResponse)) { + return false; + } + + GetPropertyResponse other = (GetPropertyResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.property, other.property); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.property == null ? 43 : this.property.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetRunbookResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetRunbookResponse.java new file mode 100644 index 00000000000..78e8b695d07 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetRunbookResponse.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetRunbookResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Runbook} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Runbook runbook; + + /** + * The returned {@code Runbook} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.Runbook getRunbook() { + return runbook; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "runbook" + }) + private GetRunbookResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.Runbook runbook) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.runbook = runbook; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Runbook} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Runbook runbook; + + /** + * The returned {@code Runbook} instance. + * + * @param runbook the value to set + * @return this builder + */ + public Builder runbook(com.oracle.bmc.fleetappsmanagement.model.Runbook runbook) { + this.runbook = runbook; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetRunbookResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + runbook(o.getRunbook()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetRunbookResponse build() { + return new GetRunbookResponse(__httpStatusCode__, headers, etag, opcRequestId, runbook); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",runbook=").append(String.valueOf(runbook)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetRunbookResponse)) { + return false; + } + + GetRunbookResponse other = (GetRunbookResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.runbook, other.runbook); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.runbook == null ? 43 : this.runbook.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetSchedulerDefinitionResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetSchedulerDefinitionResponse.java new file mode 100644 index 00000000000..dcee0b19e06 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetSchedulerDefinitionResponse.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetSchedulerDefinitionResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulerDefinition} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition schedulerDefinition; + + /** + * The returned {@code SchedulerDefinition} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition getSchedulerDefinition() { + return schedulerDefinition; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "schedulerDefinition" + }) + private GetSchedulerDefinitionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition schedulerDefinition) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedulerDefinition = schedulerDefinition; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetSchedulerDefinitionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulerDefinition} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition schedulerDefinition; + + /** + * The returned {@code SchedulerDefinition} instance. + * + * @param schedulerDefinition the value to set + * @return this builder + */ + public Builder schedulerDefinition( + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition schedulerDefinition) { + this.schedulerDefinition = schedulerDefinition; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetSchedulerDefinitionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedulerDefinition(o.getSchedulerDefinition()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetSchedulerDefinitionResponse build() { + return new GetSchedulerDefinitionResponse( + __httpStatusCode__, headers, etag, opcRequestId, schedulerDefinition); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",schedulerDefinition=").append(String.valueOf(schedulerDefinition)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSchedulerDefinitionResponse)) { + return false; + } + + GetSchedulerDefinitionResponse other = (GetSchedulerDefinitionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.schedulerDefinition, other.schedulerDefinition); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.schedulerDefinition == null + ? 43 + : this.schedulerDefinition.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetSchedulerJobResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetSchedulerJobResponse.java new file mode 100644 index 00000000000..473b0fdcfb5 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetSchedulerJobResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetSchedulerJobResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulerJob} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerJob schedulerJob; + + /** + * The returned {@code SchedulerJob} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.SchedulerJob getSchedulerJob() { + return schedulerJob; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "schedulerJob" + }) + private GetSchedulerJobResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob schedulerJob) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedulerJob = schedulerJob; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulerJob} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerJob schedulerJob; + + /** + * The returned {@code SchedulerJob} instance. + * + * @param schedulerJob the value to set + * @return this builder + */ + public Builder schedulerJob( + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob schedulerJob) { + this.schedulerJob = schedulerJob; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetSchedulerJobResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedulerJob(o.getSchedulerJob()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetSchedulerJobResponse build() { + return new GetSchedulerJobResponse( + __httpStatusCode__, headers, etag, opcRequestId, schedulerJob); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",schedulerJob=").append(String.valueOf(schedulerJob)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSchedulerJobResponse)) { + return false; + } + + GetSchedulerJobResponse other = (GetSchedulerJobResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.schedulerJob, other.schedulerJob); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.schedulerJob == null ? 43 : this.schedulerJob.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetTaskRecordResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetTaskRecordResponse.java new file mode 100644 index 00000000000..af09c7b73b9 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetTaskRecordResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetTaskRecordResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code TaskRecord} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.TaskRecord taskRecord; + + /** + * The returned {@code TaskRecord} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.TaskRecord getTaskRecord() { + return taskRecord; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "taskRecord" + }) + private GetTaskRecordResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.TaskRecord taskRecord) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.taskRecord = taskRecord; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code TaskRecord} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.TaskRecord taskRecord; + + /** + * The returned {@code TaskRecord} instance. + * + * @param taskRecord the value to set + * @return this builder + */ + public Builder taskRecord(com.oracle.bmc.fleetappsmanagement.model.TaskRecord taskRecord) { + this.taskRecord = taskRecord; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetTaskRecordResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + taskRecord(o.getTaskRecord()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetTaskRecordResponse build() { + return new GetTaskRecordResponse( + __httpStatusCode__, headers, etag, opcRequestId, taskRecord); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",taskRecord=").append(String.valueOf(taskRecord)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetTaskRecordResponse)) { + return false; + } + + GetTaskRecordResponse other = (GetTaskRecordResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.taskRecord, other.taskRecord); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.taskRecord == null ? 43 : this.taskRecord.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetWorkRequestResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..96b1f4a2f96 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/GetWorkRequestResponse.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.WorkRequest getWorkRequest() { + return workRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "workRequest" + }) + private GetWorkRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.fleetappsmanagement.model.WorkRequest workRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.workRequest = workRequest; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest( + com.oracle.bmc.fleetappsmanagement.model.WorkRequest workRequest) { + this.workRequest = workRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + workRequest(o.getWorkRequest()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetWorkRequestResponse build() { + return new GetWorkRequestResponse( + __httpStatusCode__, headers, etag, opcRequestId, retryAfter, workRequest); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",workRequest=").append(String.valueOf(workRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestResponse)) { + return false; + } + + GetWorkRequestResponse other = (GetWorkRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.workRequest, other.workRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = (result * PRIME) + (this.workRequest == null ? 43 : this.workRequest.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListAnnouncementsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListAnnouncementsResponse.java new file mode 100644 index 00000000000..c6f02fe863b --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListAnnouncementsResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListAnnouncementsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code AnnouncementCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.AnnouncementCollection announcementCollection; + + /** + * The returned {@code AnnouncementCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.AnnouncementCollection + getAnnouncementCollection() { + return announcementCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "announcementCollection" + }) + private ListAnnouncementsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.AnnouncementCollection + announcementCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.announcementCollection = announcementCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code AnnouncementCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.AnnouncementCollection + announcementCollection; + + /** + * The returned {@code AnnouncementCollection} instance. + * + * @param announcementCollection the value to set + * @return this builder + */ + public Builder announcementCollection( + com.oracle.bmc.fleetappsmanagement.model.AnnouncementCollection + announcementCollection) { + this.announcementCollection = announcementCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAnnouncementsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + announcementCollection(o.getAnnouncementCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAnnouncementsResponse build() { + return new ListAnnouncementsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, announcementCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",announcementCollection=").append(String.valueOf(announcementCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAnnouncementsResponse)) { + return false; + } + + ListAnnouncementsResponse other = (ListAnnouncementsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.announcementCollection, other.announcementCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.announcementCollection == null + ? 43 + : this.announcementCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListExecutionsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListExecutionsResponse.java new file mode 100644 index 00000000000..1522198dbd2 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListExecutionsResponse.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListExecutionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ExecutionCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.ExecutionCollection executionCollection; + + /** + * The returned {@code ExecutionCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.ExecutionCollection getExecutionCollection() { + return executionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "executionCollection" + }) + private ListExecutionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.ExecutionCollection executionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.executionCollection = executionCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code ExecutionCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.ExecutionCollection executionCollection; + + /** + * The returned {@code ExecutionCollection} instance. + * + * @param executionCollection the value to set + * @return this builder + */ + public Builder executionCollection( + com.oracle.bmc.fleetappsmanagement.model.ExecutionCollection executionCollection) { + this.executionCollection = executionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListExecutionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + executionCollection(o.getExecutionCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListExecutionsResponse build() { + return new ListExecutionsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, executionCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",executionCollection=").append(String.valueOf(executionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListExecutionsResponse)) { + return false; + } + + ListExecutionsResponse other = (ListExecutionsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.executionCollection, other.executionCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.executionCollection == null + ? 43 + : this.executionCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetCredentialsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetCredentialsResponse.java new file mode 100644 index 00000000000..d77e56d7d66 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetCredentialsResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetCredentialsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code FleetCredentialCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetCredentialCollection + fleetCredentialCollection; + + /** + * The returned {@code FleetCredentialCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetCredentialCollection + getFleetCredentialCollection() { + return fleetCredentialCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "fleetCredentialCollection" + }) + private ListFleetCredentialsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.FleetCredentialCollection + fleetCredentialCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.fleetCredentialCollection = fleetCredentialCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code FleetCredentialCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetCredentialCollection + fleetCredentialCollection; + + /** + * The returned {@code FleetCredentialCollection} instance. + * + * @param fleetCredentialCollection the value to set + * @return this builder + */ + public Builder fleetCredentialCollection( + com.oracle.bmc.fleetappsmanagement.model.FleetCredentialCollection + fleetCredentialCollection) { + this.fleetCredentialCollection = fleetCredentialCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListFleetCredentialsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + fleetCredentialCollection(o.getFleetCredentialCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListFleetCredentialsResponse build() { + return new ListFleetCredentialsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + fleetCredentialCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",fleetCredentialCollection=").append(String.valueOf(fleetCredentialCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetCredentialsResponse)) { + return false; + } + + ListFleetCredentialsResponse other = (ListFleetCredentialsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.fleetCredentialCollection, other.fleetCredentialCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.fleetCredentialCollection == null + ? 43 + : this.fleetCredentialCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetProductsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetProductsResponse.java new file mode 100644 index 00000000000..e30ea046ca6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetProductsResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetProductsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code FleetProductCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetProductCollection fleetProductCollection; + + /** + * The returned {@code FleetProductCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetProductCollection + getFleetProductCollection() { + return fleetProductCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "fleetProductCollection" + }) + private ListFleetProductsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.FleetProductCollection + fleetProductCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.fleetProductCollection = fleetProductCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code FleetProductCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetProductCollection + fleetProductCollection; + + /** + * The returned {@code FleetProductCollection} instance. + * + * @param fleetProductCollection the value to set + * @return this builder + */ + public Builder fleetProductCollection( + com.oracle.bmc.fleetappsmanagement.model.FleetProductCollection + fleetProductCollection) { + this.fleetProductCollection = fleetProductCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListFleetProductsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + fleetProductCollection(o.getFleetProductCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListFleetProductsResponse build() { + return new ListFleetProductsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, fleetProductCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",fleetProductCollection=").append(String.valueOf(fleetProductCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetProductsResponse)) { + return false; + } + + ListFleetProductsResponse other = (ListFleetProductsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.fleetProductCollection, other.fleetProductCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.fleetProductCollection == null + ? 43 + : this.fleetProductCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetPropertiesResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetPropertiesResponse.java new file mode 100644 index 00000000000..93056ef5b5c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetPropertiesResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetPropertiesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code FleetPropertyCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetPropertyCollection + fleetPropertyCollection; + + /** + * The returned {@code FleetPropertyCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetPropertyCollection + getFleetPropertyCollection() { + return fleetPropertyCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "fleetPropertyCollection" + }) + private ListFleetPropertiesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.FleetPropertyCollection + fleetPropertyCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.fleetPropertyCollection = fleetPropertyCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code FleetPropertyCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetPropertyCollection + fleetPropertyCollection; + + /** + * The returned {@code FleetPropertyCollection} instance. + * + * @param fleetPropertyCollection the value to set + * @return this builder + */ + public Builder fleetPropertyCollection( + com.oracle.bmc.fleetappsmanagement.model.FleetPropertyCollection + fleetPropertyCollection) { + this.fleetPropertyCollection = fleetPropertyCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListFleetPropertiesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + fleetPropertyCollection(o.getFleetPropertyCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListFleetPropertiesResponse build() { + return new ListFleetPropertiesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + fleetPropertyCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",fleetPropertyCollection=").append(String.valueOf(fleetPropertyCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetPropertiesResponse)) { + return false; + } + + ListFleetPropertiesResponse other = (ListFleetPropertiesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.fleetPropertyCollection, other.fleetPropertyCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.fleetPropertyCollection == null + ? 43 + : this.fleetPropertyCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetResourcesResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetResourcesResponse.java new file mode 100644 index 00000000000..036b0c2fffd --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetResourcesResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetResourcesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code FleetResourceCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetResourceCollection + fleetResourceCollection; + + /** + * The returned {@code FleetResourceCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetResourceCollection + getFleetResourceCollection() { + return fleetResourceCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "fleetResourceCollection" + }) + private ListFleetResourcesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.FleetResourceCollection + fleetResourceCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.fleetResourceCollection = fleetResourceCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code FleetResourceCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetResourceCollection + fleetResourceCollection; + + /** + * The returned {@code FleetResourceCollection} instance. + * + * @param fleetResourceCollection the value to set + * @return this builder + */ + public Builder fleetResourceCollection( + com.oracle.bmc.fleetappsmanagement.model.FleetResourceCollection + fleetResourceCollection) { + this.fleetResourceCollection = fleetResourceCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListFleetResourcesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + fleetResourceCollection(o.getFleetResourceCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListFleetResourcesResponse build() { + return new ListFleetResourcesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + fleetResourceCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",fleetResourceCollection=").append(String.valueOf(fleetResourceCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetResourcesResponse)) { + return false; + } + + ListFleetResourcesResponse other = (ListFleetResourcesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.fleetResourceCollection, other.fleetResourceCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.fleetResourceCollection == null + ? 43 + : this.fleetResourceCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetTargetsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetTargetsResponse.java new file mode 100644 index 00000000000..234dd001aa1 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetTargetsResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetTargetsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code FleetTargetCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection fleetTargetCollection; + + /** + * The returned {@code FleetTargetCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection + getFleetTargetCollection() { + return fleetTargetCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "fleetTargetCollection" + }) + private ListFleetTargetsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection fleetTargetCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.fleetTargetCollection = fleetTargetCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code FleetTargetCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection + fleetTargetCollection; + + /** + * The returned {@code FleetTargetCollection} instance. + * + * @param fleetTargetCollection the value to set + * @return this builder + */ + public Builder fleetTargetCollection( + com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection + fleetTargetCollection) { + this.fleetTargetCollection = fleetTargetCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListFleetTargetsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + fleetTargetCollection(o.getFleetTargetCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListFleetTargetsResponse build() { + return new ListFleetTargetsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, fleetTargetCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",fleetTargetCollection=").append(String.valueOf(fleetTargetCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetTargetsResponse)) { + return false; + } + + ListFleetTargetsResponse other = (ListFleetTargetsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.fleetTargetCollection, other.fleetTargetCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.fleetTargetCollection == null + ? 43 + : this.fleetTargetCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetsResponse.java new file mode 100644 index 00000000000..44023a416bc --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListFleetsResponse.java @@ -0,0 +1,263 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListFleetsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** A number representing the the total number of results available. */ + private Integer opcTotalItems; + + /** + * A number representing the the total number of results available. + * + * @return the value + */ + public Integer getOpcTotalItems() { + return opcTotalItems; + } + + /** The returned {@code FleetCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetCollection fleetCollection; + + /** + * The returned {@code FleetCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetCollection getFleetCollection() { + return fleetCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcTotalItems", + "fleetCollection" + }) + private ListFleetsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + Integer opcTotalItems, + com.oracle.bmc.fleetappsmanagement.model.FleetCollection fleetCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcTotalItems = opcTotalItems; + this.fleetCollection = fleetCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** A number representing the the total number of results available. */ + private Integer opcTotalItems; + + /** + * A number representing the the total number of results available. + * + * @param opcTotalItems the value to set + * @return this builder + */ + public Builder opcTotalItems(Integer opcTotalItems) { + this.opcTotalItems = opcTotalItems; + return this; + } + + /** The returned {@code FleetCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetCollection fleetCollection; + + /** + * The returned {@code FleetCollection} instance. + * + * @param fleetCollection the value to set + * @return this builder + */ + public Builder fleetCollection( + com.oracle.bmc.fleetappsmanagement.model.FleetCollection fleetCollection) { + this.fleetCollection = fleetCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListFleetsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcTotalItems(o.getOpcTotalItems()); + fleetCollection(o.getFleetCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListFleetsResponse build() { + return new ListFleetsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcTotalItems, + fleetCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcTotalItems=").append(String.valueOf(opcTotalItems)); + sb.append(",fleetCollection=").append(String.valueOf(fleetCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListFleetsResponse)) { + return false; + } + + ListFleetsResponse other = (ListFleetsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcTotalItems, other.opcTotalItems) + && java.util.Objects.equals(this.fleetCollection, other.fleetCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.opcTotalItems == null ? 43 : this.opcTotalItems.hashCode()); + result = + (result * PRIME) + + (this.fleetCollection == null ? 43 : this.fleetCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListInventoryResourcesResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListInventoryResourcesResponse.java new file mode 100644 index 00000000000..9725854ebf6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListInventoryResourcesResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListInventoryResourcesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code InventoryResourceCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.InventoryResourceCollection + inventoryResourceCollection; + + /** + * The returned {@code InventoryResourceCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.InventoryResourceCollection + getInventoryResourceCollection() { + return inventoryResourceCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "inventoryResourceCollection" + }) + private ListInventoryResourcesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.InventoryResourceCollection + inventoryResourceCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.inventoryResourceCollection = inventoryResourceCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListInventoryResourcesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code InventoryResourceCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.InventoryResourceCollection + inventoryResourceCollection; + + /** + * The returned {@code InventoryResourceCollection} instance. + * + * @param inventoryResourceCollection the value to set + * @return this builder + */ + public Builder inventoryResourceCollection( + com.oracle.bmc.fleetappsmanagement.model.InventoryResourceCollection + inventoryResourceCollection) { + this.inventoryResourceCollection = inventoryResourceCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListInventoryResourcesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + inventoryResourceCollection(o.getInventoryResourceCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListInventoryResourcesResponse build() { + return new ListInventoryResourcesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + inventoryResourceCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",inventoryResourceCollection=") + .append(String.valueOf(inventoryResourceCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInventoryResourcesResponse)) { + return false; + } + + ListInventoryResourcesResponse other = (ListInventoryResourcesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.inventoryResourceCollection, other.inventoryResourceCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.inventoryResourceCollection == null + ? 43 + : this.inventoryResourceCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListMaintenanceWindowsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListMaintenanceWindowsResponse.java new file mode 100644 index 00000000000..1a707529704 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListMaintenanceWindowsResponse.java @@ -0,0 +1,273 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListMaintenanceWindowsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** A number representing the the total number of results available. */ + private Integer opcTotalItems; + + /** + * A number representing the the total number of results available. + * + * @return the value + */ + public Integer getOpcTotalItems() { + return opcTotalItems; + } + + /** The returned {@code MaintenanceWindowCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowCollection + maintenanceWindowCollection; + + /** + * The returned {@code MaintenanceWindowCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowCollection + getMaintenanceWindowCollection() { + return maintenanceWindowCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcTotalItems", + "maintenanceWindowCollection" + }) + private ListMaintenanceWindowsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + Integer opcTotalItems, + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowCollection + maintenanceWindowCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcTotalItems = opcTotalItems; + this.maintenanceWindowCollection = maintenanceWindowCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListMaintenanceWindowsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** A number representing the the total number of results available. */ + private Integer opcTotalItems; + + /** + * A number representing the the total number of results available. + * + * @param opcTotalItems the value to set + * @return this builder + */ + public Builder opcTotalItems(Integer opcTotalItems) { + this.opcTotalItems = opcTotalItems; + return this; + } + + /** The returned {@code MaintenanceWindowCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowCollection + maintenanceWindowCollection; + + /** + * The returned {@code MaintenanceWindowCollection} instance. + * + * @param maintenanceWindowCollection the value to set + * @return this builder + */ + public Builder maintenanceWindowCollection( + com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowCollection + maintenanceWindowCollection) { + this.maintenanceWindowCollection = maintenanceWindowCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListMaintenanceWindowsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcTotalItems(o.getOpcTotalItems()); + maintenanceWindowCollection(o.getMaintenanceWindowCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListMaintenanceWindowsResponse build() { + return new ListMaintenanceWindowsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcTotalItems, + maintenanceWindowCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcTotalItems=").append(String.valueOf(opcTotalItems)); + sb.append(",maintenanceWindowCollection=") + .append(String.valueOf(maintenanceWindowCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaintenanceWindowsResponse)) { + return false; + } + + ListMaintenanceWindowsResponse other = (ListMaintenanceWindowsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcTotalItems, other.opcTotalItems) + && java.util.Objects.equals( + this.maintenanceWindowCollection, other.maintenanceWindowCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.opcTotalItems == null ? 43 : this.opcTotalItems.hashCode()); + result = + (result * PRIME) + + (this.maintenanceWindowCollection == null + ? 43 + : this.maintenanceWindowCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListOnboardingPoliciesResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListOnboardingPoliciesResponse.java new file mode 100644 index 00000000000..7b7304ef853 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListOnboardingPoliciesResponse.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListOnboardingPoliciesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code OnboardingPolicyCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicyCollection + onboardingPolicyCollection; + + /** + * The returned {@code OnboardingPolicyCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicyCollection + getOnboardingPolicyCollection() { + return onboardingPolicyCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "onboardingPolicyCollection" + }) + private ListOnboardingPoliciesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicyCollection + onboardingPolicyCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.onboardingPolicyCollection = onboardingPolicyCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListOnboardingPoliciesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code OnboardingPolicyCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicyCollection + onboardingPolicyCollection; + + /** + * The returned {@code OnboardingPolicyCollection} instance. + * + * @param onboardingPolicyCollection the value to set + * @return this builder + */ + public Builder onboardingPolicyCollection( + com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicyCollection + onboardingPolicyCollection) { + this.onboardingPolicyCollection = onboardingPolicyCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListOnboardingPoliciesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + onboardingPolicyCollection(o.getOnboardingPolicyCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListOnboardingPoliciesResponse build() { + return new ListOnboardingPoliciesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + onboardingPolicyCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",onboardingPolicyCollection=") + .append(String.valueOf(onboardingPolicyCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOnboardingPoliciesResponse)) { + return false; + } + + ListOnboardingPoliciesResponse other = (ListOnboardingPoliciesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.onboardingPolicyCollection, other.onboardingPolicyCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.onboardingPolicyCollection == null + ? 43 + : this.onboardingPolicyCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListOnboardingsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListOnboardingsResponse.java new file mode 100644 index 00000000000..e2462e7ce15 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListOnboardingsResponse.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListOnboardingsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code OnboardingCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.OnboardingCollection onboardingCollection; + + /** + * The returned {@code OnboardingCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.OnboardingCollection getOnboardingCollection() { + return onboardingCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "onboardingCollection" + }) + private ListOnboardingsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.OnboardingCollection onboardingCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.onboardingCollection = onboardingCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code OnboardingCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.OnboardingCollection onboardingCollection; + + /** + * The returned {@code OnboardingCollection} instance. + * + * @param onboardingCollection the value to set + * @return this builder + */ + public Builder onboardingCollection( + com.oracle.bmc.fleetappsmanagement.model.OnboardingCollection + onboardingCollection) { + this.onboardingCollection = onboardingCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListOnboardingsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + onboardingCollection(o.getOnboardingCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListOnboardingsResponse build() { + return new ListOnboardingsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, onboardingCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",onboardingCollection=").append(String.valueOf(onboardingCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListOnboardingsResponse)) { + return false; + } + + ListOnboardingsResponse other = (ListOnboardingsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.onboardingCollection, other.onboardingCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.onboardingCollection == null + ? 43 + : this.onboardingCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListPropertiesResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListPropertiesResponse.java new file mode 100644 index 00000000000..9070f8d9015 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListPropertiesResponse.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListPropertiesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code PropertyCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.PropertyCollection propertyCollection; + + /** + * The returned {@code PropertyCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.PropertyCollection getPropertyCollection() { + return propertyCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "propertyCollection" + }) + private ListPropertiesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.PropertyCollection propertyCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.propertyCollection = propertyCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code PropertyCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.PropertyCollection propertyCollection; + + /** + * The returned {@code PropertyCollection} instance. + * + * @param propertyCollection the value to set + * @return this builder + */ + public Builder propertyCollection( + com.oracle.bmc.fleetappsmanagement.model.PropertyCollection propertyCollection) { + this.propertyCollection = propertyCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListPropertiesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + propertyCollection(o.getPropertyCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListPropertiesResponse build() { + return new ListPropertiesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, propertyCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",propertyCollection=").append(String.valueOf(propertyCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPropertiesResponse)) { + return false; + } + + ListPropertiesResponse other = (ListPropertiesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.propertyCollection, other.propertyCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.propertyCollection == null + ? 43 + : this.propertyCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListRunbooksResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListRunbooksResponse.java new file mode 100644 index 00000000000..87b8361f8fb --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListRunbooksResponse.java @@ -0,0 +1,223 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListRunbooksResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code RunbookCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.RunbookCollection runbookCollection; + + /** + * The returned {@code RunbookCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.RunbookCollection getRunbookCollection() { + return runbookCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "runbookCollection" + }) + private ListRunbooksResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.RunbookCollection runbookCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.runbookCollection = runbookCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code RunbookCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.RunbookCollection runbookCollection; + + /** + * The returned {@code RunbookCollection} instance. + * + * @param runbookCollection the value to set + * @return this builder + */ + public Builder runbookCollection( + com.oracle.bmc.fleetappsmanagement.model.RunbookCollection runbookCollection) { + this.runbookCollection = runbookCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListRunbooksResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + runbookCollection(o.getRunbookCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListRunbooksResponse build() { + return new ListRunbooksResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, runbookCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",runbookCollection=").append(String.valueOf(runbookCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRunbooksResponse)) { + return false; + } + + ListRunbooksResponse other = (ListRunbooksResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.runbookCollection, other.runbookCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.runbookCollection == null ? 43 : this.runbookCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListScheduledFleetsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListScheduledFleetsResponse.java new file mode 100644 index 00000000000..0e8c56dcf1e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListScheduledFleetsResponse.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListScheduledFleetsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code ScheduledFleetCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetCollection + scheduledFleetCollection; + + /** + * The returned {@code ScheduledFleetCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetCollection + getScheduledFleetCollection() { + return scheduledFleetCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "scheduledFleetCollection" + }) + private ListScheduledFleetsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetCollection + scheduledFleetCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.scheduledFleetCollection = scheduledFleetCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code ScheduledFleetCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetCollection + scheduledFleetCollection; + + /** + * The returned {@code ScheduledFleetCollection} instance. + * + * @param scheduledFleetCollection the value to set + * @return this builder + */ + public Builder scheduledFleetCollection( + com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetCollection + scheduledFleetCollection) { + this.scheduledFleetCollection = scheduledFleetCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListScheduledFleetsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + scheduledFleetCollection(o.getScheduledFleetCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListScheduledFleetsResponse build() { + return new ListScheduledFleetsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + scheduledFleetCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",scheduledFleetCollection=").append(String.valueOf(scheduledFleetCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListScheduledFleetsResponse)) { + return false; + } + + ListScheduledFleetsResponse other = (ListScheduledFleetsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.scheduledFleetCollection, other.scheduledFleetCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.scheduledFleetCollection == null + ? 43 + : this.scheduledFleetCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListSchedulerDefinitionsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListSchedulerDefinitionsResponse.java new file mode 100644 index 00000000000..3e8223e7f6d --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListSchedulerDefinitionsResponse.java @@ -0,0 +1,273 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListSchedulerDefinitionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** A number representing the the total number of results available. */ + private Integer opcTotalItems; + + /** + * A number representing the the total number of results available. + * + * @return the value + */ + public Integer getOpcTotalItems() { + return opcTotalItems; + } + + /** The returned {@code SchedulerDefinitionCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionCollection + schedulerDefinitionCollection; + + /** + * The returned {@code SchedulerDefinitionCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionCollection + getSchedulerDefinitionCollection() { + return schedulerDefinitionCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcTotalItems", + "schedulerDefinitionCollection" + }) + private ListSchedulerDefinitionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + Integer opcTotalItems, + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionCollection + schedulerDefinitionCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcTotalItems = opcTotalItems; + this.schedulerDefinitionCollection = schedulerDefinitionCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListSchedulerDefinitionsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** A number representing the the total number of results available. */ + private Integer opcTotalItems; + + /** + * A number representing the the total number of results available. + * + * @param opcTotalItems the value to set + * @return this builder + */ + public Builder opcTotalItems(Integer opcTotalItems) { + this.opcTotalItems = opcTotalItems; + return this; + } + + /** The returned {@code SchedulerDefinitionCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionCollection + schedulerDefinitionCollection; + + /** + * The returned {@code SchedulerDefinitionCollection} instance. + * + * @param schedulerDefinitionCollection the value to set + * @return this builder + */ + public Builder schedulerDefinitionCollection( + com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionCollection + schedulerDefinitionCollection) { + this.schedulerDefinitionCollection = schedulerDefinitionCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSchedulerDefinitionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcTotalItems(o.getOpcTotalItems()); + schedulerDefinitionCollection(o.getSchedulerDefinitionCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSchedulerDefinitionsResponse build() { + return new ListSchedulerDefinitionsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcTotalItems, + schedulerDefinitionCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcTotalItems=").append(String.valueOf(opcTotalItems)); + sb.append(",schedulerDefinitionCollection=") + .append(String.valueOf(schedulerDefinitionCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSchedulerDefinitionsResponse)) { + return false; + } + + ListSchedulerDefinitionsResponse other = (ListSchedulerDefinitionsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcTotalItems, other.opcTotalItems) + && java.util.Objects.equals( + this.schedulerDefinitionCollection, other.schedulerDefinitionCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.opcTotalItems == null ? 43 : this.opcTotalItems.hashCode()); + result = + (result * PRIME) + + (this.schedulerDefinitionCollection == null + ? 43 + : this.schedulerDefinitionCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListSchedulerJobsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListSchedulerJobsResponse.java new file mode 100644 index 00000000000..ff51c4b8ab4 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListSchedulerJobsResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListSchedulerJobsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code SchedulerJobCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerJobCollection schedulerJobCollection; + + /** + * The returned {@code SchedulerJobCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.SchedulerJobCollection + getSchedulerJobCollection() { + return schedulerJobCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "schedulerJobCollection" + }) + private ListSchedulerJobsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.SchedulerJobCollection + schedulerJobCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.schedulerJobCollection = schedulerJobCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code SchedulerJobCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerJobCollection + schedulerJobCollection; + + /** + * The returned {@code SchedulerJobCollection} instance. + * + * @param schedulerJobCollection the value to set + * @return this builder + */ + public Builder schedulerJobCollection( + com.oracle.bmc.fleetappsmanagement.model.SchedulerJobCollection + schedulerJobCollection) { + this.schedulerJobCollection = schedulerJobCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListSchedulerJobsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + schedulerJobCollection(o.getSchedulerJobCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListSchedulerJobsResponse build() { + return new ListSchedulerJobsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, schedulerJobCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",schedulerJobCollection=").append(String.valueOf(schedulerJobCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListSchedulerJobsResponse)) { + return false; + } + + ListSchedulerJobsResponse other = (ListSchedulerJobsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.schedulerJobCollection, other.schedulerJobCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.schedulerJobCollection == null + ? 43 + : this.schedulerJobCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListTargetsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListTargetsResponse.java new file mode 100644 index 00000000000..08a7b8c1722 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListTargetsResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListTargetsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code FleetTargetCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection fleetTargetCollection; + + /** + * The returned {@code FleetTargetCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection + getFleetTargetCollection() { + return fleetTargetCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "fleetTargetCollection" + }) + private ListTargetsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection fleetTargetCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.fleetTargetCollection = fleetTargetCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code FleetTargetCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection + fleetTargetCollection; + + /** + * The returned {@code FleetTargetCollection} instance. + * + * @param fleetTargetCollection the value to set + * @return this builder + */ + public Builder fleetTargetCollection( + com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection + fleetTargetCollection) { + this.fleetTargetCollection = fleetTargetCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListTargetsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + fleetTargetCollection(o.getFleetTargetCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListTargetsResponse build() { + return new ListTargetsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, fleetTargetCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",fleetTargetCollection=").append(String.valueOf(fleetTargetCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListTargetsResponse)) { + return false; + } + + ListTargetsResponse other = (ListTargetsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.fleetTargetCollection, other.fleetTargetCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.fleetTargetCollection == null + ? 43 + : this.fleetTargetCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListTaskRecordsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListTaskRecordsResponse.java new file mode 100644 index 00000000000..88814ec27f5 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListTaskRecordsResponse.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListTaskRecordsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code TaskRecordCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.TaskRecordCollection taskRecordCollection; + + /** + * The returned {@code TaskRecordCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.TaskRecordCollection getTaskRecordCollection() { + return taskRecordCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "taskRecordCollection" + }) + private ListTaskRecordsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.TaskRecordCollection taskRecordCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.taskRecordCollection = taskRecordCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code TaskRecordCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.TaskRecordCollection taskRecordCollection; + + /** + * The returned {@code TaskRecordCollection} instance. + * + * @param taskRecordCollection the value to set + * @return this builder + */ + public Builder taskRecordCollection( + com.oracle.bmc.fleetappsmanagement.model.TaskRecordCollection + taskRecordCollection) { + this.taskRecordCollection = taskRecordCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListTaskRecordsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + taskRecordCollection(o.getTaskRecordCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListTaskRecordsResponse build() { + return new ListTaskRecordsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, taskRecordCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",taskRecordCollection=").append(String.valueOf(taskRecordCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListTaskRecordsResponse)) { + return false; + } + + ListTaskRecordsResponse other = (ListTaskRecordsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.taskRecordCollection, other.taskRecordCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.taskRecordCollection == null + ? 43 + : this.taskRecordCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListWorkRequestErrorsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..6c70190e778 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListWorkRequestErrorsResponse.java @@ -0,0 +1,236 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.WorkRequestErrorCollection + getWorkRequestErrorCollection() { + return workRequestErrorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestErrorCollection" + }) + private ListWorkRequestErrorsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.WorkRequestErrorCollection + workRequestErrorCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestErrorCollection = workRequestErrorCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.fleetappsmanagement.model.WorkRequestErrorCollection + workRequestErrorCollection) { + this.workRequestErrorCollection = workRequestErrorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestErrorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestErrorCollection(o.getWorkRequestErrorCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestErrorsResponse build() { + return new ListWorkRequestErrorsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestErrorCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestErrorCollection=") + .append(String.valueOf(workRequestErrorCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsResponse)) { + return false; + } + + ListWorkRequestErrorsResponse other = (ListWorkRequestErrorsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestErrorCollection, other.workRequestErrorCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestErrorCollection == null + ? 43 + : this.workRequestErrorCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListWorkRequestLogsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..8d2304fce4e --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListWorkRequestLogsResponse.java @@ -0,0 +1,236 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntryCollection + getWorkRequestLogEntryCollection() { + return workRequestLogEntryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestLogEntryCollection" + }) + private ListWorkRequestLogsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestLogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestLogsResponse build() { + return new ListWorkRequestLogsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestLogEntryCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestLogEntryCollection=") + .append(String.valueOf(workRequestLogEntryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsResponse)) { + return false; + } + + ListWorkRequestLogsResponse other = (ListWorkRequestLogsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestLogEntryCollection == null + ? 43 + : this.workRequestLogEntryCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListWorkRequestsResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..33e283168c3 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/ListWorkRequestsResponse.java @@ -0,0 +1,236 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummaryCollection + getWorkRequestSummaryCollection() { + return workRequestSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestSummaryCollection" + }) + private ListWorkRequestsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestSummaryCollection = workRequestSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @param workRequestSummaryCollection the value to set + * @return this builder + */ + public Builder workRequestSummaryCollection( + com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + this.workRequestSummaryCollection = workRequestSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestSummaryCollection(o.getWorkRequestSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestsResponse build() { + return new ListWorkRequestsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + workRequestSummaryCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",workRequestSummaryCollection=") + .append(String.valueOf(workRequestSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsResponse)) { + return false; + } + + ListWorkRequestsResponse other = (ListWorkRequestsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestSummaryCollection, other.workRequestSummaryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.workRequestSummaryCollection == null + ? 43 + : this.workRequestSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/RequestResourceValidationResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/RequestResourceValidationResponse.java new file mode 100644 index 00000000000..4ffd9fc0cd0 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/RequestResourceValidationResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class RequestResourceValidationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RequestResourceValidationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RequestResourceValidationResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RequestResourceValidationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RequestResourceValidationResponse build() { + return new RequestResourceValidationResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RequestResourceValidationResponse)) { + return false; + } + + RequestResourceValidationResponse other = (RequestResourceValidationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/RequestTargetDiscoveryResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/RequestTargetDiscoveryResponse.java new file mode 100644 index 00000000000..6c19893dfa1 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/RequestTargetDiscoveryResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class RequestTargetDiscoveryResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RequestTargetDiscoveryResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RequestTargetDiscoveryResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RequestTargetDiscoveryResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RequestTargetDiscoveryResponse build() { + return new RequestTargetDiscoveryResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RequestTargetDiscoveryResponse)) { + return false; + } + + RequestTargetDiscoveryResponse other = (RequestTargetDiscoveryResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetCredentialResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetCredentialResponse.java new file mode 100644 index 00000000000..4ce6dc33642 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetCredentialResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateFleetCredentialResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateFleetCredentialResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateFleetCredentialResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateFleetCredentialResponse build() { + return new UpdateFleetCredentialResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetCredentialResponse)) { + return false; + } + + UpdateFleetCredentialResponse other = (UpdateFleetCredentialResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetPropertyResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetPropertyResponse.java new file mode 100644 index 00000000000..bb8bb35cd06 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetPropertyResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateFleetPropertyResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code FleetProperty} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty; + + /** + * The returned {@code FleetProperty} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.FleetProperty getFleetProperty() { + return fleetProperty; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "fleetProperty" + }) + private UpdateFleetPropertyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.fleetProperty = fleetProperty; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code FleetProperty} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty; + + /** + * The returned {@code FleetProperty} instance. + * + * @param fleetProperty the value to set + * @return this builder + */ + public Builder fleetProperty( + com.oracle.bmc.fleetappsmanagement.model.FleetProperty fleetProperty) { + this.fleetProperty = fleetProperty; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateFleetPropertyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + fleetProperty(o.getFleetProperty()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateFleetPropertyResponse build() { + return new UpdateFleetPropertyResponse( + __httpStatusCode__, headers, etag, opcRequestId, fleetProperty); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",fleetProperty=").append(String.valueOf(fleetProperty)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetPropertyResponse)) { + return false; + } + + UpdateFleetPropertyResponse other = (UpdateFleetPropertyResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.fleetProperty, other.fleetProperty); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.fleetProperty == null ? 43 : this.fleetProperty.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetResourceResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetResourceResponse.java new file mode 100644 index 00000000000..a2f271acd3c --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetResourceResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateFleetResourceResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateFleetResourceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateFleetResourceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateFleetResourceResponse build() { + return new UpdateFleetResourceResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetResourceResponse)) { + return false; + } + + UpdateFleetResourceResponse other = (UpdateFleetResourceResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetResponse.java new file mode 100644 index 00000000000..e9e79a9da95 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateFleetResponse.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateFleetResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Fleet} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Fleet fleet; + + /** + * The returned {@code Fleet} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.Fleet getFleet() { + return fleet; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "fleet" + }) + private UpdateFleetResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.Fleet fleet) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.fleet = fleet; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Fleet} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Fleet fleet; + + /** + * The returned {@code Fleet} instance. + * + * @param fleet the value to set + * @return this builder + */ + public Builder fleet(com.oracle.bmc.fleetappsmanagement.model.Fleet fleet) { + this.fleet = fleet; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateFleetResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + fleet(o.getFleet()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateFleetResponse build() { + return new UpdateFleetResponse(__httpStatusCode__, headers, etag, opcRequestId, fleet); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",fleet=").append(String.valueOf(fleet)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateFleetResponse)) { + return false; + } + + UpdateFleetResponse other = (UpdateFleetResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.fleet, other.fleet); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.fleet == null ? 43 : this.fleet.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateMaintenanceWindowResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateMaintenanceWindowResponse.java new file mode 100644 index 00000000000..f72bddc86c4 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateMaintenanceWindowResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateMaintenanceWindowResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateMaintenanceWindowResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateMaintenanceWindowResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateMaintenanceWindowResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateMaintenanceWindowResponse build() { + return new UpdateMaintenanceWindowResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMaintenanceWindowResponse)) { + return false; + } + + UpdateMaintenanceWindowResponse other = (UpdateMaintenanceWindowResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdatePropertyResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdatePropertyResponse.java new file mode 100644 index 00000000000..89298f328f6 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdatePropertyResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdatePropertyResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Property} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Property property; + + /** + * The returned {@code Property} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.Property getProperty() { + return property; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "property" + }) + private UpdatePropertyResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.Property property) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.property = property; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code Property} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.Property property; + + /** + * The returned {@code Property} instance. + * + * @param property the value to set + * @return this builder + */ + public Builder property(com.oracle.bmc.fleetappsmanagement.model.Property property) { + this.property = property; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdatePropertyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + property(o.getProperty()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdatePropertyResponse build() { + return new UpdatePropertyResponse( + __httpStatusCode__, headers, etag, opcRequestId, property); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",property=").append(String.valueOf(property)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePropertyResponse)) { + return false; + } + + UpdatePropertyResponse other = (UpdatePropertyResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.property, other.property); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.property == null ? 43 : this.property.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateSchedulerDefinitionResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateSchedulerDefinitionResponse.java new file mode 100644 index 00000000000..cc1a358d467 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateSchedulerDefinitionResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateSchedulerDefinitionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateSchedulerDefinitionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateSchedulerDefinitionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateSchedulerDefinitionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateSchedulerDefinitionResponse build() { + return new UpdateSchedulerDefinitionResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSchedulerDefinitionResponse)) { + return false; + } + + UpdateSchedulerDefinitionResponse other = (UpdateSchedulerDefinitionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateSchedulerJobResponse.java b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateSchedulerJobResponse.java new file mode 100644 index 00000000000..f7d1274b4ca --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/java/com/oracle/bmc/fleetappsmanagement/responses/UpdateSchedulerJobResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.fleetappsmanagement.responses; + +import com.oracle.bmc.fleetappsmanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") +public class UpdateSchedulerJobResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code SchedulerJob} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerJob schedulerJob; + + /** + * The returned {@code SchedulerJob} instance. + * + * @return the value + */ + public com.oracle.bmc.fleetappsmanagement.model.SchedulerJob getSchedulerJob() { + return schedulerJob; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "schedulerJob" + }) + private UpdateSchedulerJobResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob schedulerJob) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.schedulerJob = schedulerJob; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code SchedulerJob} instance. */ + private com.oracle.bmc.fleetappsmanagement.model.SchedulerJob schedulerJob; + + /** + * The returned {@code SchedulerJob} instance. + * + * @param schedulerJob the value to set + * @return this builder + */ + public Builder schedulerJob( + com.oracle.bmc.fleetappsmanagement.model.SchedulerJob schedulerJob) { + this.schedulerJob = schedulerJob; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateSchedulerJobResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + schedulerJob(o.getSchedulerJob()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateSchedulerJobResponse build() { + return new UpdateSchedulerJobResponse( + __httpStatusCode__, headers, etag, opcRequestId, schedulerJob); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",schedulerJob=").append(String.valueOf(schedulerJob)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSchedulerJobResponse)) { + return false; + } + + UpdateSchedulerJobResponse other = (UpdateSchedulerJobResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.schedulerJob, other.schedulerJob); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.schedulerJob == null ? 43 : this.schedulerJob.hashCode()); + return result; + } +} diff --git a/bmc-fleetappsmanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-fleetappsmanagement/reflect-config.json b/bmc-fleetappsmanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-fleetappsmanagement/reflect-config.json new file mode 100644 index 00000000000..4fd7bc3aabd --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-fleetappsmanagement/reflect-config.json @@ -0,0 +1,2159 @@ +[ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ActionGroup", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ActionGroup$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ActionGroupDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ActionGroupDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ActivityResourceTarget", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ActivityResourceTarget$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AnnouncementCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AnnouncementCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AnnouncementSortBy", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AnnouncementSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AnnouncementSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AnnouncementSummary$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ApiBasedExecutionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ApiBasedExecutionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedFleetCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedFleetCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedFleetPropertyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedFleetPropertyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedFleetPropertyDetails$FleetPropertyType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedFleetResourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedFleetResourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedLocalTaskDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedLocalTaskDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedSchedulerDefinition", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedSchedulerDefinition$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedSharedTaskDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedSharedTaskDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.AssociatedTaskDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Associations", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Associations$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CheckResourceTaggingDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CheckResourceTaggingDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComplianceReport", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComplianceReport$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComplianceReportPatchDetail", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComplianceReportPatchDetail$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComplianceReportProduct", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComplianceReportProduct$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComplianceReportResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComplianceReportResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComplianceReportTarget", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComplianceReportTarget$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComplianceState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComponentProperties", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComponentProperties$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ComponentProperties$ActionOnFailure", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Condition", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Condition$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ConfirmTargetsDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ConfirmTargetsDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ContentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ContentDetails$SourceType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateFleetCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateFleetCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateFleetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateFleetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateFleetPropertyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateFleetPropertyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateFleetResourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateFleetResourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateMaintenanceWindowDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateMaintenanceWindowDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateOnboardingDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateOnboardingDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreatePropertyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreatePropertyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateSchedulerDefinitionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CreateSchedulerDefinitionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CredentialDetails$CredentialType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CredentialEntitySpecificDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.CredentialEntitySpecificDetails$CredentialLevel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Details", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Details$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.DiscoveredTarget", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.DiscoveredTarget$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.EntityExecutionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.EntityExecutionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Execution", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Execution$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ExecutionCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ExecutionCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ExecutionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ExecutionSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ExecutionSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ExecutionWorkflowDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ExecutionWorkflowDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Fleet", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Fleet$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Fleet$FleetType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Fleet$GroupType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Fleet$ResourceSelectionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Fleet$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetCredential", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetCredential$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetCredential$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetCredentialCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetCredentialCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetCredentialSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetCredentialSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetProductCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetProductCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetProductSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetProductSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetProperty", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetProperty$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetProperty$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetPropertyCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetPropertyCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetPropertySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetPropertySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetResource$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetResourceCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetResourceCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetResourceSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetResourceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetTarget", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetTarget$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetTarget$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetTargetCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.FleetTargetSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.GenerateComplianceReportDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.GenerateComplianceReportDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Group", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Group$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Group$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.InputArgument", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.InputArgument$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.InputParameter", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.InputParameter$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.InventoryResourceCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.InventoryResourceCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.InventoryResourceSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.InventoryResourceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.JobActivity", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.JobActivity$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.JobStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.KeyEncryptionCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.KeyEncryptionCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.LifeCycleActionGroupType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindow$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.MaintenanceWindowType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.NotificationPreferences", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.NotificationPreferences$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ObjectStorageBucketContentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ObjectStorageBucketContentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Onboarding", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Onboarding$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Onboarding$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OnboardingCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OnboardingCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicyCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicyCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OnboardingSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OnboardingSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OperationRunbook", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OperationRunbook$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OperationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OperationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OsType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Outcome", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Outcome$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OutputVariableDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OutputVariableDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OutputVariableInputArgument", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OutputVariableInputArgument$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OutputVariableMapping", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.OutputVariableMapping$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.PlainTextCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.PlainTextCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Preferences", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Preferences$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Properties", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Properties$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Property", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Property$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Property$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Property$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.PropertyCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.PropertyCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.PropertySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.PropertySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.RequestResourceValidationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.RequestResourceValidationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.RequestTargetDiscoveryDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.RequestTargetDiscoveryDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ResourceTagCheckDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ResourceTagCheckDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ResourceTagEnablementInfo", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ResourceTagEnablementInfo$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Rule", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Rule$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Runbook", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Runbook$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Runbook$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Runbook$RunbookRelevance", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Runbook$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.RunbookCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.RunbookCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.RunbookSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.RunbookSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Schedule", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Schedule$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Schedule$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ScheduledFleetSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinition$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerDefinitionSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerJob", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerJob$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerJob$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerJobCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerJobCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerJobSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SchedulerJobSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Scope", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ScriptBasedExecutionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ScriptBasedExecutionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Selection", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SelectionCriteria", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SelectionCriteria$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SelectionCriteria$MatchCondition", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.StringInputArgument", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.StringInputArgument$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TargetCredentialEntitySpecificDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TargetCredentialEntitySpecificDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TargetResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TargetResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Task", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Task$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.Task$AssociationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskArgument", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskArgument$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskExecutionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskRecord", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskRecord$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskRecord$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskRecord$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskRecordCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskRecordCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskRecordSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskRecordSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskScope", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskVariable", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.TaskVariable$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateFleetCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateFleetCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateFleetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateFleetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateFleetPropertyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateFleetPropertyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateFleetResourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateFleetResourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateMaintenanceWindowDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateMaintenanceWindowDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdatePropertyDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdatePropertyDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerDefinitionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerDefinitionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerJobDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.UpdateSchedulerJobDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.ValueType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.VaultSecretCredentialDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.VaultSecretCredentialDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestErrorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestErrorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestLogEntryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestResourceMetadataKey", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkRequestSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkflowComponent", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkflowComponent$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkflowGroup", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkflowGroup$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkflowGroup$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkflowGroupComponent", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkflowGroupComponent$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkflowTaskComponent", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.fleetappsmanagement.model.WorkflowTaskComponent$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + } +] \ No newline at end of file diff --git a/bmc-fleetappsmanagement/src/main/resources/com/oracle/bmc/fleetappsmanagement/client.properties b/bmc-fleetappsmanagement/src/main/resources/com/oracle/bmc/fleetappsmanagement/client.properties new file mode 100644 index 00000000000..5c77ccf1ed0 --- /dev/null +++ b/bmc-fleetappsmanagement/src/main/resources/com/oracle/bmc/fleetappsmanagement/client.properties @@ -0,0 +1,9 @@ +# +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +# + +java.client.codegen.version = 2.100 +java.minimum.client.codegen.version.from.client = 2.26 + +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index e8d1168743e..ea3c1849876 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 36b23e24d10..c78bbefba83 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.46.1 + 3.47.0 pom import @@ -595,5 +595,9 @@ com.oracle.oci.sdk oci-java-sdk-demandsignal + + com.oracle.oci.sdk + oci-java-sdk-fleetappsmanagement + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 5d30410ae73..6c9fd6f243a 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index e7813527e8e..7cfa4b22118 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 19bee178509..787c58ed1f2 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index f6d6f4a79f7..517769e48a6 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 447a14a6882..2c549f6dcfd 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-globallydistributeddatabase/pom.xml b/bmc-globallydistributeddatabase/pom.xml index ff62cbde7b0..dcf8e8928cf 100644 --- a/bmc-globallydistributeddatabase/pom.xml +++ b/bmc-globallydistributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-globallydistributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index 8ca1137559a..f549799cc65 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index edd8b7a7e83..d609e125623 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 05d3144e51a..1038dbacb95 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index bb57e3bfedd..ccec9ba3951 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index 7e4ade3bbbf..b45833f1aff 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 62314d36376..04f84e3effc 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index bcf14f3fd6c..14e8a44a747 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstance.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstance.java index b81f9d4c1eb..edb64ac7a77 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstance.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstance.java @@ -165,6 +165,22 @@ DeleteIntegrationInstanceResponse deleteIntegrationInstance( */ EnableProcessAutomationResponse enableProcessAutomation(EnableProcessAutomationRequest request); + /** + * Extend Data Retention period for given Integration Instance + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ExtendDataRetention + * API. + */ + ExtendDataRetentionResponse extendDataRetention(ExtendDataRetentionRequest request); + /** * Gets a IntegrationInstance by identifier * diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsync.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsync.java index 168f895c653..bf3061f9e33 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsync.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsync.java @@ -163,6 +163,22 @@ java.util.concurrent.Future enableProcessAutoma EnableProcessAutomationRequest, EnableProcessAutomationResponse> handler); + /** + * Extend Data Retention period for given Integration Instance + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future extendDataRetention( + ExtendDataRetentionRequest request, + com.oracle.bmc.responses.AsyncHandler< + ExtendDataRetentionRequest, ExtendDataRetentionResponse> + handler); + /** * Gets a IntegrationInstance by identifier * diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java index 7a586674f1d..4c008cc11c9 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java @@ -320,6 +320,44 @@ public java.util.concurrent.Future enableProces .callAsync(handler); } + @Override + public java.util.concurrent.Future extendDataRetention( + ExtendDataRetentionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ExtendDataRetentionRequest, ExtendDataRetentionResponse> + handler) { + + Validate.notBlank( + request.getIntegrationInstanceId(), "integrationInstanceId must not be blank"); + Objects.requireNonNull( + request.getExtendDataRetentionDetails(), "extendDataRetentionDetails is required"); + + return clientCall(request, ExtendDataRetentionResponse::builder) + .logger(LOG, "extendDataRetention") + .serviceDetails( + "IntegrationInstance", + "ExtendDataRetention", + "https://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/ExtendDataRetention") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ExtendDataRetentionRequest::builder) + .basePath("/20190131") + .appendPathParam("integrationInstances") + .appendPathParam(request.getIntegrationInstanceId()) + .appendPathParam("actions") + .appendPathParam("extendDataRetention") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ExtendDataRetentionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ExtendDataRetentionResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getIntegrationInstance( GetIntegrationInstanceRequest request, diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceClient.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceClient.java index 67b0a4665af..81beaf9fe7b 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceClient.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceClient.java @@ -327,6 +327,41 @@ public EnableProcessAutomationResponse enableProcessAutomation( .callSync(); } + @Override + public ExtendDataRetentionResponse extendDataRetention(ExtendDataRetentionRequest request) { + + Validate.notBlank( + request.getIntegrationInstanceId(), "integrationInstanceId must not be blank"); + Objects.requireNonNull( + request.getExtendDataRetentionDetails(), "extendDataRetentionDetails is required"); + + return clientCall(request, ExtendDataRetentionResponse::builder) + .logger(LOG, "extendDataRetention") + .serviceDetails( + "IntegrationInstance", + "ExtendDataRetention", + "https://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/ExtendDataRetention") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ExtendDataRetentionRequest::builder) + .basePath("/20190131") + .appendPathParam("integrationInstances") + .appendPathParam(request.getIntegrationInstanceId()) + .appendPathParam("actions") + .appendPathParam("extendDataRetention") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ExtendDataRetentionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ExtendDataRetentionResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetIntegrationInstanceResponse getIntegrationInstance( GetIntegrationInstanceRequest request) { diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/ExtendDataRetentionDetails.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/ExtendDataRetentionDetails.java new file mode 100644 index 00000000000..4ab180a3546 --- /dev/null +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/ExtendDataRetentionDetails.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.integration.model; + +/** + * Details for extending data retention for given integration instance
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190131") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExtendDataRetentionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExtendDataRetentionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"dataRetentionPeriod"}) + public ExtendDataRetentionDetails(DataRetentionPeriod dataRetentionPeriod) { + super(); + this.dataRetentionPeriod = dataRetentionPeriod; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Data retention period set for given integration instance */ + @com.fasterxml.jackson.annotation.JsonProperty("dataRetentionPeriod") + private DataRetentionPeriod dataRetentionPeriod; + + /** + * Data retention period set for given integration instance + * + * @param dataRetentionPeriod the value to set + * @return this builder + */ + public Builder dataRetentionPeriod(DataRetentionPeriod dataRetentionPeriod) { + this.dataRetentionPeriod = dataRetentionPeriod; + this.__explicitlySet__.add("dataRetentionPeriod"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExtendDataRetentionDetails build() { + ExtendDataRetentionDetails model = + new ExtendDataRetentionDetails(this.dataRetentionPeriod); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExtendDataRetentionDetails model) { + if (model.wasPropertyExplicitlySet("dataRetentionPeriod")) { + this.dataRetentionPeriod(model.getDataRetentionPeriod()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Data retention period set for given integration instance */ + public enum DataRetentionPeriod implements com.oracle.bmc.http.internal.BmcEnum { + Months1("MONTHS_1"), + Months3("MONTHS_3"), + Months6("MONTHS_6"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DataRetentionPeriod v : DataRetentionPeriod.values()) { + map.put(v.getValue(), v); + } + } + + DataRetentionPeriod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DataRetentionPeriod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DataRetentionPeriod: " + key); + } + }; + /** Data retention period set for given integration instance */ + @com.fasterxml.jackson.annotation.JsonProperty("dataRetentionPeriod") + private final DataRetentionPeriod dataRetentionPeriod; + + /** + * Data retention period set for given integration instance + * + * @return the value + */ + public DataRetentionPeriod getDataRetentionPeriod() { + return dataRetentionPeriod; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExtendDataRetentionDetails("); + sb.append("super=").append(super.toString()); + sb.append("dataRetentionPeriod=").append(String.valueOf(this.dataRetentionPeriod)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExtendDataRetentionDetails)) { + return false; + } + + ExtendDataRetentionDetails other = (ExtendDataRetentionDetails) o; + return java.util.Objects.equals(this.dataRetentionPeriod, other.dataRetentionPeriod) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.dataRetentionPeriod == null + ? 43 + : this.dataRetentionPeriod.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstance.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstance.java index 0295553fadd..69a8a020573 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstance.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstance.java @@ -47,7 +47,8 @@ public final class IntegrationInstance "idcsInfo", "attachments", "shape", - "privateEndpointOutboundConnection" + "privateEndpointOutboundConnection", + "dataRetentionPeriod" }) public IntegrationInstance( String id, @@ -73,7 +74,8 @@ public IntegrationInstance( IdcsInfoDetails idcsInfo, java.util.List attachments, Shape shape, - OutboundConnection privateEndpointOutboundConnection) { + OutboundConnection privateEndpointOutboundConnection, + DataRetentionPeriod dataRetentionPeriod) { super(); this.id = id; this.displayName = displayName; @@ -99,6 +101,7 @@ public IntegrationInstance( this.attachments = attachments; this.shape = shape; this.privateEndpointOutboundConnection = privateEndpointOutboundConnection; + this.dataRetentionPeriod = dataRetentionPeriod; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -464,6 +467,21 @@ public Builder privateEndpointOutboundConnection( this.__explicitlySet__.add("privateEndpointOutboundConnection"); return this; } + /** Data retention period set for given integration instance */ + @com.fasterxml.jackson.annotation.JsonProperty("dataRetentionPeriod") + private DataRetentionPeriod dataRetentionPeriod; + + /** + * Data retention period set for given integration instance + * + * @param dataRetentionPeriod the value to set + * @return this builder + */ + public Builder dataRetentionPeriod(DataRetentionPeriod dataRetentionPeriod) { + this.dataRetentionPeriod = dataRetentionPeriod; + this.__explicitlySet__.add("dataRetentionPeriod"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -494,7 +512,8 @@ public IntegrationInstance build() { this.idcsInfo, this.attachments, this.shape, - this.privateEndpointOutboundConnection); + this.privateEndpointOutboundConnection, + this.dataRetentionPeriod); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -576,6 +595,9 @@ public Builder copy(IntegrationInstance model) { this.privateEndpointOutboundConnection( model.getPrivateEndpointOutboundConnection()); } + if (model.wasPropertyExplicitlySet("dataRetentionPeriod")) { + this.dataRetentionPeriod(model.getDataRetentionPeriod()); + } return this; } } @@ -732,6 +754,7 @@ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), + Standby("STANDBY"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -1092,6 +1115,66 @@ public OutboundConnection getPrivateEndpointOutboundConnection() { return privateEndpointOutboundConnection; } + /** Data retention period set for given integration instance */ + public enum DataRetentionPeriod implements com.oracle.bmc.http.internal.BmcEnum { + Months1("MONTHS_1"), + Months3("MONTHS_3"), + Months6("MONTHS_6"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DataRetentionPeriod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DataRetentionPeriod v : DataRetentionPeriod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DataRetentionPeriod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DataRetentionPeriod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DataRetentionPeriod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Data retention period set for given integration instance */ + @com.fasterxml.jackson.annotation.JsonProperty("dataRetentionPeriod") + private final DataRetentionPeriod dataRetentionPeriod; + + /** + * Data retention period set for given integration instance + * + * @return the value + */ + public DataRetentionPeriod getDataRetentionPeriod() { + return dataRetentionPeriod; + } + @Override public String toString() { return this.toString(true); @@ -1134,6 +1217,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", shape=").append(String.valueOf(this.shape)); sb.append(", privateEndpointOutboundConnection=") .append(String.valueOf(this.privateEndpointOutboundConnection)); + sb.append(", dataRetentionPeriod=").append(String.valueOf(this.dataRetentionPeriod)); sb.append(")"); return sb.toString(); } @@ -1178,6 +1262,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.privateEndpointOutboundConnection, other.privateEndpointOutboundConnection) + && java.util.Objects.equals(this.dataRetentionPeriod, other.dataRetentionPeriod) && super.equals(other); } @@ -1241,6 +1326,11 @@ public int hashCode() { + (this.privateEndpointOutboundConnection == null ? 43 : this.privateEndpointOutboundConnection.hashCode()); + result = + (result * PRIME) + + (this.dataRetentionPeriod == null + ? 43 + : this.dataRetentionPeriod.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstanceSummary.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstanceSummary.java index 2967a1eb7b3..3bcb75bfd7c 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstanceSummary.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/IntegrationInstanceSummary.java @@ -45,7 +45,8 @@ public final class IntegrationInstanceSummary "definedTags", "systemTags", "shape", - "privateEndpointOutboundConnection" + "privateEndpointOutboundConnection", + "dataRetentionPeriod" }) public IntegrationInstanceSummary( String id, @@ -69,7 +70,8 @@ public IntegrationInstanceSummary( java.util.Map> definedTags, java.util.Map> systemTags, Shape shape, - OutboundConnection privateEndpointOutboundConnection) { + OutboundConnection privateEndpointOutboundConnection, + DataRetentionPeriod dataRetentionPeriod) { super(); this.id = id; this.displayName = displayName; @@ -93,6 +95,7 @@ public IntegrationInstanceSummary( this.systemTags = systemTags; this.shape = shape; this.privateEndpointOutboundConnection = privateEndpointOutboundConnection; + this.dataRetentionPeriod = dataRetentionPeriod; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -434,6 +437,21 @@ public Builder privateEndpointOutboundConnection( this.__explicitlySet__.add("privateEndpointOutboundConnection"); return this; } + /** Data retention period set for given integration instance */ + @com.fasterxml.jackson.annotation.JsonProperty("dataRetentionPeriod") + private DataRetentionPeriod dataRetentionPeriod; + + /** + * Data retention period set for given integration instance + * + * @param dataRetentionPeriod the value to set + * @return this builder + */ + public Builder dataRetentionPeriod(DataRetentionPeriod dataRetentionPeriod) { + this.dataRetentionPeriod = dataRetentionPeriod; + this.__explicitlySet__.add("dataRetentionPeriod"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -462,7 +480,8 @@ public IntegrationInstanceSummary build() { this.definedTags, this.systemTags, this.shape, - this.privateEndpointOutboundConnection); + this.privateEndpointOutboundConnection, + this.dataRetentionPeriod); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -538,6 +557,9 @@ public Builder copy(IntegrationInstanceSummary model) { this.privateEndpointOutboundConnection( model.getPrivateEndpointOutboundConnection()); } + if (model.wasPropertyExplicitlySet("dataRetentionPeriod")) { + this.dataRetentionPeriod(model.getDataRetentionPeriod()); + } return this; } } @@ -694,6 +716,7 @@ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), + Standby("STANDBY"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -1034,6 +1057,66 @@ public OutboundConnection getPrivateEndpointOutboundConnection() { return privateEndpointOutboundConnection; } + /** Data retention period set for given integration instance */ + public enum DataRetentionPeriod implements com.oracle.bmc.http.internal.BmcEnum { + Months1("MONTHS_1"), + Months3("MONTHS_3"), + Months6("MONTHS_6"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DataRetentionPeriod.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DataRetentionPeriod v : DataRetentionPeriod.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DataRetentionPeriod(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DataRetentionPeriod create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DataRetentionPeriod', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Data retention period set for given integration instance */ + @com.fasterxml.jackson.annotation.JsonProperty("dataRetentionPeriod") + private final DataRetentionPeriod dataRetentionPeriod; + + /** + * Data retention period set for given integration instance + * + * @return the value + */ + public DataRetentionPeriod getDataRetentionPeriod() { + return dataRetentionPeriod; + } + @Override public String toString() { return this.toString(true); @@ -1074,6 +1157,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", shape=").append(String.valueOf(this.shape)); sb.append(", privateEndpointOutboundConnection=") .append(String.valueOf(this.privateEndpointOutboundConnection)); + sb.append(", dataRetentionPeriod=").append(String.valueOf(this.dataRetentionPeriod)); sb.append(")"); return sb.toString(); } @@ -1116,6 +1200,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.privateEndpointOutboundConnection, other.privateEndpointOutboundConnection) + && java.util.Objects.equals(this.dataRetentionPeriod, other.dataRetentionPeriod) && super.equals(other); } @@ -1177,6 +1262,11 @@ public int hashCode() { + (this.privateEndpointOutboundConnection == null ? 43 : this.privateEndpointOutboundConnection.hashCode()); + result = + (result * PRIME) + + (this.dataRetentionPeriod == null + ? 43 + : this.dataRetentionPeriod.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequest.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequest.java index bf998604614..9c6caad68f4 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequest.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequest.java @@ -286,6 +286,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { DeleteIntegrationInstance("DELETE_INTEGRATION_INSTANCE"), ChangePrivateEndpointOutboundConnection("CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION"), EnableProcessAutomation("ENABLE_PROCESS_AUTOMATION"), + ExtendDataRetention("EXTEND_DATA_RETENTION"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequestSummary.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequestSummary.java index 6541567a48f..c35464082d8 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequestSummary.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/model/WorkRequestSummary.java @@ -288,6 +288,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { DeleteIntegrationInstance("DELETE_INTEGRATION_INSTANCE"), ChangePrivateEndpointOutboundConnection("CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION"), EnableProcessAutomation("ENABLE_PROCESS_AUTOMATION"), + ExtendDataRetention("EXTEND_DATA_RETENTION"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/requests/ExtendDataRetentionRequest.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/requests/ExtendDataRetentionRequest.java new file mode 100644 index 00000000000..f2d8497eee2 --- /dev/null +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/requests/ExtendDataRetentionRequest.java @@ -0,0 +1,356 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.integration.requests; + +import com.oracle.bmc.integration.model.*; +/** + * Example: Click here to see how to use ExtendDataRetentionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190131") +public class ExtendDataRetentionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.integration.model.ExtendDataRetentionDetails> { + + /** Unique Integration Instance identifier. */ + private String integrationInstanceId; + + /** Unique Integration Instance identifier. */ + public String getIntegrationInstanceId() { + return integrationInstanceId; + } + /** Extend Data Retention period for integration instance. */ + private com.oracle.bmc.integration.model.ExtendDataRetentionDetails extendDataRetentionDetails; + + /** Extend Data Retention period for integration instance. */ + public com.oracle.bmc.integration.model.ExtendDataRetentionDetails + getExtendDataRetentionDetails() { + return extendDataRetentionDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.integration.model.ExtendDataRetentionDetails getBody$() { + return extendDataRetentionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ExtendDataRetentionRequest, + com.oracle.bmc.integration.model.ExtendDataRetentionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Integration Instance identifier. */ + private String integrationInstanceId = null; + + /** + * Unique Integration Instance identifier. + * + * @param integrationInstanceId the value to set + * @return this builder instance + */ + public Builder integrationInstanceId(String integrationInstanceId) { + this.integrationInstanceId = integrationInstanceId; + return this; + } + + /** Extend Data Retention period for integration instance. */ + private com.oracle.bmc.integration.model.ExtendDataRetentionDetails + extendDataRetentionDetails = null; + + /** + * Extend Data Retention period for integration instance. + * + * @param extendDataRetentionDetails the value to set + * @return this builder instance + */ + public Builder extendDataRetentionDetails( + com.oracle.bmc.integration.model.ExtendDataRetentionDetails + extendDataRetentionDetails) { + this.extendDataRetentionDetails = extendDataRetentionDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ExtendDataRetentionRequest o) { + integrationInstanceId(o.getIntegrationInstanceId()); + extendDataRetentionDetails(o.getExtendDataRetentionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ExtendDataRetentionRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ExtendDataRetentionRequest + */ + public ExtendDataRetentionRequest build() { + ExtendDataRetentionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.integration.model.ExtendDataRetentionDetails body) { + extendDataRetentionDetails(body); + return this; + } + + /** + * Build the instance of ExtendDataRetentionRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ExtendDataRetentionRequest + */ + public ExtendDataRetentionRequest buildWithoutInvocationCallback() { + ExtendDataRetentionRequest request = new ExtendDataRetentionRequest(); + request.integrationInstanceId = integrationInstanceId; + request.extendDataRetentionDetails = extendDataRetentionDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ExtendDataRetentionRequest(integrationInstanceId, extendDataRetentionDetails, + // ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .integrationInstanceId(integrationInstanceId) + .extendDataRetentionDetails(extendDataRetentionDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",integrationInstanceId=").append(String.valueOf(this.integrationInstanceId)); + sb.append(",extendDataRetentionDetails=") + .append(String.valueOf(this.extendDataRetentionDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExtendDataRetentionRequest)) { + return false; + } + + ExtendDataRetentionRequest other = (ExtendDataRetentionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.integrationInstanceId, other.integrationInstanceId) + && java.util.Objects.equals( + this.extendDataRetentionDetails, other.extendDataRetentionDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.integrationInstanceId == null + ? 43 + : this.integrationInstanceId.hashCode()); + result = + (result * PRIME) + + (this.extendDataRetentionDetails == null + ? 43 + : this.extendDataRetentionDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/requests/ListIntegrationInstancesRequest.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/requests/ListIntegrationInstancesRequest.java index de0585460b4..f82ffc890f2 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/requests/ListIntegrationInstancesRequest.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/requests/ListIntegrationInstancesRequest.java @@ -49,6 +49,7 @@ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), + Standby("STANDBY"), ; private final String value; diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/responses/ExtendDataRetentionResponse.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/responses/ExtendDataRetentionResponse.java new file mode 100644 index 00000000000..90f8201ac5b --- /dev/null +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/responses/ExtendDataRetentionResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.integration.responses; + +import com.oracle.bmc.integration.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190131") +public class ExtendDataRetentionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ExtendDataRetentionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ExtendDataRetentionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ExtendDataRetentionResponse build() { + return new ExtendDataRetentionResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExtendDataRetentionResponse)) { + return false; + } + + ExtendDataRetentionResponse other = (ExtendDataRetentionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-integration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-integration/reflect-config.json b/bmc-integration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-integration/reflect-config.json index 4e0b58cb02a..20765294a8d 100644 --- a/bmc-integration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-integration/reflect-config.json +++ b/bmc-integration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-integration/reflect-config.json @@ -121,6 +121,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.integration.model.ExtendDataRetentionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.integration.model.ExtendDataRetentionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.integration.model.ExtendDataRetentionDetails$DataRetentionPeriod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.integration.model.IdcsInfoDetails", @@ -173,6 +193,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.integration.model.IntegrationInstance$DataRetentionPeriod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.integration.model.IntegrationInstanceSummary", @@ -211,6 +237,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.integration.model.IntegrationInstanceSummary$DataRetentionPeriod", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.integration.model.NetworkEndpointDetails", diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 2ddfe379f1c..8159dc02906 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index 094629a7cdc..5879cf5e692 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index db42ff4fb6f..ebc3fec90de 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 244d3197341..f4ff64eba88 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index bd7c1eee78d..9b7a33f383b 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index cc0cde6f97b..35f0965a95a 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index e4c3e69ae41..85a8c38c465 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 08fe759a996..84fb7c51248 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 4067301c072..76322a02ee3 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 7f8d21e69b0..bdf9ed31f46 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 0db87e4a069..9b57da3948c 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index 547b93eb703..d8493050a78 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index d616655cf91..4c8351da35e 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index e19d21f325e..27101048a22 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index d892d29c39e..65c9e05bd56 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 8227082d514..f890a97f6cd 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 357fe94d7a3..2337106e6d5 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 25baf58cef9..a6e1806e8b2 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 625abccd509..58849edf2e1 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java index 38b393835b7..ec636db0389 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateDbSystemDetails.java @@ -37,6 +37,7 @@ public final class CreateDbSystemDetails "adminUsername", "adminPassword", "dataStorageSizeInGBs", + "dataStorage", "hostnameLabel", "ipAddress", "port", @@ -65,6 +66,7 @@ public CreateDbSystemDetails( String adminUsername, String adminPassword, Integer dataStorageSizeInGBs, + DataStorageDetails dataStorage, String hostnameLabel, String ipAddress, Integer port, @@ -92,6 +94,7 @@ public CreateDbSystemDetails( this.adminUsername = adminUsername; this.adminPassword = adminPassword; this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.dataStorage = dataStorage; this.hostnameLabel = hostnameLabel; this.ipAddress = ipAddress; this.port = port; @@ -372,6 +375,15 @@ public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { this.__explicitlySet__.add("dataStorageSizeInGBs"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("dataStorage") + private DataStorageDetails dataStorage; + + public Builder dataStorage(DataStorageDetails dataStorage) { + this.dataStorage = dataStorage; + this.__explicitlySet__.add("dataStorage"); + return this; + } /** * The hostname for the primary endpoint of the DB System. Used for DNS. * @@ -598,6 +610,7 @@ public CreateDbSystemDetails build() { this.adminUsername, this.adminPassword, this.dataStorageSizeInGBs, + this.dataStorage, this.hostnameLabel, this.ipAddress, this.port, @@ -658,6 +671,9 @@ public Builder copy(CreateDbSystemDetails model) { if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); } + if (model.wasPropertyExplicitlySet("dataStorage")) { + this.dataStorage(model.getDataStorage()); + } if (model.wasPropertyExplicitlySet("hostnameLabel")) { this.hostnameLabel(model.getHostnameLabel()); } @@ -945,6 +961,13 @@ public Integer getDataStorageSizeInGBs() { return dataStorageSizeInGBs; } + @com.fasterxml.jackson.annotation.JsonProperty("dataStorage") + private final DataStorageDetails dataStorage; + + public DataStorageDetails getDataStorage() { + return dataStorage; + } + /** * The hostname for the primary endpoint of the DB System. Used for DNS. * @@ -1148,6 +1171,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", adminUsername=").append(String.valueOf(this.adminUsername)); sb.append(", adminPassword=").append(""); sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", dataStorage=").append(String.valueOf(this.dataStorage)); sb.append(", hostnameLabel=").append(String.valueOf(this.hostnameLabel)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); sb.append(", port=").append(String.valueOf(this.port)); @@ -1188,6 +1212,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.adminUsername, other.adminUsername) && java.util.Objects.equals(this.adminPassword, other.adminPassword) && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorage, other.dataStorage) && java.util.Objects.equals(this.hostnameLabel, other.hostnameLabel) && java.util.Objects.equals(this.ipAddress, other.ipAddress) && java.util.Objects.equals(this.port, other.port) @@ -1239,6 +1264,7 @@ public int hashCode() { + (this.dataStorageSizeInGBs == null ? 43 : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.dataStorage == null ? 43 : this.dataStorage.hashCode()); result = (result * PRIME) + (this.hostnameLabel == null ? 43 : this.hostnameLabel.hashCode()); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DataStorage.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DataStorage.java new file mode 100644 index 00000000000..f21ecb79a85 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DataStorage.java @@ -0,0 +1,415 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.model; + +/** + * Data Storage information.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataStorage.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DataStorage extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "allocatedStorageSizeInGBs", + "dataStorageSizeInGBs", + "dataStorageSizeLimitInGBs", + "isAutoExpandStorageEnabled", + "maxStorageSizeInGBs" + }) + public DataStorage( + Integer allocatedStorageSizeInGBs, + Integer dataStorageSizeInGBs, + Integer dataStorageSizeLimitInGBs, + Boolean isAutoExpandStorageEnabled, + Integer maxStorageSizeInGBs) { + super(); + this.allocatedStorageSizeInGBs = allocatedStorageSizeInGBs; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.dataStorageSizeLimitInGBs = dataStorageSizeLimitInGBs; + this.isAutoExpandStorageEnabled = isAutoExpandStorageEnabled; + this.maxStorageSizeInGBs = maxStorageSizeInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The actual allocated storage size for the DB System. This may be higher than + * dataStorageSizeInGBs if an automatic storage expansion has occurred. + */ + @com.fasterxml.jackson.annotation.JsonProperty("allocatedStorageSizeInGBs") + private Integer allocatedStorageSizeInGBs; + + /** + * The actual allocated storage size for the DB System. This may be higher than + * dataStorageSizeInGBs if an automatic storage expansion has occurred. + * + * @param allocatedStorageSizeInGBs the value to set + * @return this builder + */ + public Builder allocatedStorageSizeInGBs(Integer allocatedStorageSizeInGBs) { + this.allocatedStorageSizeInGBs = allocatedStorageSizeInGBs; + this.__explicitlySet__.add("allocatedStorageSizeInGBs"); + return this; + } + /** + * User specified size of the data volume. May be less than current + * allocatedStorageSizeInGBs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Integer dataStorageSizeInGBs; + + /** + * User specified size of the data volume. May be less than current + * allocatedStorageSizeInGBs. + * + * @param dataStorageSizeInGBs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + /** + * The absolute limit the DB System's storage size may ever expand to, either manually or + * automatically. This limit is based based on the initial dataStorageSizeInGBs when the DB + * System was first created. Both dataStorageSizeInGBs and maxDataStorageSizeInGBs can not + * exceed this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. + * DB Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. + * DB Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. + * DB Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeLimitInGBs") + private Integer dataStorageSizeLimitInGBs; + + /** + * The absolute limit the DB System's storage size may ever expand to, either manually or + * automatically. This limit is based based on the initial dataStorageSizeInGBs when the DB + * System was first created. Both dataStorageSizeInGBs and maxDataStorageSizeInGBs can not + * exceed this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. + * DB Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. + * DB Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. + * DB Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + * + * @param dataStorageSizeLimitInGBs the value to set + * @return this builder + */ + public Builder dataStorageSizeLimitInGBs(Integer dataStorageSizeLimitInGBs) { + this.dataStorageSizeLimitInGBs = dataStorageSizeLimitInGBs; + this.__explicitlySet__.add("dataStorageSizeLimitInGBs"); + return this; + } + /** + * Enable/disable automatic storage expansion. When set to true, the DB System will + * automatically add storage incrementally up to the value specified in maxStorageSizeInGBs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoExpandStorageEnabled") + private Boolean isAutoExpandStorageEnabled; + + /** + * Enable/disable automatic storage expansion. When set to true, the DB System will + * automatically add storage incrementally up to the value specified in maxStorageSizeInGBs. + * + * @param isAutoExpandStorageEnabled the value to set + * @return this builder + */ + public Builder isAutoExpandStorageEnabled(Boolean isAutoExpandStorageEnabled) { + this.isAutoExpandStorageEnabled = isAutoExpandStorageEnabled; + this.__explicitlySet__.add("isAutoExpandStorageEnabled"); + return this; + } + /** + * Maximum storage size this DB System can expand to. When isAutoExpandStorageEnabled is set + * to true, the DB System will add storage incrementally up to this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. + * DB Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. + * DB Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. + * DB Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + * + *

It is not possible to decrease data storage size. You cannot set the maximum data + * storage size to less than either current DB System dataStorageSizeInGBs or + * allocatedStorageSizeInGBs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxStorageSizeInGBs") + private Integer maxStorageSizeInGBs; + + /** + * Maximum storage size this DB System can expand to. When isAutoExpandStorageEnabled is set + * to true, the DB System will add storage incrementally up to this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. + * DB Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. + * DB Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. + * DB Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + * + *

It is not possible to decrease data storage size. You cannot set the maximum data + * storage size to less than either current DB System dataStorageSizeInGBs or + * allocatedStorageSizeInGBs. + * + * @param maxStorageSizeInGBs the value to set + * @return this builder + */ + public Builder maxStorageSizeInGBs(Integer maxStorageSizeInGBs) { + this.maxStorageSizeInGBs = maxStorageSizeInGBs; + this.__explicitlySet__.add("maxStorageSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataStorage build() { + DataStorage model = + new DataStorage( + this.allocatedStorageSizeInGBs, + this.dataStorageSizeInGBs, + this.dataStorageSizeLimitInGBs, + this.isAutoExpandStorageEnabled, + this.maxStorageSizeInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataStorage model) { + if (model.wasPropertyExplicitlySet("allocatedStorageSizeInGBs")) { + this.allocatedStorageSizeInGBs(model.getAllocatedStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeLimitInGBs")) { + this.dataStorageSizeLimitInGBs(model.getDataStorageSizeLimitInGBs()); + } + if (model.wasPropertyExplicitlySet("isAutoExpandStorageEnabled")) { + this.isAutoExpandStorageEnabled(model.getIsAutoExpandStorageEnabled()); + } + if (model.wasPropertyExplicitlySet("maxStorageSizeInGBs")) { + this.maxStorageSizeInGBs(model.getMaxStorageSizeInGBs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The actual allocated storage size for the DB System. This may be higher than + * dataStorageSizeInGBs if an automatic storage expansion has occurred. + */ + @com.fasterxml.jackson.annotation.JsonProperty("allocatedStorageSizeInGBs") + private final Integer allocatedStorageSizeInGBs; + + /** + * The actual allocated storage size for the DB System. This may be higher than + * dataStorageSizeInGBs if an automatic storage expansion has occurred. + * + * @return the value + */ + public Integer getAllocatedStorageSizeInGBs() { + return allocatedStorageSizeInGBs; + } + + /** + * User specified size of the data volume. May be less than current allocatedStorageSizeInGBs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Integer dataStorageSizeInGBs; + + /** + * User specified size of the data volume. May be less than current allocatedStorageSizeInGBs. + * + * @return the value + */ + public Integer getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + /** + * The absolute limit the DB System's storage size may ever expand to, either manually or + * automatically. This limit is based based on the initial dataStorageSizeInGBs when the DB + * System was first created. Both dataStorageSizeInGBs and maxDataStorageSizeInGBs can not + * exceed this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. DB + * Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. DB + * Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. DB + * Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeLimitInGBs") + private final Integer dataStorageSizeLimitInGBs; + + /** + * The absolute limit the DB System's storage size may ever expand to, either manually or + * automatically. This limit is based based on the initial dataStorageSizeInGBs when the DB + * System was first created. Both dataStorageSizeInGBs and maxDataStorageSizeInGBs can not + * exceed this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. DB + * Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. DB + * Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. DB + * Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + * + * @return the value + */ + public Integer getDataStorageSizeLimitInGBs() { + return dataStorageSizeLimitInGBs; + } + + /** + * Enable/disable automatic storage expansion. When set to true, the DB System will + * automatically add storage incrementally up to the value specified in maxStorageSizeInGBs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoExpandStorageEnabled") + private final Boolean isAutoExpandStorageEnabled; + + /** + * Enable/disable automatic storage expansion. When set to true, the DB System will + * automatically add storage incrementally up to the value specified in maxStorageSizeInGBs. + * + * @return the value + */ + public Boolean getIsAutoExpandStorageEnabled() { + return isAutoExpandStorageEnabled; + } + + /** + * Maximum storage size this DB System can expand to. When isAutoExpandStorageEnabled is set to + * true, the DB System will add storage incrementally up to this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. DB + * Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. DB + * Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. DB + * Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + * + *

It is not possible to decrease data storage size. You cannot set the maximum data storage + * size to less than either current DB System dataStorageSizeInGBs or allocatedStorageSizeInGBs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxStorageSizeInGBs") + private final Integer maxStorageSizeInGBs; + + /** + * Maximum storage size this DB System can expand to. When isAutoExpandStorageEnabled is set to + * true, the DB System will add storage incrementally up to this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. DB + * Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. DB + * Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. DB + * Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + * + *

It is not possible to decrease data storage size. You cannot set the maximum data storage + * size to less than either current DB System dataStorageSizeInGBs or allocatedStorageSizeInGBs. + * + * @return the value + */ + public Integer getMaxStorageSizeInGBs() { + return maxStorageSizeInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataStorage("); + sb.append("super=").append(super.toString()); + sb.append("allocatedStorageSizeInGBs=") + .append(String.valueOf(this.allocatedStorageSizeInGBs)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", dataStorageSizeLimitInGBs=") + .append(String.valueOf(this.dataStorageSizeLimitInGBs)); + sb.append(", isAutoExpandStorageEnabled=") + .append(String.valueOf(this.isAutoExpandStorageEnabled)); + sb.append(", maxStorageSizeInGBs=").append(String.valueOf(this.maxStorageSizeInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataStorage)) { + return false; + } + + DataStorage other = (DataStorage) o; + return java.util.Objects.equals( + this.allocatedStorageSizeInGBs, other.allocatedStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals( + this.dataStorageSizeLimitInGBs, other.dataStorageSizeLimitInGBs) + && java.util.Objects.equals( + this.isAutoExpandStorageEnabled, other.isAutoExpandStorageEnabled) + && java.util.Objects.equals(this.maxStorageSizeInGBs, other.maxStorageSizeInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.allocatedStorageSizeInGBs == null + ? 43 + : this.allocatedStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeLimitInGBs == null + ? 43 + : this.dataStorageSizeLimitInGBs.hashCode()); + result = + (result * PRIME) + + (this.isAutoExpandStorageEnabled == null + ? 43 + : this.isAutoExpandStorageEnabled.hashCode()); + result = + (result * PRIME) + + (this.maxStorageSizeInGBs == null + ? 43 + : this.maxStorageSizeInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DataStorageDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DataStorageDetails.java new file mode 100644 index 00000000000..53042af0bab --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DataStorageDetails.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.model; + +/** + * Data Storage configuration properties.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataStorageDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DataStorageDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isAutoExpandStorageEnabled", "maxStorageSizeInGBs"}) + public DataStorageDetails(Boolean isAutoExpandStorageEnabled, Integer maxStorageSizeInGBs) { + super(); + this.isAutoExpandStorageEnabled = isAutoExpandStorageEnabled; + this.maxStorageSizeInGBs = maxStorageSizeInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Enable/disable automatic storage expansion. When set to true, the DB System will + * automatically add storage incrementally up to the value specified in maxStorageSizeInGBs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoExpandStorageEnabled") + private Boolean isAutoExpandStorageEnabled; + + /** + * Enable/disable automatic storage expansion. When set to true, the DB System will + * automatically add storage incrementally up to the value specified in maxStorageSizeInGBs. + * + * @param isAutoExpandStorageEnabled the value to set + * @return this builder + */ + public Builder isAutoExpandStorageEnabled(Boolean isAutoExpandStorageEnabled) { + this.isAutoExpandStorageEnabled = isAutoExpandStorageEnabled; + this.__explicitlySet__.add("isAutoExpandStorageEnabled"); + return this; + } + /** + * Maximum storage size this DB System can expand to. When isAutoExpandStorageEnabled is set + * to true, the DB System will add storage incrementally up to this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. + * DB Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. + * DB Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. + * DB Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + * + *

It is not possible to decrease data storage size. You cannot set the maximum data + * storage size to less than either current DB System dataStorageSizeInGBs or + * allocatedStorageSizeInGBs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxStorageSizeInGBs") + private Integer maxStorageSizeInGBs; + + /** + * Maximum storage size this DB System can expand to. When isAutoExpandStorageEnabled is set + * to true, the DB System will add storage incrementally up to this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. + * DB Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. + * DB Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. + * DB Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + * + *

It is not possible to decrease data storage size. You cannot set the maximum data + * storage size to less than either current DB System dataStorageSizeInGBs or + * allocatedStorageSizeInGBs. + * + * @param maxStorageSizeInGBs the value to set + * @return this builder + */ + public Builder maxStorageSizeInGBs(Integer maxStorageSizeInGBs) { + this.maxStorageSizeInGBs = maxStorageSizeInGBs; + this.__explicitlySet__.add("maxStorageSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataStorageDetails build() { + DataStorageDetails model = + new DataStorageDetails( + this.isAutoExpandStorageEnabled, this.maxStorageSizeInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataStorageDetails model) { + if (model.wasPropertyExplicitlySet("isAutoExpandStorageEnabled")) { + this.isAutoExpandStorageEnabled(model.getIsAutoExpandStorageEnabled()); + } + if (model.wasPropertyExplicitlySet("maxStorageSizeInGBs")) { + this.maxStorageSizeInGBs(model.getMaxStorageSizeInGBs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Enable/disable automatic storage expansion. When set to true, the DB System will + * automatically add storage incrementally up to the value specified in maxStorageSizeInGBs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoExpandStorageEnabled") + private final Boolean isAutoExpandStorageEnabled; + + /** + * Enable/disable automatic storage expansion. When set to true, the DB System will + * automatically add storage incrementally up to the value specified in maxStorageSizeInGBs. + * + * @return the value + */ + public Boolean getIsAutoExpandStorageEnabled() { + return isAutoExpandStorageEnabled; + } + + /** + * Maximum storage size this DB System can expand to. When isAutoExpandStorageEnabled is set to + * true, the DB System will add storage incrementally up to this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. DB + * Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. DB + * Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. DB + * Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + * + *

It is not possible to decrease data storage size. You cannot set the maximum data storage + * size to less than either current DB System dataStorageSizeInGBs or allocatedStorageSizeInGBs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxStorageSizeInGBs") + private final Integer maxStorageSizeInGBs; + + /** + * Maximum storage size this DB System can expand to. When isAutoExpandStorageEnabled is set to + * true, the DB System will add storage incrementally up to this value. + * + *

DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. DB + * Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. DB + * Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. DB + * Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. + * + *

It is not possible to decrease data storage size. You cannot set the maximum data storage + * size to less than either current DB System dataStorageSizeInGBs or allocatedStorageSizeInGBs. + * + * @return the value + */ + public Integer getMaxStorageSizeInGBs() { + return maxStorageSizeInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataStorageDetails("); + sb.append("super=").append(super.toString()); + sb.append("isAutoExpandStorageEnabled=") + .append(String.valueOf(this.isAutoExpandStorageEnabled)); + sb.append(", maxStorageSizeInGBs=").append(String.valueOf(this.maxStorageSizeInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataStorageDetails)) { + return false; + } + + DataStorageDetails other = (DataStorageDetails) o; + return java.util.Objects.equals( + this.isAutoExpandStorageEnabled, other.isAutoExpandStorageEnabled) + && java.util.Objects.equals(this.maxStorageSizeInGBs, other.maxStorageSizeInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isAutoExpandStorageEnabled == null + ? 43 + : this.isAutoExpandStorageEnabled.hashCode()); + result = + (result * PRIME) + + (this.maxStorageSizeInGBs == null + ? 43 + : this.maxStorageSizeInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java index ed93089d3e8..9a3b14a01ea 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystem.java @@ -39,6 +39,7 @@ public final class DbSystem extends com.oracle.bmc.http.client.internal.Explicit "source", "configurationId", "dataStorageSizeInGBs", + "dataStorage", "hostnameLabel", "ipAddress", "port", @@ -76,6 +77,7 @@ public DbSystem( DbSystemSource source, String configurationId, Integer dataStorageSizeInGBs, + DataStorage dataStorage, String hostnameLabel, String ipAddress, Integer port, @@ -112,6 +114,7 @@ public DbSystem( this.source = source; this.configurationId = configurationId; this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.dataStorage = dataStorage; this.hostnameLabel = hostnameLabel; this.ipAddress = ipAddress; this.port = port; @@ -394,12 +397,16 @@ public Builder configurationId(String configurationId) { this.__explicitlySet__.add("configurationId"); return this; } - /** Initial size of the data volume in GiBs that will be created and attached. */ + /** + * DEPRECATED: User specified size of the data volume. May be less than current + * allocatedStorageSizeInGBs. Replaced by dataStorage.dataStorageSizeInGBs. + */ @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") private Integer dataStorageSizeInGBs; /** - * Initial size of the data volume in GiBs that will be created and attached. + * DEPRECATED: User specified size of the data volume. May be less than current + * allocatedStorageSizeInGBs. Replaced by dataStorage.dataStorageSizeInGBs. * * @param dataStorageSizeInGBs the value to set * @return this builder @@ -409,6 +416,15 @@ public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { this.__explicitlySet__.add("dataStorageSizeInGBs"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("dataStorage") + private DataStorage dataStorage; + + public Builder dataStorage(DataStorage dataStorage) { + this.dataStorage = dataStorage; + this.__explicitlySet__.add("dataStorage"); + return this; + } /** * The hostname for the primary endpoint of the DB System. Used for DNS. The value is the * hostname portion of the primary private IP's fully qualified domain name (FQDN) (for @@ -711,6 +727,7 @@ public DbSystem build() { this.source, this.configurationId, this.dataStorageSizeInGBs, + this.dataStorage, this.hostnameLabel, this.ipAddress, this.port, @@ -788,6 +805,9 @@ public Builder copy(DbSystem model) { if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); } + if (model.wasPropertyExplicitlySet("dataStorage")) { + this.dataStorage(model.getDataStorage()); + } if (model.wasPropertyExplicitlySet("hostnameLabel")) { this.hostnameLabel(model.getHostnameLabel()); } @@ -1083,12 +1103,16 @@ public String getConfigurationId() { return configurationId; } - /** Initial size of the data volume in GiBs that will be created and attached. */ + /** + * DEPRECATED: User specified size of the data volume. May be less than current + * allocatedStorageSizeInGBs. Replaced by dataStorage.dataStorageSizeInGBs. + */ @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") private final Integer dataStorageSizeInGBs; /** - * Initial size of the data volume in GiBs that will be created and attached. + * DEPRECATED: User specified size of the data volume. May be less than current + * allocatedStorageSizeInGBs. Replaced by dataStorage.dataStorageSizeInGBs. * * @return the value */ @@ -1096,6 +1120,13 @@ public Integer getDataStorageSizeInGBs() { return dataStorageSizeInGBs; } + @com.fasterxml.jackson.annotation.JsonProperty("dataStorage") + private final DataStorage dataStorage; + + public DataStorage getDataStorage() { + return dataStorage; + } + /** * The hostname for the primary endpoint of the DB System. Used for DNS. The value is the * hostname portion of the primary private IP's fully qualified domain name (FQDN) (for example, @@ -1420,6 +1451,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", source=").append(String.valueOf(this.source)); sb.append(", configurationId=").append(String.valueOf(this.configurationId)); sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", dataStorage=").append(String.valueOf(this.dataStorage)); sb.append(", hostnameLabel=").append(String.valueOf(this.hostnameLabel)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); sb.append(", port=").append(String.valueOf(this.port)); @@ -1471,6 +1503,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.source, other.source) && java.util.Objects.equals(this.configurationId, other.configurationId) && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorage, other.dataStorage) && java.util.Objects.equals(this.hostnameLabel, other.hostnameLabel) && java.util.Objects.equals(this.ipAddress, other.ipAddress) && java.util.Objects.equals(this.port, other.port) @@ -1536,6 +1569,7 @@ public int hashCode() { + (this.dataStorageSizeInGBs == null ? 43 : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.dataStorage == null ? 43 : this.dataStorage.hashCode()); result = (result * PRIME) + (this.hostnameLabel == null ? 43 : this.hostnameLabel.hashCode()); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java index f5325e5f172..f678130283f 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java @@ -36,6 +36,7 @@ public final class DbSystemSnapshot "backupPolicy", "configurationId", "dataStorageSizeInGBs", + "dataStorage", "hostnameLabel", "ipAddress", "port", @@ -65,6 +66,7 @@ public DbSystemSnapshot( BackupPolicy backupPolicy, String configurationId, Integer dataStorageSizeInGBs, + DataStorage dataStorage, String hostnameLabel, String ipAddress, Integer port, @@ -93,6 +95,7 @@ public DbSystemSnapshot( this.backupPolicy = backupPolicy; this.configurationId = configurationId; this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.dataStorage = dataStorage; this.hostnameLabel = hostnameLabel; this.ipAddress = ipAddress; this.port = port; @@ -293,12 +296,16 @@ public Builder configurationId(String configurationId) { this.__explicitlySet__.add("configurationId"); return this; } - /** Initial size of the data volume in GiBs that will be created and attached. */ + /** + * DEPRECATED: User specified size of the data volume. May be less than current + * allocatedStorageSizeInGBs. Replaced by dataStorage.dataStorageSizeInGBs. + */ @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") private Integer dataStorageSizeInGBs; /** - * Initial size of the data volume in GiBs that will be created and attached. + * DEPRECATED: User specified size of the data volume. May be less than current + * allocatedStorageSizeInGBs. Replaced by dataStorage.dataStorageSizeInGBs. * * @param dataStorageSizeInGBs the value to set * @return this builder @@ -308,6 +315,15 @@ public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { this.__explicitlySet__.add("dataStorageSizeInGBs"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("dataStorage") + private DataStorage dataStorage; + + public Builder dataStorage(DataStorage dataStorage) { + this.dataStorage = dataStorage; + this.__explicitlySet__.add("dataStorage"); + return this; + } /** * The hostname for the primary endpoint of the DB System. Used for DNS. The value is the * hostname portion of the primary private IP's fully qualified domain name (FQDN) (for @@ -557,6 +573,7 @@ public DbSystemSnapshot build() { this.backupPolicy, this.configurationId, this.dataStorageSizeInGBs, + this.dataStorage, this.hostnameLabel, this.ipAddress, this.port, @@ -618,6 +635,9 @@ public Builder copy(DbSystemSnapshot model) { if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); } + if (model.wasPropertyExplicitlySet("dataStorage")) { + this.dataStorage(model.getDataStorage()); + } if (model.wasPropertyExplicitlySet("hostnameLabel")) { this.hostnameLabel(model.getHostnameLabel()); } @@ -831,12 +851,16 @@ public String getConfigurationId() { return configurationId; } - /** Initial size of the data volume in GiBs that will be created and attached. */ + /** + * DEPRECATED: User specified size of the data volume. May be less than current + * allocatedStorageSizeInGBs. Replaced by dataStorage.dataStorageSizeInGBs. + */ @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") private final Integer dataStorageSizeInGBs; /** - * Initial size of the data volume in GiBs that will be created and attached. + * DEPRECATED: User specified size of the data volume. May be less than current + * allocatedStorageSizeInGBs. Replaced by dataStorage.dataStorageSizeInGBs. * * @return the value */ @@ -844,6 +868,13 @@ public Integer getDataStorageSizeInGBs() { return dataStorageSizeInGBs; } + @com.fasterxml.jackson.annotation.JsonProperty("dataStorage") + private final DataStorage dataStorage; + + public DataStorage getDataStorage() { + return dataStorage; + } + /** * The hostname for the primary endpoint of the DB System. Used for DNS. The value is the * hostname portion of the primary private IP's fully qualified domain name (FQDN) (for example, @@ -1072,6 +1103,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", backupPolicy=").append(String.valueOf(this.backupPolicy)); sb.append(", configurationId=").append(String.valueOf(this.configurationId)); sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", dataStorage=").append(String.valueOf(this.dataStorage)); sb.append(", hostnameLabel=").append(String.valueOf(this.hostnameLabel)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); sb.append(", port=").append(String.valueOf(this.port)); @@ -1113,6 +1145,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.backupPolicy, other.backupPolicy) && java.util.Objects.equals(this.configurationId, other.configurationId) && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorage, other.dataStorage) && java.util.Objects.equals(this.hostnameLabel, other.hostnameLabel) && java.util.Objects.equals(this.ipAddress, other.ipAddress) && java.util.Objects.equals(this.port, other.port) @@ -1161,6 +1194,7 @@ public int hashCode() { + (this.dataStorageSizeInGBs == null ? 43 : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.dataStorage == null ? 43 : this.dataStorage.hashCode()); result = (result * PRIME) + (this.hostnameLabel == null ? 43 : this.hostnameLabel.hashCode()); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java index d89cc9ef93e..d637510d880 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateDbSystemDetails.java @@ -36,6 +36,7 @@ public final class UpdateDbSystemDetails "adminUsername", "adminPassword", "dataStorageSizeInGBs", + "dataStorage", "hostnameLabel", "ipAddress", "port", @@ -62,6 +63,7 @@ public UpdateDbSystemDetails( String adminUsername, String adminPassword, Integer dataStorageSizeInGBs, + DataStorageDetails dataStorage, String hostnameLabel, String ipAddress, Integer port, @@ -87,6 +89,7 @@ public UpdateDbSystemDetails( this.adminUsername = adminUsername; this.adminPassword = adminPassword; this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.dataStorage = dataStorage; this.hostnameLabel = hostnameLabel; this.ipAddress = ipAddress; this.port = port; @@ -369,6 +372,15 @@ public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { this.__explicitlySet__.add("dataStorageSizeInGBs"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("dataStorage") + private DataStorageDetails dataStorage; + + public Builder dataStorage(DataStorageDetails dataStorage) { + this.dataStorage = dataStorage; + this.__explicitlySet__.add("dataStorage"); + return this; + } /** * The hostname for the primary endpoint of the DB System. Used for DNS. The value is the * hostname portion of the primary private IP's fully qualified domain name (FQDN) (for @@ -577,6 +589,7 @@ public UpdateDbSystemDetails build() { this.adminUsername, this.adminPassword, this.dataStorageSizeInGBs, + this.dataStorage, this.hostnameLabel, this.ipAddress, this.port, @@ -633,6 +646,9 @@ public Builder copy(UpdateDbSystemDetails model) { if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); } + if (model.wasPropertyExplicitlySet("dataStorage")) { + this.dataStorage(model.getDataStorage()); + } if (model.wasPropertyExplicitlySet("hostnameLabel")) { this.hostnameLabel(model.getHostnameLabel()); } @@ -924,6 +940,13 @@ public Integer getDataStorageSizeInGBs() { return dataStorageSizeInGBs; } + @com.fasterxml.jackson.annotation.JsonProperty("dataStorage") + private final DataStorageDetails dataStorage; + + public DataStorageDetails getDataStorage() { + return dataStorage; + } + /** * The hostname for the primary endpoint of the DB System. Used for DNS. The value is the * hostname portion of the primary private IP's fully qualified domain name (FQDN) (for example, @@ -1115,6 +1138,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", adminUsername=").append(String.valueOf(this.adminUsername)); sb.append(", adminPassword=").append(""); sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(", dataStorage=").append(String.valueOf(this.dataStorage)); sb.append(", hostnameLabel=").append(String.valueOf(this.hostnameLabel)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); sb.append(", port=").append(String.valueOf(this.port)); @@ -1153,6 +1177,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.adminUsername, other.adminUsername) && java.util.Objects.equals(this.adminPassword, other.adminPassword) && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && java.util.Objects.equals(this.dataStorage, other.dataStorage) && java.util.Objects.equals(this.hostnameLabel, other.hostnameLabel) && java.util.Objects.equals(this.ipAddress, other.ipAddress) && java.util.Objects.equals(this.port, other.port) @@ -1200,6 +1225,7 @@ public int hashCode() { + (this.dataStorageSizeInGBs == null ? 43 : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + (this.dataStorage == null ? 43 : this.dataStorage.hashCode()); result = (result * PRIME) + (this.hostnameLabel == null ? 43 : this.hostnameLabel.hashCode()); diff --git a/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json b/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json index c370c2aa449..36dd622cfd9 100644 --- a/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json +++ b/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json @@ -612,6 +612,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.DataStorage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.DataStorage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.DataStorageDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.DataStorageDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.mysql.model.DatabaseManagementStatus", diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index fcbd95c2417..d0dbcf41973 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index d569e4babae..64051b2069f 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 655c31f8927..f3b9ccf182e 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 431b89c5fad..75e4f2b86c7 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.46.1 + 3.47.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.46.1 + 3.47.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 5cbcf6012e5..98d226837ee 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.46.1 + 3.47.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.46.1 + 3.47.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 58a57999959..44b308b4a5b 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.46.1 + 3.47.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 9c9f7cb2c68..5076c5410d8 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index e515af21fcd..c0c6aa943f1 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 7d8885ed63a..8de840121f7 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 9ced0a3d104..c34c5306898 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index c42e0ba035f..255d2814b82 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index d34848bd9d5..7373bdd2b1a 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index fc1a65edc72..9d935d05262 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index da63dff94ba..1ed7b20066b 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index e8b8adeda9d..a01c28ce16d 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 6e2b7259ab3..f9ce68c23ce 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 6b3ec458054..6869e908810 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 837ec922d81..f6416fed8dc 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index 0b0300e7b3e..b8dd16f483a 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index fca65107d07..484e444938d 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 64bc264ebd8..68db69e97d5 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index b2bda02e441..535796efb8d 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index af04e4442c1..666aa50e4fc 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index c827daa881f..053ffa4522d 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 824862c9020..f8189bbf115 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index f033d500fa5..8ce0d617630 100644 --- a/bmc-other-examples/bmc-jersey-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey-examples - 3.46.1 + 3.47.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.46.1 + 3.47.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.46.1 + 3.47.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.46.1 + 3.47.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index cc8956212c0..bb3862a6d45 100644 --- a/bmc-other-examples/bmc-jersey3-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey3-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey3-examples - 3.46.1 + 3.47.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.46.1 + 3.47.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.46.1 + 3.47.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.46.1 + 3.47.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index ed0744d77cc..27d1573b80d 100644 --- a/bmc-other-examples/native-maven-example/pom.xml +++ b/bmc-other-examples/native-maven-example/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-examples-native - 3.46.1 + 3.47.0 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -98,14 +98,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.46.1 + 3.47.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.46.1 + 3.47.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 0a40c5a6e50..176979b7586 100644 --- a/bmc-other-examples/pom.xml +++ b/bmc-other-examples/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 4d6505926a5..ea4f9424936 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 4ef190af78f..182c1b67f18 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 430e1aef885..2f6d988b9cc 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index a75e7d1c095..478ef4e3d17 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java index 250a7980fa4..72401d8f14c 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java @@ -8,9 +8,9 @@ import com.oracle.bmc.redis.responses.*; /** - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based - * storage solution. For more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). This service client uses + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage + * solution. For more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). This service client uses * CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit * breaker configuration is defined by the user. */ @@ -82,9 +82,9 @@ public interface RedisCluster extends AutoCloseable { CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request); /** - * Moves a Redis cluster into a different compartment within the same tenancy. A Redis cluster - * is a memory-based storage solution. For more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Moves an OCI Cache cluster into a different compartment within the same tenancy. A cluster is + * a memory-based storage solution. For more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -101,9 +101,8 @@ ChangeRedisClusterCompartmentResponse changeRedisClusterCompartment( ChangeRedisClusterCompartmentRequest request); /** - * Creates a new Redis cluster. A Redis cluster is a memory-based storage solution. For more - * information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Creates a new OCI Cache cluster. A cluster is a memory-based storage solution. For more + * information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -119,9 +118,9 @@ ChangeRedisClusterCompartmentResponse changeRedisClusterCompartment( CreateRedisClusterResponse createRedisCluster(CreateRedisClusterRequest request); /** - * Deletes the specified Redis cluster. A Redis cluster is a memory-based storage solution. For - * more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Deletes the specified OCI Cache cluster. A cluster is a memory-based storage solution. For + * more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -137,9 +136,9 @@ ChangeRedisClusterCompartmentResponse changeRedisClusterCompartment( DeleteRedisClusterResponse deleteRedisCluster(DeleteRedisClusterRequest request); /** - * Retrieves the specified Redis cluster. A Redis cluster is a memory-based storage solution. - * For more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Retrieves the specified OCI Cache cluster. A cluster is a memory-based storage solution. For + * more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -170,9 +169,25 @@ ChangeRedisClusterCompartmentResponse changeRedisClusterCompartment( GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); /** - * Lists the Redis clusters in the specified compartment. A Redis cluster is a memory-based - * storage solution. For more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Gets the list of all nodes in a cluster. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListRedisClusterNodes API. + */ + ListRedisClusterNodesResponse listRedisClusterNodes(ListRedisClusterNodesRequest request); + + /** + * Lists the OCI Cache clusters in the specified compartment. A cluster is a memory-based + * storage solution. For more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -236,9 +251,9 @@ ChangeRedisClusterCompartmentResponse changeRedisClusterCompartment( ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); /** - * Updates the specified Redis cluster. A Redis cluster is a memory-based storage solution. For - * more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Updates the specified OCI Cache cluster. A cluster is a memory-based storage solution. For + * more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java index fa7f3ff59ef..f0189ddec75 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java @@ -8,9 +8,9 @@ import com.oracle.bmc.redis.responses.*; /** - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based - * storage solution. For more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage + * solution. For more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") public interface RedisClusterAsync extends AutoCloseable { @@ -80,9 +80,9 @@ java.util.concurrent.Future cancelWorkRequest( handler); /** - * Moves a Redis cluster into a different compartment within the same tenancy. A Redis cluster - * is a memory-based storage solution. For more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Moves an OCI Cache cluster into a different compartment within the same tenancy. A cluster is + * a memory-based storage solution. For more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -100,9 +100,8 @@ java.util.concurrent.Future cancelWorkRequest( handler); /** - * Creates a new Redis cluster. A Redis cluster is a memory-based storage solution. For more - * information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Creates a new OCI Cache cluster. A cluster is a memory-based storage solution. For more + * information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -118,9 +117,9 @@ java.util.concurrent.Future createRedisCluster( handler); /** - * Deletes the specified Redis cluster. A Redis cluster is a memory-based storage solution. For - * more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Deletes the specified OCI Cache cluster. A cluster is a memory-based storage solution. For + * more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -136,9 +135,9 @@ java.util.concurrent.Future deleteRedisCluster( handler); /** - * Retrieves the specified Redis cluster. A Redis cluster is a memory-based storage solution. - * For more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Retrieves the specified OCI Cache cluster. A cluster is a memory-based storage solution. For + * more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -168,9 +167,25 @@ java.util.concurrent.Future getWorkRequest( handler); /** - * Lists the Redis clusters in the specified compartment. A Redis cluster is a memory-based - * storage solution. For more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Gets the list of all nodes in a cluster. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listRedisClusterNodes( + ListRedisClusterNodesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListRedisClusterNodesRequest, ListRedisClusterNodesResponse> + handler); + + /** + * Lists the OCI Cache clusters in the specified compartment. A cluster is a memory-based + * storage solution. For more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -233,9 +248,9 @@ java.util.concurrent.Future listWorkRequests( handler); /** - * Updates the specified Redis cluster. A Redis cluster is a memory-based storage solution. For - * more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Updates the specified OCI Cache cluster. A cluster is a memory-based storage solution. For + * more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java index ed1e8981033..894f2a3819e 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java @@ -105,7 +105,10 @@ public java.util.concurrent.Future cancelWorkRequest( return clientCall(request, CancelWorkRequestResponse::builder) .logger(LOG, "cancelWorkRequest") - .serviceDetails("RedisCluster", "CancelWorkRequest", "") + .serviceDetails( + "RedisCluster", + "CancelWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/WorkRequest/CancelWorkRequest") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(CancelWorkRequestRequest::builder) .basePath("/20220315") @@ -135,7 +138,10 @@ public java.util.concurrent.Future cancelWorkRequest( return clientCall(request, ChangeRedisClusterCompartmentResponse::builder) .logger(LOG, "changeRedisClusterCompartment") - .serviceDetails("RedisCluster", "ChangeRedisClusterCompartment", "") + .serviceDetails( + "RedisCluster", + "ChangeRedisClusterCompartment", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/ChangeRedisClusterCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeRedisClusterCompartmentRequest::builder) .basePath("/20220315") @@ -168,7 +174,10 @@ public java.util.concurrent.Future createRedisCluste return clientCall(request, CreateRedisClusterResponse::builder) .logger(LOG, "createRedisCluster") - .serviceDetails("RedisCluster", "CreateRedisCluster", "") + .serviceDetails( + "RedisCluster", + "CreateRedisCluster", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/CreateRedisCluster") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateRedisClusterRequest::builder) .basePath("/20220315") @@ -199,7 +208,10 @@ public java.util.concurrent.Future deleteRedisCluste return clientCall(request, DeleteRedisClusterResponse::builder) .logger(LOG, "deleteRedisCluster") - .serviceDetails("RedisCluster", "DeleteRedisCluster", "") + .serviceDetails( + "RedisCluster", + "DeleteRedisCluster", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/DeleteRedisCluster") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteRedisClusterRequest::builder) .basePath("/20220315") @@ -226,7 +238,10 @@ public java.util.concurrent.Future getRedisCluster( return clientCall(request, GetRedisClusterResponse::builder) .logger(LOG, "getRedisCluster") - .serviceDetails("RedisCluster", "GetRedisCluster", "") + .serviceDetails( + "RedisCluster", + "GetRedisCluster", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/GetRedisCluster") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetRedisClusterRequest::builder) .basePath("/20220315") @@ -254,7 +269,10 @@ public java.util.concurrent.Future getWorkRequest( return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") - .serviceDetails("RedisCluster", "GetWorkRequest", "") + .serviceDetails( + "RedisCluster", + "GetWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20220315") @@ -273,6 +291,44 @@ public java.util.concurrent.Future getWorkRequest( .callAsync(handler); } + @Override + public java.util.concurrent.Future listRedisClusterNodes( + ListRedisClusterNodesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListRedisClusterNodesRequest, ListRedisClusterNodesResponse> + handler) { + + Validate.notBlank(request.getRedisClusterId(), "redisClusterId must not be blank"); + + return clientCall(request, ListRedisClusterNodesResponse::builder) + .logger(LOG, "listRedisClusterNodes") + .serviceDetails( + "RedisCluster", + "ListRedisClusterNodes", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/NodeSummary/ListRedisClusterNodes") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRedisClusterNodesRequest::builder) + .basePath("/20220315") + .appendPathParam("redisClusters") + .appendPathParam(request.getRedisClusterId()) + .appendPathParam("nodes") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.redis.model.RedisNodeCollection.class, + ListRedisClusterNodesResponse.Builder::redisNodeCollection) + .handleResponseHeaderString( + "opc-request-id", ListRedisClusterNodesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListRedisClusterNodesResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listRedisClusters( ListRedisClustersRequest request, @@ -282,7 +338,10 @@ public java.util.concurrent.Future listRedisClusters( return clientCall(request, ListRedisClustersResponse::builder) .logger(LOG, "listRedisClusters") - .serviceDetails("RedisCluster", "ListRedisClusters", "") + .serviceDetails( + "RedisCluster", + "ListRedisClusters", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisClusterSummary/ListRedisClusters") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListRedisClustersRequest::builder) .basePath("/20220315") @@ -318,7 +377,10 @@ public java.util.concurrent.Future listWorkReques return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") - .serviceDetails("RedisCluster", "ListWorkRequestErrors", "") + .serviceDetails( + "RedisCluster", + "ListWorkRequestErrors", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20220315") @@ -352,7 +414,10 @@ public java.util.concurrent.Future listWorkRequestL return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") - .serviceDetails("RedisCluster", "ListWorkRequestLogs", "") + .serviceDetails( + "RedisCluster", + "ListWorkRequestLogs", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20220315") @@ -384,7 +449,10 @@ public java.util.concurrent.Future listWorkRequests( return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") - .serviceDetails("RedisCluster", "ListWorkRequests", "") + .serviceDetails( + "RedisCluster", + "ListWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/WorkRequest/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20220315") @@ -422,7 +490,10 @@ public java.util.concurrent.Future updateRedisCluste return clientCall(request, UpdateRedisClusterResponse::builder) .logger(LOG, "updateRedisCluster") - .serviceDetails("RedisCluster", "UpdateRedisCluster", "") + .serviceDetails( + "RedisCluster", + "UpdateRedisCluster", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/UpdateRedisCluster") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateRedisClusterRequest::builder) .basePath("/20220315") diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java index 99aa1e44309..1a2afd78927 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java @@ -129,7 +129,10 @@ public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest requ return clientCall(request, CancelWorkRequestResponse::builder) .logger(LOG, "cancelWorkRequest") - .serviceDetails("RedisCluster", "CancelWorkRequest", "") + .serviceDetails( + "RedisCluster", + "CancelWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/WorkRequest/CancelWorkRequest") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(CancelWorkRequestRequest::builder) .basePath("/20220315") @@ -155,7 +158,10 @@ public ChangeRedisClusterCompartmentResponse changeRedisClusterCompartment( return clientCall(request, ChangeRedisClusterCompartmentResponse::builder) .logger(LOG, "changeRedisClusterCompartment") - .serviceDetails("RedisCluster", "ChangeRedisClusterCompartment", "") + .serviceDetails( + "RedisCluster", + "ChangeRedisClusterCompartment", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/ChangeRedisClusterCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeRedisClusterCompartmentRequest::builder) .basePath("/20220315") @@ -185,7 +191,10 @@ public CreateRedisClusterResponse createRedisCluster(CreateRedisClusterRequest r return clientCall(request, CreateRedisClusterResponse::builder) .logger(LOG, "createRedisCluster") - .serviceDetails("RedisCluster", "CreateRedisCluster", "") + .serviceDetails( + "RedisCluster", + "CreateRedisCluster", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/CreateRedisCluster") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateRedisClusterRequest::builder) .basePath("/20220315") @@ -213,7 +222,10 @@ public DeleteRedisClusterResponse deleteRedisCluster(DeleteRedisClusterRequest r return clientCall(request, DeleteRedisClusterResponse::builder) .logger(LOG, "deleteRedisCluster") - .serviceDetails("RedisCluster", "DeleteRedisCluster", "") + .serviceDetails( + "RedisCluster", + "DeleteRedisCluster", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/DeleteRedisCluster") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteRedisClusterRequest::builder) .basePath("/20220315") @@ -237,7 +249,10 @@ public GetRedisClusterResponse getRedisCluster(GetRedisClusterRequest request) { return clientCall(request, GetRedisClusterResponse::builder) .logger(LOG, "getRedisCluster") - .serviceDetails("RedisCluster", "GetRedisCluster", "") + .serviceDetails( + "RedisCluster", + "GetRedisCluster", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/GetRedisCluster") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetRedisClusterRequest::builder) .basePath("/20220315") @@ -262,7 +277,10 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") - .serviceDetails("RedisCluster", "GetWorkRequest", "") + .serviceDetails( + "RedisCluster", + "GetWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20220315") @@ -282,12 +300,51 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { .callSync(); } + @Override + public ListRedisClusterNodesResponse listRedisClusterNodes( + ListRedisClusterNodesRequest request) { + + Validate.notBlank(request.getRedisClusterId(), "redisClusterId must not be blank"); + + return clientCall(request, ListRedisClusterNodesResponse::builder) + .logger(LOG, "listRedisClusterNodes") + .serviceDetails( + "RedisCluster", + "ListRedisClusterNodes", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/NodeSummary/ListRedisClusterNodes") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRedisClusterNodesRequest::builder) + .basePath("/20220315") + .appendPathParam("redisClusters") + .appendPathParam(request.getRedisClusterId()) + .appendPathParam("nodes") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.redis.model.RedisNodeCollection.class, + ListRedisClusterNodesResponse.Builder::redisNodeCollection) + .handleResponseHeaderString( + "opc-request-id", ListRedisClusterNodesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListRedisClusterNodesResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListRedisClustersResponse listRedisClusters(ListRedisClustersRequest request) { return clientCall(request, ListRedisClustersResponse::builder) .logger(LOG, "listRedisClusters") - .serviceDetails("RedisCluster", "ListRedisClusters", "") + .serviceDetails( + "RedisCluster", + "ListRedisClusters", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisClusterSummary/ListRedisClusters") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListRedisClustersRequest::builder) .basePath("/20220315") @@ -321,7 +378,10 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") - .serviceDetails("RedisCluster", "ListWorkRequestErrors", "") + .serviceDetails( + "RedisCluster", + "ListWorkRequestErrors", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20220315") @@ -352,7 +412,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") - .serviceDetails("RedisCluster", "ListWorkRequestLogs", "") + .serviceDetails( + "RedisCluster", + "ListWorkRequestLogs", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20220315") @@ -381,7 +444,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") - .serviceDetails("RedisCluster", "ListWorkRequests", "") + .serviceDetails( + "RedisCluster", + "ListWorkRequests", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/WorkRequest/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20220315") @@ -416,7 +482,10 @@ public UpdateRedisClusterResponse updateRedisCluster(UpdateRedisClusterRequest r return clientCall(request, UpdateRedisClusterResponse::builder) .logger(LOG, "updateRedisCluster") - .serviceDetails("RedisCluster", "UpdateRedisCluster", "") + .serviceDetails( + "RedisCluster", + "UpdateRedisCluster", + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/UpdateRedisCluster") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateRedisClusterRequest::builder) .basePath("/20220315") diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterPaginators.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterPaginators.java index 86fbb9f1d7c..911add119b2 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterPaginators.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterPaginators.java @@ -41,6 +41,128 @@ public RedisClusterPaginators(RedisCluster client) { this.client = client; } + /** + * Creates a new iterable which will iterate over the responses received from the + * listRedisClusterNodes operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listRedisClusterNodesResponseIterator( + final ListRedisClusterNodesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListRedisClusterNodesRequest.Builder, + ListRedisClusterNodesRequest, + ListRedisClusterNodesResponse>( + new java.util.function.Supplier() { + @Override + public ListRedisClusterNodesRequest.Builder get() { + return ListRedisClusterNodesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRedisClusterNodesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRedisClusterNodesRequest.Builder>, + ListRedisClusterNodesRequest>() { + @Override + public ListRedisClusterNodesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRedisClusterNodesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListRedisClusterNodesRequest, ListRedisClusterNodesResponse>() { + @Override + public ListRedisClusterNodesResponse apply( + ListRedisClusterNodesRequest request) { + return client.listRedisClusterNodes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.redis.model.NodeSummary} objects contained in responses from the + * listRedisClusterNodes operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.redis.model.NodeSummary} objects contained in responses received from the + * service. + */ + public Iterable listRedisClusterNodesRecordIterator( + final ListRedisClusterNodesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListRedisClusterNodesRequest.Builder, + ListRedisClusterNodesRequest, + ListRedisClusterNodesResponse, + com.oracle.bmc.redis.model.NodeSummary>( + new java.util.function.Supplier() { + @Override + public ListRedisClusterNodesRequest.Builder get() { + return ListRedisClusterNodesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRedisClusterNodesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRedisClusterNodesRequest.Builder>, + ListRedisClusterNodesRequest>() { + @Override + public ListRedisClusterNodesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRedisClusterNodesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListRedisClusterNodesRequest, ListRedisClusterNodesResponse>() { + @Override + public ListRedisClusterNodesResponse apply( + ListRedisClusterNodesRequest request) { + return client.listRedisClusterNodes(request); + } + }, + new java.util.function.Function< + ListRedisClusterNodesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListRedisClusterNodesResponse response) { + return response.getRedisNodeCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listRedisClusters operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ChangeRedisClusterCompartmentDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ChangeRedisClusterCompartmentDetails.java index 80cb1c3c490..75dcd4585cf 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ChangeRedisClusterCompartmentDetails.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ChangeRedisClusterCompartmentDetails.java @@ -34,7 +34,7 @@ public static class Builder { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the compartment into which the Redis cluster should be moved. + * of the compartment into which the cluster should be moved. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; @@ -42,7 +42,7 @@ public static class Builder { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the compartment into which the Redis cluster should be moved. + * of the compartment into which the cluster should be moved. * * @param compartmentId the value to set * @return this builder @@ -86,7 +86,7 @@ public Builder toBuilder() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the compartment into which the Redis cluster should be moved. + * the compartment into which the cluster should be moved. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; @@ -94,7 +94,7 @@ public Builder toBuilder() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the compartment into which the Redis cluster should be moved. + * the compartment into which the cluster should be moved. * * @return the value */ diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java index 5f262ec7d7f..c56d627e6d8 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java @@ -5,9 +5,9 @@ package com.oracle.bmc.redis.model; /** - * The configuration details for a new Redis cluster. A Redis cluster is a memory-based storage - * solution. For more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm).
+ * The configuration details for a new OCI Cache cluster. An OCI Cache cluster is a memory-based + * storage solution. For more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm).
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -26,6 +26,8 @@ public final class CreateRedisClusterDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "clusterMode", + "shardCount", "displayName", "compartmentId", "nodeCount", @@ -37,6 +39,8 @@ public final class CreateRedisClusterDetails "definedTags" }) public CreateRedisClusterDetails( + RedisCluster.ClusterMode clusterMode, + Integer shardCount, String displayName, String compartmentId, Integer nodeCount, @@ -47,6 +51,8 @@ public CreateRedisClusterDetails( java.util.Map freeformTags, java.util.Map> definedTags) { super(); + this.clusterMode = clusterMode; + this.shardCount = shardCount; this.displayName = displayName; this.compartmentId = compartmentId; this.nodeCount = nodeCount; @@ -60,6 +66,36 @@ public CreateRedisClusterDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** Specifies whether the cluster is sharded or non-sharded. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMode") + private RedisCluster.ClusterMode clusterMode; + + /** + * Specifies whether the cluster is sharded or non-sharded. + * + * @param clusterMode the value to set + * @return this builder + */ + public Builder clusterMode(RedisCluster.ClusterMode clusterMode) { + this.clusterMode = clusterMode; + this.__explicitlySet__.add("clusterMode"); + return this; + } + /** The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardCount") + private Integer shardCount; + + /** + * The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. + * + * @param shardCount the value to set + * @return this builder + */ + public Builder shardCount(Integer shardCount) { + this.shardCount = shardCount; + this.__explicitlySet__.add("shardCount"); + return this; + } /** * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering * confidential information. @@ -82,7 +118,7 @@ public Builder displayName(String displayName) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the compartment that contains the Redis cluster. + * of the compartment that contains the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; @@ -90,7 +126,7 @@ public Builder displayName(String displayName) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the compartment that contains the Redis cluster. + * of the compartment that contains the cluster. * * @param compartmentId the value to set * @return this builder @@ -100,12 +136,16 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** The number of nodes in the Redis cluster. */ + /** + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the + * total number of nodes when clusterMode is NONSHARDED. + */ @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") private Integer nodeCount; /** - * The number of nodes in the Redis cluster. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the + * total number of nodes when clusterMode is NONSHARDED. * * @param nodeCount the value to set * @return this builder @@ -115,12 +155,12 @@ public Builder nodeCount(Integer nodeCount) { this.__explicitlySet__.add("nodeCount"); return this; } - /** The Redis version that the cluster is running. */ + /** The OCI Cache engine version that the cluster is running. */ @com.fasterxml.jackson.annotation.JsonProperty("softwareVersion") private RedisCluster.SoftwareVersion softwareVersion; /** - * The Redis version that the cluster is running. + * The OCI Cache engine version that the cluster is running. * * @param softwareVersion the value to set * @return this builder @@ -130,12 +170,12 @@ public Builder softwareVersion(RedisCluster.SoftwareVersion softwareVersion) { this.__explicitlySet__.add("softwareVersion"); return this; } - /** The amount of memory allocated to the Redis cluster's nodes, in gigabytes. */ + /** The amount of memory allocated to the cluster's nodes, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeMemoryInGBs") private Float nodeMemoryInGBs; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. + * The amount of memory allocated to the cluster's nodes, in gigabytes. * * @param nodeMemoryInGBs the value to set * @return this builder @@ -148,7 +188,7 @@ public Builder nodeMemoryInGBs(Float nodeMemoryInGBs) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster's subnet. + * of the cluster's subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private String subnetId; @@ -156,7 +196,7 @@ public Builder nodeMemoryInGBs(Float nodeMemoryInGBs) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster's subnet. + * of the cluster's subnet. * * @param subnetId the value to set * @return this builder @@ -169,8 +209,8 @@ public Builder subnetId(String subnetId) { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). */ @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") private java.util.List nsgIds; @@ -178,8 +218,8 @@ public Builder subnetId(String subnetId) { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * * @param nsgIds the value to set * @return this builder @@ -235,6 +275,8 @@ public Builder definedTags( public CreateRedisClusterDetails build() { CreateRedisClusterDetails model = new CreateRedisClusterDetails( + this.clusterMode, + this.shardCount, this.displayName, this.compartmentId, this.nodeCount, @@ -252,6 +294,12 @@ public CreateRedisClusterDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateRedisClusterDetails model) { + if (model.wasPropertyExplicitlySet("clusterMode")) { + this.clusterMode(model.getClusterMode()); + } + if (model.wasPropertyExplicitlySet("shardCount")) { + this.shardCount(model.getShardCount()); + } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } @@ -292,6 +340,32 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** Specifies whether the cluster is sharded or non-sharded. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMode") + private final RedisCluster.ClusterMode clusterMode; + + /** + * Specifies whether the cluster is sharded or non-sharded. + * + * @return the value + */ + public RedisCluster.ClusterMode getClusterMode() { + return clusterMode; + } + + /** The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardCount") + private final Integer shardCount; + + /** + * The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. + * + * @return the value + */ + public Integer getShardCount() { + return shardCount; + } + /** * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering * confidential information. @@ -312,7 +386,7 @@ public String getDisplayName() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the compartment that contains the Redis cluster. + * the compartment that contains the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; @@ -320,7 +394,7 @@ public String getDisplayName() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the compartment that contains the Redis cluster. + * the compartment that contains the cluster. * * @return the value */ @@ -328,12 +402,16 @@ public String getCompartmentId() { return compartmentId; } - /** The number of nodes in the Redis cluster. */ + /** + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total + * number of nodes when clusterMode is NONSHARDED. + */ @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") private final Integer nodeCount; /** - * The number of nodes in the Redis cluster. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total + * number of nodes when clusterMode is NONSHARDED. * * @return the value */ @@ -341,12 +419,12 @@ public Integer getNodeCount() { return nodeCount; } - /** The Redis version that the cluster is running. */ + /** The OCI Cache engine version that the cluster is running. */ @com.fasterxml.jackson.annotation.JsonProperty("softwareVersion") private final RedisCluster.SoftwareVersion softwareVersion; /** - * The Redis version that the cluster is running. + * The OCI Cache engine version that the cluster is running. * * @return the value */ @@ -354,12 +432,12 @@ public RedisCluster.SoftwareVersion getSoftwareVersion() { return softwareVersion; } - /** The amount of memory allocated to the Redis cluster's nodes, in gigabytes. */ + /** The amount of memory allocated to the cluster's nodes, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeMemoryInGBs") private final Float nodeMemoryInGBs; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. + * The amount of memory allocated to the cluster's nodes, in gigabytes. * * @return the value */ @@ -370,7 +448,7 @@ public Float getNodeMemoryInGBs() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster's subnet. + * the cluster's subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private final String subnetId; @@ -378,7 +456,7 @@ public Float getNodeMemoryInGBs() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster's subnet. + * the cluster's subnet. * * @return the value */ @@ -389,8 +467,8 @@ public String getSubnetId() { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). */ @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") private final java.util.List nsgIds; @@ -398,8 +476,8 @@ public String getSubnetId() { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * * @return the value */ @@ -456,7 +534,9 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateRedisClusterDetails("); sb.append("super=").append(super.toString()); - sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append("clusterMode=").append(String.valueOf(this.clusterMode)); + sb.append(", shardCount=").append(String.valueOf(this.shardCount)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); sb.append(", softwareVersion=").append(String.valueOf(this.softwareVersion)); @@ -479,7 +559,9 @@ public boolean equals(Object o) { } CreateRedisClusterDetails other = (CreateRedisClusterDetails) o; - return java.util.Objects.equals(this.displayName, other.displayName) + return java.util.Objects.equals(this.clusterMode, other.clusterMode) + && java.util.Objects.equals(this.shardCount, other.shardCount) + && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.nodeCount, other.nodeCount) && java.util.Objects.equals(this.softwareVersion, other.softwareVersion) @@ -495,6 +577,8 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = (result * PRIME) + (this.clusterMode == null ? 43 : this.clusterMode.hashCode()); + result = (result * PRIME) + (this.shardCount == null ? 43 : this.shardCount.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/Node.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/Node.java index 6752aec9b4c..883203774f4 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/Node.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/Node.java @@ -5,7 +5,7 @@ package com.oracle.bmc.redis.model; /** - * The details of each node in the Redis cluster.
+ * The details of each node in the cluster.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -65,12 +65,12 @@ public Builder privateEndpointIpAddress(String privateEndpointIpAddress) { this.__explicitlySet__.add("privateEndpointIpAddress"); return this; } - /** A user-friendly name of a Redis cluster node. */ + /** A user-friendly name of a cluster node. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * A user-friendly name of a Redis cluster node. + * A user-friendly name of a cluster node. * * @param displayName the value to set * @return this builder @@ -146,12 +146,12 @@ public String getPrivateEndpointIpAddress() { return privateEndpointIpAddress; } - /** A user-friendly name of a Redis cluster node. */ + /** A user-friendly name of a cluster node. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * A user-friendly name of a Redis cluster node. + * A user-friendly name of a cluster node. * * @return the value */ diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/NodeCollection.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/NodeCollection.java index 00fad2068fb..3c3c4b78877 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/NodeCollection.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/NodeCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.redis.model; /** - * The collection of Redis cluster nodes.
+ * The collection of cluster nodes.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/NodeSummary.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/NodeSummary.java new file mode 100644 index 00000000000..dacc7ba1a63 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/NodeSummary.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * The details of each node in the cluster.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = NodeSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NodeSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "privateEndpointFqdn", + "privateEndpointIpAddress", + "displayName", + "redisClusterId", + "shardNumber" + }) + public NodeSummary( + String privateEndpointFqdn, + String privateEndpointIpAddress, + String displayName, + String redisClusterId, + Integer shardNumber) { + super(); + this.privateEndpointFqdn = privateEndpointFqdn; + this.privateEndpointIpAddress = privateEndpointIpAddress; + this.displayName = displayName; + this.redisClusterId = redisClusterId; + this.shardNumber = shardNumber; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The fully qualified domain name (FQDN) of the API endpoint to access a specific node. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointFqdn") + private String privateEndpointFqdn; + + /** + * The fully qualified domain name (FQDN) of the API endpoint to access a specific node. + * + * @param privateEndpointFqdn the value to set + * @return this builder + */ + public Builder privateEndpointFqdn(String privateEndpointFqdn) { + this.privateEndpointFqdn = privateEndpointFqdn; + this.__explicitlySet__.add("privateEndpointFqdn"); + return this; + } + /** The private IP address of the API endpoint to access a specific node. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIpAddress") + private String privateEndpointIpAddress; + + /** + * The private IP address of the API endpoint to access a specific node. + * + * @param privateEndpointIpAddress the value to set + * @return this builder + */ + public Builder privateEndpointIpAddress(String privateEndpointIpAddress) { + this.privateEndpointIpAddress = privateEndpointIpAddress; + this.__explicitlySet__.add("privateEndpointIpAddress"); + return this; + } + /** A user-friendly name of a cluster node. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name of a cluster node. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The OCID of the cluster */ + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + private String redisClusterId; + + /** + * The OCID of the cluster + * + * @param redisClusterId the value to set + * @return this builder + */ + public Builder redisClusterId(String redisClusterId) { + this.redisClusterId = redisClusterId; + this.__explicitlySet__.add("redisClusterId"); + return this; + } + /** The shard number to which the node belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardNumber") + private Integer shardNumber; + + /** + * The shard number to which the node belongs to. + * + * @param shardNumber the value to set + * @return this builder + */ + public Builder shardNumber(Integer shardNumber) { + this.shardNumber = shardNumber; + this.__explicitlySet__.add("shardNumber"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeSummary build() { + NodeSummary model = + new NodeSummary( + this.privateEndpointFqdn, + this.privateEndpointIpAddress, + this.displayName, + this.redisClusterId, + this.shardNumber); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeSummary model) { + if (model.wasPropertyExplicitlySet("privateEndpointFqdn")) { + this.privateEndpointFqdn(model.getPrivateEndpointFqdn()); + } + if (model.wasPropertyExplicitlySet("privateEndpointIpAddress")) { + this.privateEndpointIpAddress(model.getPrivateEndpointIpAddress()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("redisClusterId")) { + this.redisClusterId(model.getRedisClusterId()); + } + if (model.wasPropertyExplicitlySet("shardNumber")) { + this.shardNumber(model.getShardNumber()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The fully qualified domain name (FQDN) of the API endpoint to access a specific node. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointFqdn") + private final String privateEndpointFqdn; + + /** + * The fully qualified domain name (FQDN) of the API endpoint to access a specific node. + * + * @return the value + */ + public String getPrivateEndpointFqdn() { + return privateEndpointFqdn; + } + + /** The private IP address of the API endpoint to access a specific node. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIpAddress") + private final String privateEndpointIpAddress; + + /** + * The private IP address of the API endpoint to access a specific node. + * + * @return the value + */ + public String getPrivateEndpointIpAddress() { + return privateEndpointIpAddress; + } + + /** A user-friendly name of a cluster node. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name of a cluster node. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the cluster */ + @com.fasterxml.jackson.annotation.JsonProperty("redisClusterId") + private final String redisClusterId; + + /** + * The OCID of the cluster + * + * @return the value + */ + public String getRedisClusterId() { + return redisClusterId; + } + + /** The shard number to which the node belongs to. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardNumber") + private final Integer shardNumber; + + /** + * The shard number to which the node belongs to. + * + * @return the value + */ + public Integer getShardNumber() { + return shardNumber; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NodeSummary("); + sb.append("super=").append(super.toString()); + sb.append("privateEndpointFqdn=").append(String.valueOf(this.privateEndpointFqdn)); + sb.append(", privateEndpointIpAddress=") + .append(String.valueOf(this.privateEndpointIpAddress)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", redisClusterId=").append(String.valueOf(this.redisClusterId)); + sb.append(", shardNumber=").append(String.valueOf(this.shardNumber)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodeSummary)) { + return false; + } + + NodeSummary other = (NodeSummary) o; + return java.util.Objects.equals(this.privateEndpointFqdn, other.privateEndpointFqdn) + && java.util.Objects.equals( + this.privateEndpointIpAddress, other.privateEndpointIpAddress) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.redisClusterId, other.redisClusterId) + && java.util.Objects.equals(this.shardNumber, other.shardNumber) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.privateEndpointFqdn == null + ? 43 + : this.privateEndpointFqdn.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointIpAddress == null + ? 43 + : this.privateEndpointIpAddress.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.redisClusterId == null ? 43 : this.redisClusterId.hashCode()); + result = (result * PRIME) + (this.shardNumber == null ? 43 : this.shardNumber.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java index 4f40a3e4917..4e9c2d57130 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java @@ -5,8 +5,8 @@ package com.oracle.bmc.redis.model; /** - * A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching - * Service with Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm).
+ * An OCI Cache cluster is a memory-based storage solution. For more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm).
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -39,6 +39,8 @@ public final class RedisCluster extends com.oracle.bmc.http.client.internal.Expl "timeCreated", "timeUpdated", "nodeCollection", + "clusterMode", + "shardCount", "nsgIds", "freeformTags", "definedTags", @@ -61,6 +63,8 @@ public RedisCluster( java.util.Date timeCreated, java.util.Date timeUpdated, NodeCollection nodeCollection, + ClusterMode clusterMode, + Integer shardCount, java.util.List nsgIds, java.util.Map freeformTags, java.util.Map> definedTags, @@ -82,6 +86,8 @@ public RedisCluster( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.nodeCollection = nodeCollection; + this.clusterMode = clusterMode; + this.shardCount = shardCount; this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -93,7 +99,7 @@ public static class Builder { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; @@ -101,7 +107,7 @@ public static class Builder { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. * * @param id the value to set * @return this builder @@ -133,7 +139,7 @@ public Builder displayName(String displayName) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the compartment that contains the Redis cluster. + * of the compartment that contains the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; @@ -141,7 +147,7 @@ public Builder displayName(String displayName) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the compartment that contains the Redis cluster. + * of the compartment that contains the cluster. * * @param compartmentId the value to set * @return this builder @@ -151,12 +157,12 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** The current state of the Redis cluster. */ + /** The current state of the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The current state of the Redis cluster. + * The current state of the cluster. * * @param lifecycleState the value to set * @return this builder @@ -185,12 +191,16 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } - /** The number of nodes in the Redis cluster. */ + /** + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the + * total number of nodes when clusterMode is NONSHARDED. + */ @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") private Integer nodeCount; /** - * The number of nodes in the Redis cluster. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the + * total number of nodes when clusterMode is NONSHARDED. * * @param nodeCount the value to set * @return this builder @@ -200,12 +210,12 @@ public Builder nodeCount(Integer nodeCount) { this.__explicitlySet__.add("nodeCount"); return this; } - /** The amount of memory allocated to the Redis cluster's nodes, in gigabytes. */ + /** The amount of memory allocated to the cluster's nodes, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeMemoryInGBs") private Float nodeMemoryInGBs; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. + * The amount of memory allocated to the cluster's nodes, in gigabytes. * * @param nodeMemoryInGBs the value to set * @return this builder @@ -216,15 +226,15 @@ public Builder nodeMemoryInGBs(Float nodeMemoryInGBs) { return this; } /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's - * primary node. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary + * node. */ @com.fasterxml.jackson.annotation.JsonProperty("primaryFqdn") private String primaryFqdn; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's - * primary node. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary + * node. * * @param primaryFqdn the value to set * @return this builder @@ -234,12 +244,12 @@ public Builder primaryFqdn(String primaryFqdn) { this.__explicitlySet__.add("primaryFqdn"); return this; } - /** The private IP address of the API endpoint for the Redis cluster's primary node. */ + /** The private IP address of the API endpoint for the cluster's primary node. */ @com.fasterxml.jackson.annotation.JsonProperty("primaryEndpointIpAddress") private String primaryEndpointIpAddress; /** - * The private IP address of the API endpoint for the Redis cluster's primary node. + * The private IP address of the API endpoint for the cluster's primary node. * * @param primaryEndpointIpAddress the value to set * @return this builder @@ -250,15 +260,15 @@ public Builder primaryEndpointIpAddress(String primaryEndpointIpAddress) { return this; } /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's - * replica nodes. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica + * nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("replicasFqdn") private String replicasFqdn; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's - * replica nodes. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica + * nodes. * * @param replicasFqdn the value to set * @return this builder @@ -268,12 +278,12 @@ public Builder replicasFqdn(String replicasFqdn) { this.__explicitlySet__.add("replicasFqdn"); return this; } - /** The private IP address of the API endpoint for the Redis cluster's replica nodes. */ + /** The private IP address of the API endpoint for the cluster's replica nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("replicasEndpointIpAddress") private String replicasEndpointIpAddress; /** - * The private IP address of the API endpoint for the Redis cluster's replica nodes. + * The private IP address of the API endpoint for the cluster's replica nodes. * * @param replicasEndpointIpAddress the value to set * @return this builder @@ -283,12 +293,12 @@ public Builder replicasEndpointIpAddress(String replicasEndpointIpAddress) { this.__explicitlySet__.add("replicasEndpointIpAddress"); return this; } - /** The Redis version that the cluster is running. */ + /** The OCI Cache engine version that the cluster is running. */ @com.fasterxml.jackson.annotation.JsonProperty("softwareVersion") private SoftwareVersion softwareVersion; /** - * The Redis version that the cluster is running. + * The OCI Cache engine version that the cluster is running. * * @param softwareVersion the value to set * @return this builder @@ -301,7 +311,7 @@ public Builder softwareVersion(SoftwareVersion softwareVersion) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster's subnet. + * of the cluster's subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private String subnetId; @@ -309,7 +319,7 @@ public Builder softwareVersion(SoftwareVersion softwareVersion) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster's subnet. + * of the cluster's subnet. * * @param subnetId the value to set * @return this builder @@ -320,14 +330,14 @@ public Builder subnetId(String subnetId) { return this; } /** - * The date and time the Redis cluster was created. An + * The date and time the cluster was created. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The date and time the Redis cluster was created. An + * The date and time the cluster was created. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * * @param timeCreated the value to set @@ -339,14 +349,14 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The date and time the Redis cluster was updated. An + * The date and time the cluster was updated. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private java.util.Date timeUpdated; /** - * The date and time the Redis cluster was updated. An + * The date and time the cluster was updated. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * * @param timeUpdated the value to set @@ -366,11 +376,43 @@ public Builder nodeCollection(NodeCollection nodeCollection) { this.__explicitlySet__.add("nodeCollection"); return this; } + /** Specifies whether the cluster is sharded or non-sharded. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMode") + private ClusterMode clusterMode; + + /** + * Specifies whether the cluster is sharded or non-sharded. + * + * @param clusterMode the value to set + * @return this builder + */ + public Builder clusterMode(ClusterMode clusterMode) { + this.clusterMode = clusterMode; + this.__explicitlySet__.add("clusterMode"); + return this; + } + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shardCount") + private Integer shardCount; + + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. + * + * @param shardCount the value to set + * @return this builder + */ + public Builder shardCount(Integer shardCount) { + this.shardCount = shardCount; + this.__explicitlySet__.add("shardCount"); + return this; + } /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). */ @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") private java.util.List nsgIds; @@ -378,8 +420,8 @@ public Builder nodeCollection(NodeCollection nodeCollection) { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * * @param nsgIds the value to set * @return this builder @@ -470,6 +512,8 @@ public RedisCluster build() { this.timeCreated, this.timeUpdated, this.nodeCollection, + this.clusterMode, + this.shardCount, this.nsgIds, this.freeformTags, this.definedTags, @@ -530,6 +574,12 @@ public Builder copy(RedisCluster model) { if (model.wasPropertyExplicitlySet("nodeCollection")) { this.nodeCollection(model.getNodeCollection()); } + if (model.wasPropertyExplicitlySet("clusterMode")) { + this.clusterMode(model.getClusterMode()); + } + if (model.wasPropertyExplicitlySet("shardCount")) { + this.shardCount(model.getShardCount()); + } if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } @@ -558,7 +608,7 @@ public Builder toBuilder() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; @@ -566,7 +616,7 @@ public Builder toBuilder() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. * * @return the value */ @@ -594,7 +644,7 @@ public String getDisplayName() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the compartment that contains the Redis cluster. + * the compartment that contains the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; @@ -602,7 +652,7 @@ public String getDisplayName() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the compartment that contains the Redis cluster. + * the compartment that contains the cluster. * * @return the value */ @@ -610,7 +660,7 @@ public String getCompartmentId() { return compartmentId; } - /** The current state of the Redis cluster. */ + /** The current state of the cluster. */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Creating("CREATING"), Updating("UPDATING"), @@ -660,12 +710,12 @@ public static LifecycleState create(String key) { return UnknownEnumValue; } }; - /** The current state of the Redis cluster. */ + /** The current state of the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The current state of the Redis cluster. + * The current state of the cluster. * * @return the value */ @@ -690,12 +740,16 @@ public String getLifecycleDetails() { return lifecycleDetails; } - /** The number of nodes in the Redis cluster. */ + /** + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total + * number of nodes when clusterMode is NONSHARDED. + */ @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") private final Integer nodeCount; /** - * The number of nodes in the Redis cluster. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total + * number of nodes when clusterMode is NONSHARDED. * * @return the value */ @@ -703,12 +757,12 @@ public Integer getNodeCount() { return nodeCount; } - /** The amount of memory allocated to the Redis cluster's nodes, in gigabytes. */ + /** The amount of memory allocated to the cluster's nodes, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeMemoryInGBs") private final Float nodeMemoryInGBs; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. + * The amount of memory allocated to the cluster's nodes, in gigabytes. * * @return the value */ @@ -717,15 +771,13 @@ public Float getNodeMemoryInGBs() { } /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary - * node. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node. */ @com.fasterxml.jackson.annotation.JsonProperty("primaryFqdn") private final String primaryFqdn; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary - * node. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node. * * @return the value */ @@ -733,12 +785,12 @@ public String getPrimaryFqdn() { return primaryFqdn; } - /** The private IP address of the API endpoint for the Redis cluster's primary node. */ + /** The private IP address of the API endpoint for the cluster's primary node. */ @com.fasterxml.jackson.annotation.JsonProperty("primaryEndpointIpAddress") private final String primaryEndpointIpAddress; /** - * The private IP address of the API endpoint for the Redis cluster's primary node. + * The private IP address of the API endpoint for the cluster's primary node. * * @return the value */ @@ -747,15 +799,13 @@ public String getPrimaryEndpointIpAddress() { } /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica - * nodes. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("replicasFqdn") private final String replicasFqdn; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica - * nodes. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes. * * @return the value */ @@ -763,12 +813,12 @@ public String getReplicasFqdn() { return replicasFqdn; } - /** The private IP address of the API endpoint for the Redis cluster's replica nodes. */ + /** The private IP address of the API endpoint for the cluster's replica nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("replicasEndpointIpAddress") private final String replicasEndpointIpAddress; /** - * The private IP address of the API endpoint for the Redis cluster's replica nodes. + * The private IP address of the API endpoint for the cluster's replica nodes. * * @return the value */ @@ -776,7 +826,7 @@ public String getReplicasEndpointIpAddress() { return replicasEndpointIpAddress; } - /** The Redis version that the cluster is running. */ + /** The OCI Cache engine version that the cluster is running. */ public enum SoftwareVersion implements com.oracle.bmc.http.internal.BmcEnum { V705("V7_0_5"), Redis70("REDIS_7_0"), @@ -822,12 +872,12 @@ public static SoftwareVersion create(String key) { return UnknownEnumValue; } }; - /** The Redis version that the cluster is running. */ + /** The OCI Cache engine version that the cluster is running. */ @com.fasterxml.jackson.annotation.JsonProperty("softwareVersion") private final SoftwareVersion softwareVersion; /** - * The Redis version that the cluster is running. + * The OCI Cache engine version that the cluster is running. * * @return the value */ @@ -838,7 +888,7 @@ public SoftwareVersion getSoftwareVersion() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster's subnet. + * the cluster's subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private final String subnetId; @@ -846,7 +896,7 @@ public SoftwareVersion getSoftwareVersion() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster's subnet. + * the cluster's subnet. * * @return the value */ @@ -855,14 +905,14 @@ public String getSubnetId() { } /** - * The date and time the Redis cluster was created. An + * The date and time the cluster was created. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The date and time the Redis cluster was created. An + * The date and time the cluster was created. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * * @return the value @@ -872,14 +922,14 @@ public java.util.Date getTimeCreated() { } /** - * The date and time the Redis cluster was updated. An + * The date and time the cluster was updated. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The date and time the Redis cluster was updated. An + * The date and time the cluster was updated. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * * @return the value @@ -895,11 +945,83 @@ public NodeCollection getNodeCollection() { return nodeCollection; } + /** Specifies whether the cluster is sharded or non-sharded. */ + public enum ClusterMode implements com.oracle.bmc.http.internal.BmcEnum { + Sharded("SHARDED"), + Nonsharded("NONSHARDED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ClusterMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ClusterMode v : ClusterMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ClusterMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ClusterMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ClusterMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Specifies whether the cluster is sharded or non-sharded. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMode") + private final ClusterMode clusterMode; + + /** + * Specifies whether the cluster is sharded or non-sharded. + * + * @return the value + */ + public ClusterMode getClusterMode() { + return clusterMode; + } + + /** The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardCount") + private final Integer shardCount; + + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. + * + * @return the value + */ + public Integer getShardCount() { + return shardCount; + } + /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). */ @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") private final java.util.List nsgIds; @@ -907,8 +1029,8 @@ public NodeCollection getNodeCollection() { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * * @return the value */ @@ -1000,6 +1122,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", nodeCollection=").append(String.valueOf(this.nodeCollection)); + sb.append(", clusterMode=").append(String.valueOf(this.clusterMode)); + sb.append(", shardCount=").append(String.valueOf(this.shardCount)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -1036,6 +1160,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.nodeCollection, other.nodeCollection) + && java.util.Objects.equals(this.clusterMode, other.clusterMode) + && java.util.Objects.equals(this.shardCount, other.shardCount) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -1083,6 +1209,8 @@ public int hashCode() { result = (result * PRIME) + (this.nodeCollection == null ? 43 : this.nodeCollection.hashCode()); + result = (result * PRIME) + (this.clusterMode == null ? 43 : this.clusterMode.hashCode()); + result = (result * PRIME) + (this.shardCount == null ? 43 : this.shardCount.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterCollection.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterCollection.java index ccfe0cc2302..790c3adf033 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterCollection.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterCollection.java @@ -5,9 +5,9 @@ package com.oracle.bmc.redis.model; /** - * A list of Redis clusters that match filter criteria, if any. A Redis cluster is a memory-based - * storage solution. For more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm).
+ * A list of clusters that match filter criteria, if any. A cluster is a memory-based storage + * solution. For more information, see [OCI + * Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm).
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -33,12 +33,12 @@ public RedisClusterCollection(java.util.List items) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The list of Redis clusters. */ + /** The list of clusters. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private java.util.List items; /** - * The list of Redis clusters. + * The list of clusters. * * @param items the value to set * @return this builder @@ -78,12 +78,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The list of Redis clusters. */ + /** The list of clusters. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private final java.util.List items; /** - * The list of Redis clusters. + * The list of clusters. * * @return the value */ diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java index 381bcb071a0..d58e53ff213 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java @@ -5,9 +5,8 @@ package com.oracle.bmc.redis.model; /** - * Summary of information about a Redis cluster. A Redis cluster is a memory-based storage solution. - * For more information, see [OCI Caching Service with - * Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm).
+ * Summary of information about a cluster. A cluster is a memory-based storage solution. For more + * information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm).
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -41,6 +40,8 @@ public final class RedisClusterSummary "subnetId", "timeCreated", "timeUpdated", + "clusterMode", + "shardCount", "nsgIds", "freeformTags", "definedTags", @@ -62,6 +63,8 @@ public RedisClusterSummary( String subnetId, java.util.Date timeCreated, java.util.Date timeUpdated, + RedisCluster.ClusterMode clusterMode, + Integer shardCount, java.util.List nsgIds, java.util.Map freeformTags, java.util.Map> definedTags, @@ -82,6 +85,8 @@ public RedisClusterSummary( this.subnetId = subnetId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; + this.clusterMode = clusterMode; + this.shardCount = shardCount; this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -93,7 +98,7 @@ public static class Builder { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; @@ -101,7 +106,7 @@ public static class Builder { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. * * @param id the value to set * @return this builder @@ -133,7 +138,7 @@ public Builder displayName(String displayName) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the compartment that contains the Redis cluster. + * of the compartment that contains the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; @@ -141,7 +146,7 @@ public Builder displayName(String displayName) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the compartment that contains the Redis cluster. + * of the compartment that contains the cluster. * * @param compartmentId the value to set * @return this builder @@ -151,12 +156,12 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** The current state of the Redis cluster. */ + /** The current state of the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private RedisCluster.LifecycleState lifecycleState; /** - * The current state of the Redis cluster. + * The current state of the cluster. * * @param lifecycleState the value to set * @return this builder @@ -185,12 +190,16 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } - /** The number of nodes in the Redis cluster. */ + /** + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the + * total number of nodes when clusterMode is NONSHARDED. + */ @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") private Integer nodeCount; /** - * The number of nodes in the Redis cluster. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the + * total number of nodes when clusterMode is NONSHARDED. * * @param nodeCount the value to set * @return this builder @@ -200,12 +209,12 @@ public Builder nodeCount(Integer nodeCount) { this.__explicitlySet__.add("nodeCount"); return this; } - /** The amount of memory allocated to the Redis cluster's nodes, in gigabytes. */ + /** The amount of memory allocated to the cluster's nodes, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeMemoryInGBs") private Float nodeMemoryInGBs; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. + * The amount of memory allocated to the cluster's nodes, in gigabytes. * * @param nodeMemoryInGBs the value to set * @return this builder @@ -216,15 +225,15 @@ public Builder nodeMemoryInGBs(Float nodeMemoryInGBs) { return this; } /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's - * primary node. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary + * node. */ @com.fasterxml.jackson.annotation.JsonProperty("primaryFqdn") private String primaryFqdn; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's - * primary node. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary + * node. * * @param primaryFqdn the value to set * @return this builder @@ -234,12 +243,12 @@ public Builder primaryFqdn(String primaryFqdn) { this.__explicitlySet__.add("primaryFqdn"); return this; } - /** The private IP address of the API endpoint for the Redis cluster's primary node. */ + /** The private IP address of the API endpoint for the cluster's primary node. */ @com.fasterxml.jackson.annotation.JsonProperty("primaryEndpointIpAddress") private String primaryEndpointIpAddress; /** - * The private IP address of the API endpoint for the Redis cluster's primary node. + * The private IP address of the API endpoint for the cluster's primary node. * * @param primaryEndpointIpAddress the value to set * @return this builder @@ -250,15 +259,15 @@ public Builder primaryEndpointIpAddress(String primaryEndpointIpAddress) { return this; } /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's - * replica nodes. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica + * nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("replicasFqdn") private String replicasFqdn; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's - * replica nodes. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica + * nodes. * * @param replicasFqdn the value to set * @return this builder @@ -268,12 +277,12 @@ public Builder replicasFqdn(String replicasFqdn) { this.__explicitlySet__.add("replicasFqdn"); return this; } - /** The private IP address of the API endpoint for the Redis cluster's replica nodes. */ + /** The private IP address of the API endpoint for the cluster's replica nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("replicasEndpointIpAddress") private String replicasEndpointIpAddress; /** - * The private IP address of the API endpoint for the Redis cluster's replica nodes. + * The private IP address of the API endpoint for the cluster's replica nodes. * * @param replicasEndpointIpAddress the value to set * @return this builder @@ -283,12 +292,12 @@ public Builder replicasEndpointIpAddress(String replicasEndpointIpAddress) { this.__explicitlySet__.add("replicasEndpointIpAddress"); return this; } - /** The Redis version that the cluster is running. */ + /** The OCI Cache engine version that the cluster is running. */ @com.fasterxml.jackson.annotation.JsonProperty("softwareVersion") private RedisCluster.SoftwareVersion softwareVersion; /** - * The Redis version that the cluster is running. + * The OCI Cache engine version that the cluster is running. * * @param softwareVersion the value to set * @return this builder @@ -301,7 +310,7 @@ public Builder softwareVersion(RedisCluster.SoftwareVersion softwareVersion) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster's subnet. + * of the cluster's subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private String subnetId; @@ -309,7 +318,7 @@ public Builder softwareVersion(RedisCluster.SoftwareVersion softwareVersion) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster's subnet. + * of the cluster's subnet. * * @param subnetId the value to set * @return this builder @@ -320,14 +329,14 @@ public Builder subnetId(String subnetId) { return this; } /** - * The date and time the Redis cluster was created. An + * The date and time the cluster was created. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The date and time the Redis cluster was created. An + * The date and time the cluster was created. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * * @param timeCreated the value to set @@ -339,14 +348,14 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The date and time the Redis cluster was updated. An + * The date and time the cluster was updated. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private java.util.Date timeUpdated; /** - * The date and time the Redis cluster was updated. An + * The date and time the cluster was updated. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * * @param timeUpdated the value to set @@ -357,11 +366,43 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } + /** Specifies whether the cluster is sharded or non-sharded. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMode") + private RedisCluster.ClusterMode clusterMode; + + /** + * Specifies whether the cluster is sharded or non-sharded. + * + * @param clusterMode the value to set + * @return this builder + */ + public Builder clusterMode(RedisCluster.ClusterMode clusterMode) { + this.clusterMode = clusterMode; + this.__explicitlySet__.add("clusterMode"); + return this; + } + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shardCount") + private Integer shardCount; + + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. + * + * @param shardCount the value to set + * @return this builder + */ + public Builder shardCount(Integer shardCount) { + this.shardCount = shardCount; + this.__explicitlySet__.add("shardCount"); + return this; + } /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). */ @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") private java.util.List nsgIds; @@ -369,8 +410,8 @@ public Builder timeUpdated(java.util.Date timeUpdated) { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * * @param nsgIds the value to set * @return this builder @@ -460,6 +501,8 @@ public RedisClusterSummary build() { this.subnetId, this.timeCreated, this.timeUpdated, + this.clusterMode, + this.shardCount, this.nsgIds, this.freeformTags, this.definedTags, @@ -517,6 +560,12 @@ public Builder copy(RedisClusterSummary model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("clusterMode")) { + this.clusterMode(model.getClusterMode()); + } + if (model.wasPropertyExplicitlySet("shardCount")) { + this.shardCount(model.getShardCount()); + } if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } @@ -545,7 +594,7 @@ public Builder toBuilder() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; @@ -553,7 +602,7 @@ public Builder toBuilder() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. * * @return the value */ @@ -581,7 +630,7 @@ public String getDisplayName() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the compartment that contains the Redis cluster. + * the compartment that contains the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; @@ -589,7 +638,7 @@ public String getDisplayName() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the compartment that contains the Redis cluster. + * the compartment that contains the cluster. * * @return the value */ @@ -597,12 +646,12 @@ public String getCompartmentId() { return compartmentId; } - /** The current state of the Redis cluster. */ + /** The current state of the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final RedisCluster.LifecycleState lifecycleState; /** - * The current state of the Redis cluster. + * The current state of the cluster. * * @return the value */ @@ -627,12 +676,16 @@ public String getLifecycleDetails() { return lifecycleDetails; } - /** The number of nodes in the Redis cluster. */ + /** + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total + * number of nodes when clusterMode is NONSHARDED. + */ @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") private final Integer nodeCount; /** - * The number of nodes in the Redis cluster. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total + * number of nodes when clusterMode is NONSHARDED. * * @return the value */ @@ -640,12 +693,12 @@ public Integer getNodeCount() { return nodeCount; } - /** The amount of memory allocated to the Redis cluster's nodes, in gigabytes. */ + /** The amount of memory allocated to the cluster's nodes, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeMemoryInGBs") private final Float nodeMemoryInGBs; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. + * The amount of memory allocated to the cluster's nodes, in gigabytes. * * @return the value */ @@ -654,15 +707,13 @@ public Float getNodeMemoryInGBs() { } /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary - * node. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node. */ @com.fasterxml.jackson.annotation.JsonProperty("primaryFqdn") private final String primaryFqdn; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary - * node. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node. * * @return the value */ @@ -670,12 +721,12 @@ public String getPrimaryFqdn() { return primaryFqdn; } - /** The private IP address of the API endpoint for the Redis cluster's primary node. */ + /** The private IP address of the API endpoint for the cluster's primary node. */ @com.fasterxml.jackson.annotation.JsonProperty("primaryEndpointIpAddress") private final String primaryEndpointIpAddress; /** - * The private IP address of the API endpoint for the Redis cluster's primary node. + * The private IP address of the API endpoint for the cluster's primary node. * * @return the value */ @@ -684,15 +735,13 @@ public String getPrimaryEndpointIpAddress() { } /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica - * nodes. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("replicasFqdn") private final String replicasFqdn; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica - * nodes. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes. * * @return the value */ @@ -700,12 +749,12 @@ public String getReplicasFqdn() { return replicasFqdn; } - /** The private IP address of the API endpoint for the Redis cluster's replica nodes. */ + /** The private IP address of the API endpoint for the cluster's replica nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("replicasEndpointIpAddress") private final String replicasEndpointIpAddress; /** - * The private IP address of the API endpoint for the Redis cluster's replica nodes. + * The private IP address of the API endpoint for the cluster's replica nodes. * * @return the value */ @@ -713,12 +762,12 @@ public String getReplicasEndpointIpAddress() { return replicasEndpointIpAddress; } - /** The Redis version that the cluster is running. */ + /** The OCI Cache engine version that the cluster is running. */ @com.fasterxml.jackson.annotation.JsonProperty("softwareVersion") private final RedisCluster.SoftwareVersion softwareVersion; /** - * The Redis version that the cluster is running. + * The OCI Cache engine version that the cluster is running. * * @return the value */ @@ -729,7 +778,7 @@ public RedisCluster.SoftwareVersion getSoftwareVersion() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster's subnet. + * the cluster's subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private final String subnetId; @@ -737,7 +786,7 @@ public RedisCluster.SoftwareVersion getSoftwareVersion() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster's subnet. + * the cluster's subnet. * * @return the value */ @@ -746,14 +795,14 @@ public String getSubnetId() { } /** - * The date and time the Redis cluster was created. An + * The date and time the cluster was created. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The date and time the Redis cluster was created. An + * The date and time the cluster was created. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * * @return the value @@ -763,14 +812,14 @@ public java.util.Date getTimeCreated() { } /** - * The date and time the Redis cluster was updated. An + * The date and time the cluster was updated. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The date and time the Redis cluster was updated. An + * The date and time the cluster was updated. An * [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. * * @return the value @@ -779,11 +828,37 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } + /** Specifies whether the cluster is sharded or non-sharded. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterMode") + private final RedisCluster.ClusterMode clusterMode; + + /** + * Specifies whether the cluster is sharded or non-sharded. + * + * @return the value + */ + public RedisCluster.ClusterMode getClusterMode() { + return clusterMode; + } + + /** The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardCount") + private final Integer shardCount; + + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. + * + * @return the value + */ + public Integer getShardCount() { + return shardCount; + } + /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). */ @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") private final java.util.List nsgIds; @@ -791,8 +866,8 @@ public java.util.Date getTimeUpdated() { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * * @return the value */ @@ -883,6 +958,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", clusterMode=").append(String.valueOf(this.clusterMode)); + sb.append(", shardCount=").append(String.valueOf(this.shardCount)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -918,6 +995,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.clusterMode, other.clusterMode) + && java.util.Objects.equals(this.shardCount, other.shardCount) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -962,6 +1041,8 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.clusterMode == null ? 43 : this.clusterMode.hashCode()); + result = (result * PRIME) + (this.shardCount == null ? 43 : this.shardCount.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisNodeCollection.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisNodeCollection.java new file mode 100644 index 00000000000..2c81777d0c5 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisNodeCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * A list of nodes in a cluster that match filter criteria, if any.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RedisNodeCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RedisNodeCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public RedisNodeCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The list of nodes in a cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of nodes in a cluster. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RedisNodeCollection build() { + RedisNodeCollection model = new RedisNodeCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RedisNodeCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The list of nodes in a cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of nodes in a cluster. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RedisNodeCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RedisNodeCollection)) { + return false; + } + + RedisNodeCollection other = (RedisNodeCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/UpdateRedisClusterDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/UpdateRedisClusterDetails.java index 6608470834d..7ad554e84e3 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/UpdateRedisClusterDetails.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/UpdateRedisClusterDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.redis.model; /** - * The configuration to update for an existing Redis cluster.
+ * The configuration to update for an existing cluster.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -24,6 +24,7 @@ public final class UpdateRedisClusterDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "shardCount", "displayName", "nodeCount", "nodeMemoryInGBs", @@ -32,6 +33,7 @@ public final class UpdateRedisClusterDetails "definedTags" }) public UpdateRedisClusterDetails( + Integer shardCount, String displayName, Integer nodeCount, Float nodeMemoryInGBs, @@ -39,6 +41,7 @@ public UpdateRedisClusterDetails( java.util.Map freeformTags, java.util.Map> definedTags) { super(); + this.shardCount = shardCount; this.displayName = displayName; this.nodeCount = nodeCount; this.nodeMemoryInGBs = nodeMemoryInGBs; @@ -49,6 +52,21 @@ public UpdateRedisClusterDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardCount") + private Integer shardCount; + + /** + * The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. + * + * @param shardCount the value to set + * @return this builder + */ + public Builder shardCount(Integer shardCount) { + this.shardCount = shardCount; + this.__explicitlySet__.add("shardCount"); + return this; + } /** * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering * confidential information. @@ -68,12 +86,16 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** The number of nodes in the Redis cluster. */ + /** + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the + * total number of nodes when clusterMode is NONSHARDED. + */ @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") private Integer nodeCount; /** - * The number of nodes in the Redis cluster. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the + * total number of nodes when clusterMode is NONSHARDED. * * @param nodeCount the value to set * @return this builder @@ -83,12 +105,12 @@ public Builder nodeCount(Integer nodeCount) { this.__explicitlySet__.add("nodeCount"); return this; } - /** The amount of memory allocated to the Redis cluster's nodes, in gigabytes. */ + /** The amount of memory allocated to the cluster's nodes, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeMemoryInGBs") private Float nodeMemoryInGBs; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. + * The amount of memory allocated to the cluster's nodes, in gigabytes. * * @param nodeMemoryInGBs the value to set * @return this builder @@ -101,8 +123,8 @@ public Builder nodeMemoryInGBs(Float nodeMemoryInGBs) { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). */ @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") private java.util.List nsgIds; @@ -110,8 +132,8 @@ public Builder nodeMemoryInGBs(Float nodeMemoryInGBs) { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * * @param nsgIds the value to set * @return this builder @@ -167,6 +189,7 @@ public Builder definedTags( public UpdateRedisClusterDetails build() { UpdateRedisClusterDetails model = new UpdateRedisClusterDetails( + this.shardCount, this.displayName, this.nodeCount, this.nodeMemoryInGBs, @@ -181,6 +204,9 @@ public UpdateRedisClusterDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(UpdateRedisClusterDetails model) { + if (model.wasPropertyExplicitlySet("shardCount")) { + this.shardCount(model.getShardCount()); + } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } @@ -212,6 +238,19 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. */ + @com.fasterxml.jackson.annotation.JsonProperty("shardCount") + private final Integer shardCount; + + /** + * The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. + * + * @return the value + */ + public Integer getShardCount() { + return shardCount; + } + /** * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering * confidential information. @@ -229,12 +268,16 @@ public String getDisplayName() { return displayName; } - /** The number of nodes in the Redis cluster. */ + /** + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total + * number of nodes when clusterMode is NONSHARDED. + */ @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") private final Integer nodeCount; /** - * The number of nodes in the Redis cluster. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total + * number of nodes when clusterMode is NONSHARDED. * * @return the value */ @@ -242,12 +285,12 @@ public Integer getNodeCount() { return nodeCount; } - /** The amount of memory allocated to the Redis cluster's nodes, in gigabytes. */ + /** The amount of memory allocated to the cluster's nodes, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeMemoryInGBs") private final Float nodeMemoryInGBs; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. + * The amount of memory allocated to the cluster's nodes, in gigabytes. * * @return the value */ @@ -258,8 +301,8 @@ public Float getNodeMemoryInGBs() { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). */ @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") private final java.util.List nsgIds; @@ -267,8 +310,8 @@ public Float getNodeMemoryInGBs() { /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * associated with this cluster. For more information, see [Using an NSG for Redis - * Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * associated with this cluster. For more information, see [Using an NSG for + * Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * * @return the value */ @@ -325,7 +368,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateRedisClusterDetails("); sb.append("super=").append(super.toString()); - sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append("shardCount=").append(String.valueOf(this.shardCount)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); sb.append(", nodeMemoryInGBs=").append(String.valueOf(this.nodeMemoryInGBs)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); @@ -345,7 +389,8 @@ public boolean equals(Object o) { } UpdateRedisClusterDetails other = (UpdateRedisClusterDetails) o; - return java.util.Objects.equals(this.displayName, other.displayName) + return java.util.Objects.equals(this.shardCount, other.shardCount) + && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.nodeCount, other.nodeCount) && java.util.Objects.equals(this.nodeMemoryInGBs, other.nodeMemoryInGBs) && java.util.Objects.equals(this.nsgIds, other.nsgIds) @@ -358,6 +403,7 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = (result * PRIME) + (this.shardCount == null ? 43 : this.shardCount.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.nodeCount == null ? 43 : this.nodeCount.hashCode()); result = diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ChangeRedisClusterCompartmentRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ChangeRedisClusterCompartmentRequest.java index 56088d329c7..15d544233f9 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ChangeRedisClusterCompartmentRequest.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ChangeRedisClusterCompartmentRequest.java @@ -19,14 +19,14 @@ public class ChangeRedisClusterCompartmentRequest /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. */ private String redisClusterId; /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. */ public String getRedisClusterId() { return redisClusterId; @@ -105,14 +105,14 @@ public static class Builder /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. */ private String redisClusterId = null; /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. * * @param redisClusterId the value to set * @return this builder instance diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/CreateRedisClusterRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/CreateRedisClusterRequest.java index e6b255ac7cd..965ac5e2885 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/CreateRedisClusterRequest.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/CreateRedisClusterRequest.java @@ -15,10 +15,10 @@ public class CreateRedisClusterRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.redis.model.CreateRedisClusterDetails> { - /** Details for the new RedisCluster. */ + /** Details for the new cluster. */ private com.oracle.bmc.redis.model.CreateRedisClusterDetails createRedisClusterDetails; - /** Details for the new RedisCluster. */ + /** Details for the new cluster. */ public com.oracle.bmc.redis.model.CreateRedisClusterDetails getCreateRedisClusterDetails() { return createRedisClusterDetails; } @@ -67,12 +67,12 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** Details for the new RedisCluster. */ + /** Details for the new cluster. */ private com.oracle.bmc.redis.model.CreateRedisClusterDetails createRedisClusterDetails = null; /** - * Details for the new RedisCluster. + * Details for the new cluster. * * @param createRedisClusterDetails the value to set * @return this builder instance diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/DeleteRedisClusterRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/DeleteRedisClusterRequest.java index 80f572312b2..8753162cd8e 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/DeleteRedisClusterRequest.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/DeleteRedisClusterRequest.java @@ -16,14 +16,14 @@ public class DeleteRedisClusterRequest extends com.oracle.bmc.requests.BmcReques /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. */ private String redisClusterId; /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. */ public String getRedisClusterId() { return redisClusterId; @@ -62,14 +62,14 @@ public static class Builder /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. */ private String redisClusterId = null; /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. * * @param redisClusterId the value to set * @return this builder instance diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/GetRedisClusterRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/GetRedisClusterRequest.java index 9938616d8bd..cffe21d4e55 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/GetRedisClusterRequest.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/GetRedisClusterRequest.java @@ -16,14 +16,14 @@ public class GetRedisClusterRequest extends com.oracle.bmc.requests.BmcRequestExample: Click here to see how to use + * ListRedisClusterNodesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ListRedisClusterNodesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of + * the cluster. + */ + private String redisClusterId; + + /** + * The + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of + * the cluster. + */ + public String getRedisClusterId() { + return redisClusterId; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.redis.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.redis.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListRedisClusterNodesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) + * of the cluster. + */ + private String redisClusterId = null; + + /** + * The + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) + * of the cluster. + * + * @param redisClusterId the value to set + * @return this builder instance + */ + public Builder redisClusterId(String redisClusterId) { + this.redisClusterId = redisClusterId; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.redis.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either 'ASC' or 'DESC'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.redis.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListRedisClusterNodesRequest o) { + redisClusterId(o.getRedisClusterId()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListRedisClusterNodesRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListRedisClusterNodesRequest + */ + public ListRedisClusterNodesRequest build() { + ListRedisClusterNodesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListRedisClusterNodesRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListRedisClusterNodesRequest + */ + public ListRedisClusterNodesRequest buildWithoutInvocationCallback() { + ListRedisClusterNodesRequest request = new ListRedisClusterNodesRequest(); + request.redisClusterId = redisClusterId; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListRedisClusterNodesRequest(redisClusterId, displayName, limit, page, sortOrder, + // sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .redisClusterId(redisClusterId) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",redisClusterId=").append(String.valueOf(this.redisClusterId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRedisClusterNodesRequest)) { + return false; + } + + ListRedisClusterNodesRequest other = (ListRedisClusterNodesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.redisClusterId, other.redisClusterId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.redisClusterId == null ? 43 : this.redisClusterId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ListRedisClustersRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ListRedisClustersRequest.java index 05bda1a3fe2..eb01a46dadb 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ListRedisClustersRequest.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ListRedisClustersRequest.java @@ -37,14 +37,14 @@ public String getDisplayName() { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. */ private String id; /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. */ public String getId() { return id; @@ -188,14 +188,14 @@ public Builder displayName(String displayName) { /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. */ private String id = null; /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. * * @param id the value to set * @return this builder instance diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/UpdateRedisClusterRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/UpdateRedisClusterRequest.java index 0880745671b..fbf254a14cd 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/UpdateRedisClusterRequest.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/UpdateRedisClusterRequest.java @@ -18,14 +18,14 @@ public class UpdateRedisClusterRequest /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. */ private String redisClusterId; /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of - * the Redis cluster. + * the cluster. */ public String getRedisClusterId() { return redisClusterId; @@ -83,14 +83,14 @@ public static class Builder /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. */ private String redisClusterId = null; /** * The * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) - * of the Redis cluster. + * of the cluster. * * @param redisClusterId the value to set * @return this builder instance diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ListRedisClusterNodesResponse.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ListRedisClusterNodesResponse.java new file mode 100644 index 00000000000..9a3cda92cba --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ListRedisClusterNodesResponse.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.responses; + +import com.oracle.bmc.redis.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ListRedisClusterNodesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code RedisNodeCollection} instance. */ + private com.oracle.bmc.redis.model.RedisNodeCollection redisNodeCollection; + + /** + * The returned {@code RedisNodeCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.redis.model.RedisNodeCollection getRedisNodeCollection() { + return redisNodeCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "redisNodeCollection" + }) + private ListRedisClusterNodesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.redis.model.RedisNodeCollection redisNodeCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.redisNodeCollection = redisNodeCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code RedisNodeCollection} instance. */ + private com.oracle.bmc.redis.model.RedisNodeCollection redisNodeCollection; + + /** + * The returned {@code RedisNodeCollection} instance. + * + * @param redisNodeCollection the value to set + * @return this builder + */ + public Builder redisNodeCollection( + com.oracle.bmc.redis.model.RedisNodeCollection redisNodeCollection) { + this.redisNodeCollection = redisNodeCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListRedisClusterNodesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + redisNodeCollection(o.getRedisNodeCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListRedisClusterNodesResponse build() { + return new ListRedisClusterNodesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, redisNodeCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",redisNodeCollection=").append(String.valueOf(redisNodeCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRedisClusterNodesResponse)) { + return false; + } + + ListRedisClusterNodesResponse other = (ListRedisClusterNodesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.redisNodeCollection, other.redisNodeCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.redisNodeCollection == null + ? 43 + : this.redisNodeCollection.hashCode()); + return result; + } +} diff --git a/bmc-redis/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-redis/reflect-config.json b/bmc-redis/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-redis/reflect-config.json index f1fc7247b31..18c91275999 100644 --- a/bmc-redis/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-redis/reflect-config.json +++ b/bmc-redis/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-redis/reflect-config.json @@ -61,6 +61,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.redis.model.NodeSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.redis.model.NodeSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.redis.model.OperationStatus", @@ -99,6 +113,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.redis.model.RedisCluster$ClusterMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.redis.model.RedisClusterCollection", @@ -127,6 +147,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.redis.model.RedisNodeCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.redis.model.RedisNodeCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.redis.model.SortOrder", diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index a089c55a50d..6ccf60c796e 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 6d28d14b86c..4f1803d14a7 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 579b04fbc7a..f94181b07fa 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 299b5361902..df21dd4f9a6 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index a1610d89d00..9203e4d4d8e 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 41197bbdfa9..9583d8341e4 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 86c61d5746a..fd6d620d228 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 8e45836416b..e48e1298299 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index 55ac298cff7..cdb5c63bc8b 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-servicemesh @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index ea21d01eacd..476b6dce051 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 1016a59dda8..bdb87cf7fcc 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 2040c1703cb..297c2256865 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 63f053253fc..f694200642e 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 2bd47e315bb..099a94ac70b 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index c370fcdbe1a..1708a8210b2 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index a6b12205982..1d568ac5a7c 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 05d0b8cb498..9c01a6400a4 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index bca13bee59b..8d4f6312315 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.46.1 + 3.47.0 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 5061f410a1d..deff56dd2d7 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index 07d1990ee9a..0c9512419a8 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 9452c86abf0..35ae7dc6730 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 5a064e24333..71b157d22b4 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 6a9802bc9b3..55a80f295c6 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 54a27b708e4..55b16b5bcd5 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 6caedefd872..b38232545c0 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 7f5e9140aee..d2ecfc76ca6 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.46.1 + 3.47.0 diff --git a/pom.xml b/pom.xml index f9eb0780215..72d6466739d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.46.1 + 3.47.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -795,5 +795,6 @@ bmc-marketplaceprivateoffer bmc-resourcescheduler bmc-demandsignal + bmc-fleetappsmanagement - + \ No newline at end of file