diff --git a/CHANGELOG.md b/CHANGELOG.md index 903d7231169..ecb0315c67c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,24 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.55.1 - 2024-12-17 +### Added +- Support for backup retention locks on autonomous database create and update operations in the Database service +- Support for multi-modality flags in data source in the Generative AI service +- Support for knowledge base statistics in the Generative AI service +- Support for document id, title and page numbers in citations in the Generative AI service +- Support for creating and updating Amazon Web Services (AWS) asset-sources, EC2 and Elastic Block Store (EBS) assets in the Cloud Bridge service +- Support for listing Amazon Web Services (AWS) regions available for discovery and migrations in the Cloud Bridge service +- Support for stored video analysis in the AI Vision service +- Support for HTTP or REST endpoint-based metric extensions in the OCI Monitoring service +- Support for metric extension filter in the list metric extensions operation in the OCI Monitoring service +- Support for creating and updating private endpoints for model deployments in the Data Science service +- Support for OCI Identity user integration in the Big Data service +- Support for user principal session tokens in the Big Data service +- Support for historical cluster versions in the Big Data service +- Support for new SKUs for digital assets editions in the Blockchain Platform service +- Support for Zero ETL pipelines in the GoldenGate service + ## 3.55.0 - 2024-12-10 ### Added - Support for Bring Your Own Key (BYOK) in the Database service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index d91af6b08bb..628df14d352 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index fe1ce53abad..c222d4b7325 100644 --- a/bmc-addons/bmc-aispeech-realtime/pom.xml +++ b/bmc-addons/bmc-aispeech-realtime/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.55.0 + 3.55.1 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.0 + 3.55.1 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 523ae2bd3c4..7ef521d2237 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.55.0 + 3.55.1 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.0 + 3.55.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.0 + 3.55.1 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 207ae156fc1..bc979f0077d 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.55.0 + 3.55.1 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.0 + 3.55.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.55.0 + 3.55.1 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 5de8f284ffd..221f7198510 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.55.0 + 3.55.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 2e78f0b8da7..ba233d04fe3 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.55.0 + 3.55.1 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 compile com.oracle.oci.sdk oci-java-sdk-core - 3.55.0 + 3.55.1 test com.oracle.oci.sdk oci-java-sdk-identity - 3.55.0 + 3.55.1 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.55.0 + 3.55.1 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index c63220d9a95..e8d039c202d 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.55.0 + 3.55.1 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ 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 c0618215497..83b1619480f 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.55.0 + 3.55.1 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.55.0 + 3.55.1 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.55.0 + 3.55.1 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 1446ea1e3a1..0adb1e64b40 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.55.0 + 3.55.1 ../pom.xml @@ -60,7 +60,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 3052f5a53f1..d76a9d359ae 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.55.0 + 3.55.1 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.55.0 + 3.55.1 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.55.0 + 3.55.1 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 4824b7ad983..29ab3932dbc 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.55.0 + 3.55.1 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.55.0 + 3.55.1 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.0 + 3.55.1 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 019abafac5e..5901542ac41 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index 54d032e3476..14d9536911b 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index 064122830e3..c8cc2db88b8 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-aianomalydetection @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 8fa62c9042a..4efd527974b 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 1a23f8d1cd6..f09cef6a106 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index b497ad33d75..26c87d9e2c7 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index d2f497c3991..33e6191e83c 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVision.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVision.java index 557aab39736..4de791011d4 100644 --- a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVision.java +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVision.java @@ -128,6 +128,21 @@ public interface AIServiceVision extends AutoCloseable { */ CancelImageJobResponse cancelImageJob(CancelImageJobRequest request); + /** + * Cancel a video analysis job. + * + * @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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 CancelVideoJob API. + */ + CancelVideoJobResponse cancelVideoJob(CancelVideoJobRequest request); + /** * Cancel the work request with the given ID. * @@ -240,6 +255,21 @@ ChangeProjectCompartmentResponse changeProjectCompartment( */ CreateProjectResponse createProject(CreateProjectRequest request); + /** + * Create a video analysis job with given inputs and features. + * + * @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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 CreateVideoJob API. + */ + CreateVideoJobResponse createVideoJob(CreateVideoJobRequest request); + /** * Delete a model by identifier. * @@ -330,6 +360,21 @@ ChangeProjectCompartmentResponse changeProjectCompartment( */ GetProjectResponse getProject(GetProjectRequest request); + /** + * Get details of a video analysis job. + * + * @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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 GetVideoJob API. + */ + GetVideoJobResponse getVideoJob(GetVideoJobRequest request); + /** * Gets the status of the work request with the given ID. * diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionAsync.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionAsync.java index 066d1ed8931..90b1b567726 100644 --- a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionAsync.java +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionAsync.java @@ -125,6 +125,21 @@ java.util.concurrent.Future cancelImageJob( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Cancel a video analysis job. + * + * @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 cancelVideoJob( + CancelVideoJobRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Cancel the work request with the given ID. * @@ -235,6 +250,21 @@ java.util.concurrent.Future createProject( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Create a video analysis job with given inputs and features. + * + * @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 createVideoJob( + CreateVideoJobRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Delete a model by identifier. * @@ -321,6 +351,20 @@ java.util.concurrent.Future getProject( GetProjectRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Get details of a video analysis job. + * + * @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 getVideoJob( + GetVideoJobRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Gets the status of the work request with the given ID. * diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionAsyncClient.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionAsyncClient.java index 0aa9a181ef4..377d33fa021 100644 --- a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionAsyncClient.java +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionAsyncClient.java @@ -218,6 +218,36 @@ public java.util.concurrent.Future cancelImageJob( .callAsync(handler); } + @Override + public java.util.concurrent.Future cancelVideoJob( + CancelVideoJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelVideoJobRequest, CancelVideoJobResponse> + handler) { + + Validate.notBlank(request.getVideoJobId(), "videoJobId must not be blank"); + + return clientCall(request, CancelVideoJobResponse::builder) + .logger(LOG, "cancelVideoJob") + .serviceDetails( + "AIServiceVision", + "CancelVideoJob", + "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/CancelVideoJob") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelVideoJobRequest::builder) + .basePath("/20220125") + .appendPathParam("videoJobs") + .appendPathParam(request.getVideoJobId()) + .appendPathParam("actions") + .appendPathParam("cancel") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", CancelVideoJobResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future cancelWorkRequest( CancelWorkRequestRequest request, @@ -437,6 +467,38 @@ public java.util.concurrent.Future createProject( .callAsync(handler); } + @Override + public java.util.concurrent.Future createVideoJob( + CreateVideoJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateVideoJobRequest, CreateVideoJobResponse> + handler) { + Objects.requireNonNull( + request.getCreateVideoJobDetails(), "createVideoJobDetails is required"); + + return clientCall(request, CreateVideoJobResponse::builder) + .logger(LOG, "createVideoJob") + .serviceDetails( + "AIServiceVision", + "CreateVideoJob", + "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/CreateVideoJob") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateVideoJobRequest::builder) + .basePath("/20220125") + .appendPathParam("videoJobs") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.aivision.model.VideoJob.class, + CreateVideoJobResponse.Builder::videoJob) + .handleResponseHeaderString("etag", CreateVideoJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateVideoJobResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteModel( DeleteModelRequest request, @@ -615,6 +677,36 @@ public java.util.concurrent.Future getProject( .callAsync(handler); } + @Override + public java.util.concurrent.Future getVideoJob( + GetVideoJobRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getVideoJobId(), "videoJobId must not be blank"); + + return clientCall(request, GetVideoJobResponse::builder) + .logger(LOG, "getVideoJob") + .serviceDetails( + "AIServiceVision", + "GetVideoJob", + "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/GetVideoJob") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetVideoJobRequest::builder) + .basePath("/20220125") + .appendPathParam("videoJobs") + .appendPathParam(request.getVideoJobId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.aivision.model.VideoJob.class, + GetVideoJobResponse.Builder::videoJob) + .handleResponseHeaderString("etag", GetVideoJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetVideoJobResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getWorkRequest( GetWorkRequestRequest request, diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionClient.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionClient.java index 8dbbfd664b2..9918441ebed 100644 --- a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionClient.java +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionClient.java @@ -232,6 +232,32 @@ public CancelImageJobResponse cancelImageJob(CancelImageJobRequest request) { .callSync(); } + @Override + public CancelVideoJobResponse cancelVideoJob(CancelVideoJobRequest request) { + + Validate.notBlank(request.getVideoJobId(), "videoJobId must not be blank"); + + return clientCall(request, CancelVideoJobResponse::builder) + .logger(LOG, "cancelVideoJob") + .serviceDetails( + "AIServiceVision", + "CancelVideoJob", + "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/CancelVideoJob") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelVideoJobRequest::builder) + .basePath("/20220125") + .appendPathParam("videoJobs") + .appendPathParam(request.getVideoJobId()) + .appendPathParam("actions") + .appendPathParam("cancel") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", CancelVideoJobResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request) { @@ -427,6 +453,34 @@ public CreateProjectResponse createProject(CreateProjectRequest request) { .callSync(); } + @Override + public CreateVideoJobResponse createVideoJob(CreateVideoJobRequest request) { + Objects.requireNonNull( + request.getCreateVideoJobDetails(), "createVideoJobDetails is required"); + + return clientCall(request, CreateVideoJobResponse::builder) + .logger(LOG, "createVideoJob") + .serviceDetails( + "AIServiceVision", + "CreateVideoJob", + "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/CreateVideoJob") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateVideoJobRequest::builder) + .basePath("/20220125") + .appendPathParam("videoJobs") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.aivision.model.VideoJob.class, + CreateVideoJobResponse.Builder::videoJob) + .handleResponseHeaderString("etag", CreateVideoJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateVideoJobResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteModelResponse deleteModel(DeleteModelRequest request) { @@ -586,6 +640,33 @@ public GetProjectResponse getProject(GetProjectRequest request) { .callSync(); } + @Override + public GetVideoJobResponse getVideoJob(GetVideoJobRequest request) { + + Validate.notBlank(request.getVideoJobId(), "videoJobId must not be blank"); + + return clientCall(request, GetVideoJobResponse::builder) + .logger(LOG, "getVideoJob") + .serviceDetails( + "AIServiceVision", + "GetVideoJob", + "https://docs.oracle.com/iaas/api/#/en/vision/20220125/VideoJob/GetVideoJob") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetVideoJobRequest::builder) + .basePath("/20220125") + .appendPathParam("videoJobs") + .appendPathParam(request.getVideoJobId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.aivision.model.VideoJob.class, + GetVideoJobResponse.Builder::videoJob) + .handleResponseHeaderString("etag", GetVideoJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetVideoJobResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionWaiters.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionWaiters.java index 6e2f0a7672f..fc87b65f26d 100644 --- a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionWaiters.java +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/AIServiceVisionWaiters.java @@ -425,6 +425,104 @@ public boolean test(GetProjectResponse response) { 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 forVideoJob( + GetVideoJobRequest request, + com.oracle.bmc.aivision.model.VideoJob.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 forVideoJob( + 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 forVideoJob( + GetVideoJobRequest request, + com.oracle.bmc.aivision.model.VideoJob.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 forVideoJob( + 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 forVideoJob( + GetVideoJobRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.aivision.model.VideoJob.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 forVideoJob( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for VideoJob. + private com.oracle.bmc.waiter.Waiter forVideoJob( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetVideoJobRequest request, + final com.oracle.bmc.aivision.model.VideoJob.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 GetVideoJobResponse apply(GetVideoJobRequest request) { + return client.getVideoJob(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetVideoJobResponse response) { + return targetStatesSet.contains( + response.getVideoJob().getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. * diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/AnalyzeVideoResult.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/AnalyzeVideoResult.java new file mode 100644 index 00000000000..6c38a2d8682 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/AnalyzeVideoResult.java @@ -0,0 +1,621 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * Video analysis results.
+ * 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 = AnalyzeVideoResult.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AnalyzeVideoResult + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "videoMetadata", + "videoLabels", + "videoObjects", + "videoTrackedObjects", + "videoText", + "videoFaces", + "ontologyClasses", + "labelDetectionModelVersion", + "objectDetectionModelVersion", + "objectTrackingModelVersion", + "textDetectionModelVersion", + "faceDetectionModelVersion", + "errors" + }) + public AnalyzeVideoResult( + VideoMetadata videoMetadata, + java.util.List videoLabels, + java.util.List videoObjects, + java.util.List videoTrackedObjects, + java.util.List videoText, + java.util.List videoFaces, + java.util.List ontologyClasses, + String labelDetectionModelVersion, + String objectDetectionModelVersion, + String objectTrackingModelVersion, + String textDetectionModelVersion, + String faceDetectionModelVersion, + java.util.List errors) { + super(); + this.videoMetadata = videoMetadata; + this.videoLabels = videoLabels; + this.videoObjects = videoObjects; + this.videoTrackedObjects = videoTrackedObjects; + this.videoText = videoText; + this.videoFaces = videoFaces; + this.ontologyClasses = ontologyClasses; + this.labelDetectionModelVersion = labelDetectionModelVersion; + this.objectDetectionModelVersion = objectDetectionModelVersion; + this.objectTrackingModelVersion = objectTrackingModelVersion; + this.textDetectionModelVersion = textDetectionModelVersion; + this.faceDetectionModelVersion = faceDetectionModelVersion; + this.errors = errors; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("videoMetadata") + private VideoMetadata videoMetadata; + + public Builder videoMetadata(VideoMetadata videoMetadata) { + this.videoMetadata = videoMetadata; + this.__explicitlySet__.add("videoMetadata"); + return this; + } + /** Detected labels in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("videoLabels") + private java.util.List videoLabels; + + /** + * Detected labels in a video. + * + * @param videoLabels the value to set + * @return this builder + */ + public Builder videoLabels(java.util.List videoLabels) { + this.videoLabels = videoLabels; + this.__explicitlySet__.add("videoLabels"); + return this; + } + /** Detected objects in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("videoObjects") + private java.util.List videoObjects; + + /** + * Detected objects in a video. + * + * @param videoObjects the value to set + * @return this builder + */ + public Builder videoObjects(java.util.List videoObjects) { + this.videoObjects = videoObjects; + this.__explicitlySet__.add("videoObjects"); + return this; + } + /** Tracked objects in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("videoTrackedObjects") + private java.util.List videoTrackedObjects; + + /** + * Tracked objects in a video. + * + * @param videoTrackedObjects the value to set + * @return this builder + */ + public Builder videoTrackedObjects(java.util.List videoTrackedObjects) { + this.videoTrackedObjects = videoTrackedObjects; + this.__explicitlySet__.add("videoTrackedObjects"); + return this; + } + /** Detected text in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("videoText") + private java.util.List videoText; + + /** + * Detected text in a video. + * + * @param videoText the value to set + * @return this builder + */ + public Builder videoText(java.util.List videoText) { + this.videoText = videoText; + this.__explicitlySet__.add("videoText"); + return this; + } + /** Detected faces in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("videoFaces") + private java.util.List videoFaces; + + /** + * Detected faces in a video. + * + * @param videoFaces the value to set + * @return this builder + */ + public Builder videoFaces(java.util.List videoFaces) { + this.videoFaces = videoFaces; + this.__explicitlySet__.add("videoFaces"); + return this; + } + /** The ontologyClasses of video labels. */ + @com.fasterxml.jackson.annotation.JsonProperty("ontologyClasses") + private java.util.List ontologyClasses; + + /** + * The ontologyClasses of video labels. + * + * @param ontologyClasses the value to set + * @return this builder + */ + public Builder ontologyClasses(java.util.List ontologyClasses) { + this.ontologyClasses = ontologyClasses; + this.__explicitlySet__.add("ontologyClasses"); + return this; + } + /** Label Detection model version. */ + @com.fasterxml.jackson.annotation.JsonProperty("labelDetectionModelVersion") + private String labelDetectionModelVersion; + + /** + * Label Detection model version. + * + * @param labelDetectionModelVersion the value to set + * @return this builder + */ + public Builder labelDetectionModelVersion(String labelDetectionModelVersion) { + this.labelDetectionModelVersion = labelDetectionModelVersion; + this.__explicitlySet__.add("labelDetectionModelVersion"); + return this; + } + /** Object Detection model version. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectDetectionModelVersion") + private String objectDetectionModelVersion; + + /** + * Object Detection model version. + * + * @param objectDetectionModelVersion the value to set + * @return this builder + */ + public Builder objectDetectionModelVersion(String objectDetectionModelVersion) { + this.objectDetectionModelVersion = objectDetectionModelVersion; + this.__explicitlySet__.add("objectDetectionModelVersion"); + return this; + } + /** Object Tracking model version. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectTrackingModelVersion") + private String objectTrackingModelVersion; + + /** + * Object Tracking model version. + * + * @param objectTrackingModelVersion the value to set + * @return this builder + */ + public Builder objectTrackingModelVersion(String objectTrackingModelVersion) { + this.objectTrackingModelVersion = objectTrackingModelVersion; + this.__explicitlySet__.add("objectTrackingModelVersion"); + return this; + } + /** Text Detection model version. */ + @com.fasterxml.jackson.annotation.JsonProperty("textDetectionModelVersion") + private String textDetectionModelVersion; + + /** + * Text Detection model version. + * + * @param textDetectionModelVersion the value to set + * @return this builder + */ + public Builder textDetectionModelVersion(String textDetectionModelVersion) { + this.textDetectionModelVersion = textDetectionModelVersion; + this.__explicitlySet__.add("textDetectionModelVersion"); + return this; + } + /** Face Detection model version. */ + @com.fasterxml.jackson.annotation.JsonProperty("faceDetectionModelVersion") + private String faceDetectionModelVersion; + + /** + * Face Detection model version. + * + * @param faceDetectionModelVersion the value to set + * @return this builder + */ + public Builder faceDetectionModelVersion(String faceDetectionModelVersion) { + this.faceDetectionModelVersion = faceDetectionModelVersion; + this.__explicitlySet__.add("faceDetectionModelVersion"); + return this; + } + /** Array of possible errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("errors") + private java.util.List errors; + + /** + * Array of possible errors. + * + * @param errors the value to set + * @return this builder + */ + public Builder errors(java.util.List errors) { + this.errors = errors; + this.__explicitlySet__.add("errors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AnalyzeVideoResult build() { + AnalyzeVideoResult model = + new AnalyzeVideoResult( + this.videoMetadata, + this.videoLabels, + this.videoObjects, + this.videoTrackedObjects, + this.videoText, + this.videoFaces, + this.ontologyClasses, + this.labelDetectionModelVersion, + this.objectDetectionModelVersion, + this.objectTrackingModelVersion, + this.textDetectionModelVersion, + this.faceDetectionModelVersion, + this.errors); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AnalyzeVideoResult model) { + if (model.wasPropertyExplicitlySet("videoMetadata")) { + this.videoMetadata(model.getVideoMetadata()); + } + if (model.wasPropertyExplicitlySet("videoLabels")) { + this.videoLabels(model.getVideoLabels()); + } + if (model.wasPropertyExplicitlySet("videoObjects")) { + this.videoObjects(model.getVideoObjects()); + } + if (model.wasPropertyExplicitlySet("videoTrackedObjects")) { + this.videoTrackedObjects(model.getVideoTrackedObjects()); + } + if (model.wasPropertyExplicitlySet("videoText")) { + this.videoText(model.getVideoText()); + } + if (model.wasPropertyExplicitlySet("videoFaces")) { + this.videoFaces(model.getVideoFaces()); + } + if (model.wasPropertyExplicitlySet("ontologyClasses")) { + this.ontologyClasses(model.getOntologyClasses()); + } + if (model.wasPropertyExplicitlySet("labelDetectionModelVersion")) { + this.labelDetectionModelVersion(model.getLabelDetectionModelVersion()); + } + if (model.wasPropertyExplicitlySet("objectDetectionModelVersion")) { + this.objectDetectionModelVersion(model.getObjectDetectionModelVersion()); + } + if (model.wasPropertyExplicitlySet("objectTrackingModelVersion")) { + this.objectTrackingModelVersion(model.getObjectTrackingModelVersion()); + } + if (model.wasPropertyExplicitlySet("textDetectionModelVersion")) { + this.textDetectionModelVersion(model.getTextDetectionModelVersion()); + } + if (model.wasPropertyExplicitlySet("faceDetectionModelVersion")) { + this.faceDetectionModelVersion(model.getFaceDetectionModelVersion()); + } + if (model.wasPropertyExplicitlySet("errors")) { + this.errors(model.getErrors()); + } + 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("videoMetadata") + private final VideoMetadata videoMetadata; + + public VideoMetadata getVideoMetadata() { + return videoMetadata; + } + + /** Detected labels in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("videoLabels") + private final java.util.List videoLabels; + + /** + * Detected labels in a video. + * + * @return the value + */ + public java.util.List getVideoLabels() { + return videoLabels; + } + + /** Detected objects in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("videoObjects") + private final java.util.List videoObjects; + + /** + * Detected objects in a video. + * + * @return the value + */ + public java.util.List getVideoObjects() { + return videoObjects; + } + + /** Tracked objects in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("videoTrackedObjects") + private final java.util.List videoTrackedObjects; + + /** + * Tracked objects in a video. + * + * @return the value + */ + public java.util.List getVideoTrackedObjects() { + return videoTrackedObjects; + } + + /** Detected text in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("videoText") + private final java.util.List videoText; + + /** + * Detected text in a video. + * + * @return the value + */ + public java.util.List getVideoText() { + return videoText; + } + + /** Detected faces in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("videoFaces") + private final java.util.List videoFaces; + + /** + * Detected faces in a video. + * + * @return the value + */ + public java.util.List getVideoFaces() { + return videoFaces; + } + + /** The ontologyClasses of video labels. */ + @com.fasterxml.jackson.annotation.JsonProperty("ontologyClasses") + private final java.util.List ontologyClasses; + + /** + * The ontologyClasses of video labels. + * + * @return the value + */ + public java.util.List getOntologyClasses() { + return ontologyClasses; + } + + /** Label Detection model version. */ + @com.fasterxml.jackson.annotation.JsonProperty("labelDetectionModelVersion") + private final String labelDetectionModelVersion; + + /** + * Label Detection model version. + * + * @return the value + */ + public String getLabelDetectionModelVersion() { + return labelDetectionModelVersion; + } + + /** Object Detection model version. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectDetectionModelVersion") + private final String objectDetectionModelVersion; + + /** + * Object Detection model version. + * + * @return the value + */ + public String getObjectDetectionModelVersion() { + return objectDetectionModelVersion; + } + + /** Object Tracking model version. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectTrackingModelVersion") + private final String objectTrackingModelVersion; + + /** + * Object Tracking model version. + * + * @return the value + */ + public String getObjectTrackingModelVersion() { + return objectTrackingModelVersion; + } + + /** Text Detection model version. */ + @com.fasterxml.jackson.annotation.JsonProperty("textDetectionModelVersion") + private final String textDetectionModelVersion; + + /** + * Text Detection model version. + * + * @return the value + */ + public String getTextDetectionModelVersion() { + return textDetectionModelVersion; + } + + /** Face Detection model version. */ + @com.fasterxml.jackson.annotation.JsonProperty("faceDetectionModelVersion") + private final String faceDetectionModelVersion; + + /** + * Face Detection model version. + * + * @return the value + */ + public String getFaceDetectionModelVersion() { + return faceDetectionModelVersion; + } + + /** Array of possible errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("errors") + private final java.util.List errors; + + /** + * Array of possible errors. + * + * @return the value + */ + public java.util.List getErrors() { + return errors; + } + + @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("AnalyzeVideoResult("); + sb.append("super=").append(super.toString()); + sb.append("videoMetadata=").append(String.valueOf(this.videoMetadata)); + sb.append(", videoLabels=").append(String.valueOf(this.videoLabels)); + sb.append(", videoObjects=").append(String.valueOf(this.videoObjects)); + sb.append(", videoTrackedObjects=").append(String.valueOf(this.videoTrackedObjects)); + sb.append(", videoText=").append(String.valueOf(this.videoText)); + sb.append(", videoFaces=").append(String.valueOf(this.videoFaces)); + sb.append(", ontologyClasses=").append(String.valueOf(this.ontologyClasses)); + sb.append(", labelDetectionModelVersion=") + .append(String.valueOf(this.labelDetectionModelVersion)); + sb.append(", objectDetectionModelVersion=") + .append(String.valueOf(this.objectDetectionModelVersion)); + sb.append(", objectTrackingModelVersion=") + .append(String.valueOf(this.objectTrackingModelVersion)); + sb.append(", textDetectionModelVersion=") + .append(String.valueOf(this.textDetectionModelVersion)); + sb.append(", faceDetectionModelVersion=") + .append(String.valueOf(this.faceDetectionModelVersion)); + sb.append(", errors=").append(String.valueOf(this.errors)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AnalyzeVideoResult)) { + return false; + } + + AnalyzeVideoResult other = (AnalyzeVideoResult) o; + return java.util.Objects.equals(this.videoMetadata, other.videoMetadata) + && java.util.Objects.equals(this.videoLabels, other.videoLabels) + && java.util.Objects.equals(this.videoObjects, other.videoObjects) + && java.util.Objects.equals(this.videoTrackedObjects, other.videoTrackedObjects) + && java.util.Objects.equals(this.videoText, other.videoText) + && java.util.Objects.equals(this.videoFaces, other.videoFaces) + && java.util.Objects.equals(this.ontologyClasses, other.ontologyClasses) + && java.util.Objects.equals( + this.labelDetectionModelVersion, other.labelDetectionModelVersion) + && java.util.Objects.equals( + this.objectDetectionModelVersion, other.objectDetectionModelVersion) + && java.util.Objects.equals( + this.objectTrackingModelVersion, other.objectTrackingModelVersion) + && java.util.Objects.equals( + this.textDetectionModelVersion, other.textDetectionModelVersion) + && java.util.Objects.equals( + this.faceDetectionModelVersion, other.faceDetectionModelVersion) + && java.util.Objects.equals(this.errors, other.errors) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.videoMetadata == null ? 43 : this.videoMetadata.hashCode()); + result = (result * PRIME) + (this.videoLabels == null ? 43 : this.videoLabels.hashCode()); + result = (result * PRIME) + (this.videoObjects == null ? 43 : this.videoObjects.hashCode()); + result = + (result * PRIME) + + (this.videoTrackedObjects == null + ? 43 + : this.videoTrackedObjects.hashCode()); + result = (result * PRIME) + (this.videoText == null ? 43 : this.videoText.hashCode()); + result = (result * PRIME) + (this.videoFaces == null ? 43 : this.videoFaces.hashCode()); + result = + (result * PRIME) + + (this.ontologyClasses == null ? 43 : this.ontologyClasses.hashCode()); + result = + (result * PRIME) + + (this.labelDetectionModelVersion == null + ? 43 + : this.labelDetectionModelVersion.hashCode()); + result = + (result * PRIME) + + (this.objectDetectionModelVersion == null + ? 43 + : this.objectDetectionModelVersion.hashCode()); + result = + (result * PRIME) + + (this.objectTrackingModelVersion == null + ? 43 + : this.objectTrackingModelVersion.hashCode()); + result = + (result * PRIME) + + (this.textDetectionModelVersion == null + ? 43 + : this.textDetectionModelVersion.hashCode()); + result = + (result * PRIME) + + (this.faceDetectionModelVersion == null + ? 43 + : this.faceDetectionModelVersion.hashCode()); + result = (result * PRIME) + (this.errors == null ? 43 : this.errors.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/CreateVideoJobDetails.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/CreateVideoJobDetails.java new file mode 100644 index 00000000000..5b82e9e3095 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/CreateVideoJobDetails.java @@ -0,0 +1,366 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * Details about the video analysis.
+ * 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 = CreateVideoJobDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateVideoJobDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "inputLocation", + "features", + "outputLocation", + "compartmentId", + "displayName", + "freeformTags", + "definedTags" + }) + public CreateVideoJobDetails( + InputLocation inputLocation, + java.util.List features, + OutputLocation outputLocation, + String compartmentId, + String displayName, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.inputLocation = inputLocation; + this.features = features; + this.outputLocation = outputLocation; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("inputLocation") + private InputLocation inputLocation; + + public Builder inputLocation(InputLocation inputLocation) { + this.inputLocation = inputLocation; + this.__explicitlySet__.add("inputLocation"); + return this; + } + /** a list of video analysis features. */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * a list of video analysis features. + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("outputLocation") + private OutputLocation outputLocation; + + public Builder outputLocation(OutputLocation outputLocation) { + this.outputLocation = outputLocation; + this.__explicitlySet__.add("outputLocation"); + return this; + } + /** Compartment identifier from the requester. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Compartment identifier from the requester. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Video job display name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Video job display name. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A simple key-value pair that is applied without any predefined name, type, or scope. It + * exists for cross-compatibility only. For example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * A simple key-value pair that is applied without any predefined name, type, or scope. It + * exists for cross-compatibility only. For 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. For + * 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. For + * 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 CreateVideoJobDetails build() { + CreateVideoJobDetails model = + new CreateVideoJobDetails( + this.inputLocation, + this.features, + this.outputLocation, + this.compartmentId, + this.displayName, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateVideoJobDetails model) { + if (model.wasPropertyExplicitlySet("inputLocation")) { + this.inputLocation(model.getInputLocation()); + } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } + if (model.wasPropertyExplicitlySet("outputLocation")) { + this.outputLocation(model.getOutputLocation()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + 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); + } + + @com.fasterxml.jackson.annotation.JsonProperty("inputLocation") + private final InputLocation inputLocation; + + public InputLocation getInputLocation() { + return inputLocation; + } + + /** a list of video analysis features. */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * a list of video analysis features. + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + + @com.fasterxml.jackson.annotation.JsonProperty("outputLocation") + private final OutputLocation outputLocation; + + public OutputLocation getOutputLocation() { + return outputLocation; + } + + /** Compartment identifier from the requester. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Compartment identifier from the requester. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Video job display name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Video job display name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * A simple key-value pair that is applied without any predefined name, type, or scope. It + * exists for cross-compatibility only. For example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * A simple key-value pair that is applied without any predefined name, type, or scope. It + * exists for cross-compatibility only. For 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. For + * 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. For + * 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("CreateVideoJobDetails("); + sb.append("super=").append(super.toString()); + sb.append("inputLocation=").append(String.valueOf(this.inputLocation)); + sb.append(", features=").append(String.valueOf(this.features)); + sb.append(", outputLocation=").append(String.valueOf(this.outputLocation)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + 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 CreateVideoJobDetails)) { + return false; + } + + CreateVideoJobDetails other = (CreateVideoJobDetails) o; + return java.util.Objects.equals(this.inputLocation, other.inputLocation) + && java.util.Objects.equals(this.features, other.features) + && java.util.Objects.equals(this.outputLocation, other.outputLocation) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && 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.inputLocation == null ? 43 : this.inputLocation.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); + result = + (result * PRIME) + + (this.outputLocation == null ? 43 : this.outputLocation.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.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-aivision/src/main/java/com/oracle/bmc/aivision/model/ObjectProperty.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/ObjectProperty.java new file mode 100644 index 00000000000..fa33abb767d --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/ObjectProperty.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * A property of a tracked object in a frame.
+ * 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 = ObjectProperty.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ObjectProperty + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "confidence", "boundingPolygon"}) + public ObjectProperty(String name, Float confidence, BoundingPolygon boundingPolygon) { + super(); + this.name = name; + this.confidence = confidence; + this.boundingPolygon = boundingPolygon; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Property name */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Property name + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @param confidence the value to set + * @return this builder + */ + public Builder confidence(Float confidence) { + this.confidence = confidence; + this.__explicitlySet__.add("confidence"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("boundingPolygon") + private BoundingPolygon boundingPolygon; + + public Builder boundingPolygon(BoundingPolygon boundingPolygon) { + this.boundingPolygon = boundingPolygon; + this.__explicitlySet__.add("boundingPolygon"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ObjectProperty build() { + ObjectProperty model = + new ObjectProperty(this.name, this.confidence, this.boundingPolygon); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ObjectProperty model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("confidence")) { + this.confidence(model.getConfidence()); + } + if (model.wasPropertyExplicitlySet("boundingPolygon")) { + this.boundingPolygon(model.getBoundingPolygon()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Property name */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Property name + * + * @return the value + */ + public String getName() { + return name; + } + + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private final Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @return the value + */ + public Float getConfidence() { + return confidence; + } + + @com.fasterxml.jackson.annotation.JsonProperty("boundingPolygon") + private final BoundingPolygon boundingPolygon; + + public BoundingPolygon getBoundingPolygon() { + return boundingPolygon; + } + + @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("ObjectProperty("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", confidence=").append(String.valueOf(this.confidence)); + sb.append(", boundingPolygon=").append(String.valueOf(this.boundingPolygon)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ObjectProperty)) { + return false; + } + + ObjectProperty other = (ObjectProperty) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.confidence, other.confidence) + && java.util.Objects.equals(this.boundingPolygon, other.boundingPolygon) + && 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.confidence == null ? 43 : this.confidence.hashCode()); + result = + (result * PRIME) + + (this.boundingPolygon == null ? 43 : this.boundingPolygon.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFace.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFace.java new file mode 100644 index 00000000000..d4fa954a782 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFace.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.aivision.model; + +/** + * Detected face in a video.
+ * 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 = VideoFace.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoFace extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"segments"}) + public VideoFace(java.util.List segments) { + super(); + this.segments = segments; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Face segments in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("segments") + private java.util.List segments; + + /** + * Face segments in a video. + * + * @param segments the value to set + * @return this builder + */ + public Builder segments(java.util.List segments) { + this.segments = segments; + this.__explicitlySet__.add("segments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoFace build() { + VideoFace model = new VideoFace(this.segments); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoFace model) { + if (model.wasPropertyExplicitlySet("segments")) { + this.segments(model.getSegments()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Face segments in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("segments") + private final java.util.List segments; + + /** + * Face segments in a video. + * + * @return the value + */ + public java.util.List getSegments() { + return segments; + } + + @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("VideoFace("); + sb.append("super=").append(super.toString()); + sb.append("segments=").append(String.valueOf(this.segments)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoFace)) { + return false; + } + + VideoFace other = (VideoFace) o; + return java.util.Objects.equals(this.segments, other.segments) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.segments == null ? 43 : this.segments.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFaceDetectionFeature.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFaceDetectionFeature.java new file mode 100644 index 00000000000..9abac85b223 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFaceDetectionFeature.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * Video face detection 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: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VideoFaceDetectionFeature.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "featureType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoFaceDetectionFeature extends VideoFeature { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The maximum number of results per frame to return. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxResults") + private Integer maxResults; + + /** + * The maximum number of results per frame to return. + * + * @param maxResults the value to set + * @return this builder + */ + public Builder maxResults(Integer maxResults) { + this.maxResults = maxResults; + this.__explicitlySet__.add("maxResults"); + return this; + } + /** Whether or not return face landmarks. */ + @com.fasterxml.jackson.annotation.JsonProperty("isLandmarkRequired") + private Boolean isLandmarkRequired; + + /** + * Whether or not return face landmarks. + * + * @param isLandmarkRequired the value to set + * @return this builder + */ + public Builder isLandmarkRequired(Boolean isLandmarkRequired) { + this.isLandmarkRequired = isLandmarkRequired; + this.__explicitlySet__.add("isLandmarkRequired"); + return this; + } + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minConfidence") + private Float minConfidence; + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + * + * @param minConfidence the value to set + * @return this builder + */ + public Builder minConfidence(Float minConfidence) { + this.minConfidence = minConfidence; + this.__explicitlySet__.add("minConfidence"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoFaceDetectionFeature build() { + VideoFaceDetectionFeature model = + new VideoFaceDetectionFeature( + this.maxResults, this.isLandmarkRequired, this.minConfidence); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoFaceDetectionFeature model) { + if (model.wasPropertyExplicitlySet("maxResults")) { + this.maxResults(model.getMaxResults()); + } + if (model.wasPropertyExplicitlySet("isLandmarkRequired")) { + this.isLandmarkRequired(model.getIsLandmarkRequired()); + } + if (model.wasPropertyExplicitlySet("minConfidence")) { + this.minConfidence(model.getMinConfidence()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public VideoFaceDetectionFeature( + Integer maxResults, Boolean isLandmarkRequired, Float minConfidence) { + super(); + this.maxResults = maxResults; + this.isLandmarkRequired = isLandmarkRequired; + this.minConfidence = minConfidence; + } + + /** The maximum number of results per frame to return. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxResults") + private final Integer maxResults; + + /** + * The maximum number of results per frame to return. + * + * @return the value + */ + public Integer getMaxResults() { + return maxResults; + } + + /** Whether or not return face landmarks. */ + @com.fasterxml.jackson.annotation.JsonProperty("isLandmarkRequired") + private final Boolean isLandmarkRequired; + + /** + * Whether or not return face landmarks. + * + * @return the value + */ + public Boolean getIsLandmarkRequired() { + return isLandmarkRequired; + } + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minConfidence") + private final Float minConfidence; + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + * + * @return the value + */ + public Float getMinConfidence() { + return minConfidence; + } + + @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("VideoFaceDetectionFeature("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", maxResults=").append(String.valueOf(this.maxResults)); + sb.append(", isLandmarkRequired=").append(String.valueOf(this.isLandmarkRequired)); + sb.append(", minConfidence=").append(String.valueOf(this.minConfidence)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoFaceDetectionFeature)) { + return false; + } + + VideoFaceDetectionFeature other = (VideoFaceDetectionFeature) o; + return java.util.Objects.equals(this.maxResults, other.maxResults) + && java.util.Objects.equals(this.isLandmarkRequired, other.isLandmarkRequired) + && java.util.Objects.equals(this.minConfidence, other.minConfidence) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.maxResults == null ? 43 : this.maxResults.hashCode()); + result = + (result * PRIME) + + (this.isLandmarkRequired == null + ? 43 + : this.isLandmarkRequired.hashCode()); + result = + (result * PRIME) + + (this.minConfidence == null ? 43 : this.minConfidence.hashCode()); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFaceFrame.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFaceFrame.java new file mode 100644 index 00000000000..0f46ab28461 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFaceFrame.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.aivision.model; + +/** + * A face frame.
+ * 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 = VideoFaceFrame.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoFaceFrame + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "timeOffsetMs", + "confidence", + "qualityScore", + "boundingPolygon", + "landmarks" + }) + public VideoFaceFrame( + Integer timeOffsetMs, + Float confidence, + Float qualityScore, + BoundingPolygon boundingPolygon, + java.util.List landmarks) { + super(); + this.timeOffsetMs = timeOffsetMs; + this.confidence = confidence; + this.qualityScore = qualityScore; + this.boundingPolygon = boundingPolygon; + this.landmarks = landmarks; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Time offset(Milliseconds) in the video. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOffsetMs") + private Integer timeOffsetMs; + + /** + * Time offset(Milliseconds) in the video. + * + * @param timeOffsetMs the value to set + * @return this builder + */ + public Builder timeOffsetMs(Integer timeOffsetMs) { + this.timeOffsetMs = timeOffsetMs; + this.__explicitlySet__.add("timeOffsetMs"); + return this; + } + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @param confidence the value to set + * @return this builder + */ + public Builder confidence(Float confidence) { + this.confidence = confidence; + this.__explicitlySet__.add("confidence"); + return this; + } + /** The quality score of the face detected, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("qualityScore") + private Float qualityScore; + + /** + * The quality score of the face detected, between 0 and 1. + * + * @param qualityScore the value to set + * @return this builder + */ + public Builder qualityScore(Float qualityScore) { + this.qualityScore = qualityScore; + this.__explicitlySet__.add("qualityScore"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("boundingPolygon") + private BoundingPolygon boundingPolygon; + + public Builder boundingPolygon(BoundingPolygon boundingPolygon) { + this.boundingPolygon = boundingPolygon; + this.__explicitlySet__.add("boundingPolygon"); + return this; + } + /** Face landmarks. */ + @com.fasterxml.jackson.annotation.JsonProperty("landmarks") + private java.util.List landmarks; + + /** + * Face landmarks. + * + * @param landmarks the value to set + * @return this builder + */ + public Builder landmarks(java.util.List landmarks) { + this.landmarks = landmarks; + this.__explicitlySet__.add("landmarks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoFaceFrame build() { + VideoFaceFrame model = + new VideoFaceFrame( + this.timeOffsetMs, + this.confidence, + this.qualityScore, + this.boundingPolygon, + this.landmarks); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoFaceFrame model) { + if (model.wasPropertyExplicitlySet("timeOffsetMs")) { + this.timeOffsetMs(model.getTimeOffsetMs()); + } + if (model.wasPropertyExplicitlySet("confidence")) { + this.confidence(model.getConfidence()); + } + if (model.wasPropertyExplicitlySet("qualityScore")) { + this.qualityScore(model.getQualityScore()); + } + if (model.wasPropertyExplicitlySet("boundingPolygon")) { + this.boundingPolygon(model.getBoundingPolygon()); + } + if (model.wasPropertyExplicitlySet("landmarks")) { + this.landmarks(model.getLandmarks()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Time offset(Milliseconds) in the video. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOffsetMs") + private final Integer timeOffsetMs; + + /** + * Time offset(Milliseconds) in the video. + * + * @return the value + */ + public Integer getTimeOffsetMs() { + return timeOffsetMs; + } + + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private final Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @return the value + */ + public Float getConfidence() { + return confidence; + } + + /** The quality score of the face detected, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("qualityScore") + private final Float qualityScore; + + /** + * The quality score of the face detected, between 0 and 1. + * + * @return the value + */ + public Float getQualityScore() { + return qualityScore; + } + + @com.fasterxml.jackson.annotation.JsonProperty("boundingPolygon") + private final BoundingPolygon boundingPolygon; + + public BoundingPolygon getBoundingPolygon() { + return boundingPolygon; + } + + /** Face landmarks. */ + @com.fasterxml.jackson.annotation.JsonProperty("landmarks") + private final java.util.List landmarks; + + /** + * Face landmarks. + * + * @return the value + */ + public java.util.List getLandmarks() { + return landmarks; + } + + @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("VideoFaceFrame("); + sb.append("super=").append(super.toString()); + sb.append("timeOffsetMs=").append(String.valueOf(this.timeOffsetMs)); + sb.append(", confidence=").append(String.valueOf(this.confidence)); + sb.append(", qualityScore=").append(String.valueOf(this.qualityScore)); + sb.append(", boundingPolygon=").append(String.valueOf(this.boundingPolygon)); + sb.append(", landmarks=").append(String.valueOf(this.landmarks)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoFaceFrame)) { + return false; + } + + VideoFaceFrame other = (VideoFaceFrame) o; + return java.util.Objects.equals(this.timeOffsetMs, other.timeOffsetMs) + && java.util.Objects.equals(this.confidence, other.confidence) + && java.util.Objects.equals(this.qualityScore, other.qualityScore) + && java.util.Objects.equals(this.boundingPolygon, other.boundingPolygon) + && java.util.Objects.equals(this.landmarks, other.landmarks) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.timeOffsetMs == null ? 43 : this.timeOffsetMs.hashCode()); + result = (result * PRIME) + (this.confidence == null ? 43 : this.confidence.hashCode()); + result = (result * PRIME) + (this.qualityScore == null ? 43 : this.qualityScore.hashCode()); + result = + (result * PRIME) + + (this.boundingPolygon == null ? 43 : this.boundingPolygon.hashCode()); + result = (result * PRIME) + (this.landmarks == null ? 43 : this.landmarks.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFaceSegment.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFaceSegment.java new file mode 100644 index 00000000000..c9699e3cf4c --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFaceSegment.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * A face segment in a video.
+ * 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 = VideoFaceSegment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoFaceSegment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"videoSegment", "confidence", "frames"}) + public VideoFaceSegment( + VideoSegment videoSegment, Float confidence, java.util.List frames) { + super(); + this.videoSegment = videoSegment; + this.confidence = confidence; + this.frames = frames; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("videoSegment") + private VideoSegment videoSegment; + + public Builder videoSegment(VideoSegment videoSegment) { + this.videoSegment = videoSegment; + this.__explicitlySet__.add("videoSegment"); + return this; + } + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @param confidence the value to set + * @return this builder + */ + public Builder confidence(Float confidence) { + this.confidence = confidence; + this.__explicitlySet__.add("confidence"); + return this; + } + /** Face frames in a segment. */ + @com.fasterxml.jackson.annotation.JsonProperty("frames") + private java.util.List frames; + + /** + * Face frames in a segment. + * + * @param frames the value to set + * @return this builder + */ + public Builder frames(java.util.List frames) { + this.frames = frames; + this.__explicitlySet__.add("frames"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoFaceSegment build() { + VideoFaceSegment model = + new VideoFaceSegment(this.videoSegment, this.confidence, this.frames); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoFaceSegment model) { + if (model.wasPropertyExplicitlySet("videoSegment")) { + this.videoSegment(model.getVideoSegment()); + } + if (model.wasPropertyExplicitlySet("confidence")) { + this.confidence(model.getConfidence()); + } + if (model.wasPropertyExplicitlySet("frames")) { + this.frames(model.getFrames()); + } + 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("videoSegment") + private final VideoSegment videoSegment; + + public VideoSegment getVideoSegment() { + return videoSegment; + } + + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private final Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @return the value + */ + public Float getConfidence() { + return confidence; + } + + /** Face frames in a segment. */ + @com.fasterxml.jackson.annotation.JsonProperty("frames") + private final java.util.List frames; + + /** + * Face frames in a segment. + * + * @return the value + */ + public java.util.List getFrames() { + return frames; + } + + @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("VideoFaceSegment("); + sb.append("super=").append(super.toString()); + sb.append("videoSegment=").append(String.valueOf(this.videoSegment)); + sb.append(", confidence=").append(String.valueOf(this.confidence)); + sb.append(", frames=").append(String.valueOf(this.frames)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoFaceSegment)) { + return false; + } + + VideoFaceSegment other = (VideoFaceSegment) o; + return java.util.Objects.equals(this.videoSegment, other.videoSegment) + && java.util.Objects.equals(this.confidence, other.confidence) + && java.util.Objects.equals(this.frames, other.frames) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.videoSegment == null ? 43 : this.videoSegment.hashCode()); + result = (result * PRIME) + (this.confidence == null ? 43 : this.confidence.hashCode()); + result = (result * PRIME) + (this.frames == null ? 43 : this.frames.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFeature.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFeature.java new file mode 100644 index 00000000000..76aee97a7c7 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoFeature.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.aivision.model; + +/** + * Details about a video feature 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: 20220125") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "featureType", + defaultImpl = VideoFeature.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = VideoObjectDetectionFeature.class, + name = "OBJECT_DETECTION"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = VideoFaceDetectionFeature.class, + name = "FACE_DETECTION"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = VideoTextDetectionFeature.class, + name = "TEXT_DETECTION"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = VideoObjectTrackingFeature.class, + name = "OBJECT_TRACKING"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = VideoLabelDetectionFeature.class, + name = "LABEL_DETECTION") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class VideoFeature extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected VideoFeature() { + 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("VideoFeature("); + 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 VideoFeature)) { + return false; + } + + VideoFeature other = (VideoFeature) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The feature of video analysis. Allowed values are: - LABEL_DETECTION: Label detection + * feature(IC). - OBJECT_DETECTION: Object detection feature(OD). - TEXT_DETECTION: Text + * detection feature(OCR). - FACE_DETECTION: Face detection feature(fd). - OBJECT_TRACKING: + * Object tracking feature(OT). + */ + public enum FeatureType implements com.oracle.bmc.http.internal.BmcEnum { + LabelDetection("LABEL_DETECTION"), + ObjectDetection("OBJECT_DETECTION"), + TextDetection("TEXT_DETECTION"), + FaceDetection("FACE_DETECTION"), + ObjectTracking("OBJECT_TRACKING"), + + /** + * 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(FeatureType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FeatureType v : FeatureType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + FeatureType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FeatureType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'FeatureType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoJob.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoJob.java new file mode 100644 index 00000000000..3cf48a75a13 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoJob.java @@ -0,0 +1,784 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * Job details for a video analysis.
+ * 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 = VideoJob.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoJob extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "features", + "inputLocation", + "timeAccepted", + "timeStarted", + "timeFinished", + "percentComplete", + "outputLocation", + "lifecycleState", + "lifecycleDetails", + "freeformTags", + "definedTags", + "systemTags" + }) + public VideoJob( + String id, + String compartmentId, + String displayName, + java.util.List features, + InputLocation inputLocation, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + Float percentComplete, + OutputLocation outputLocation, + LifecycleState lifecycleState, + LifecycleDetails lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.features = features; + this.inputLocation = inputLocation; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.percentComplete = percentComplete; + this.outputLocation = outputLocation; + 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 { + /** Id of the job. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Id of the job. + * + * @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 starts the job. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The ocid of the compartment that starts the job. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Video job display name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Video job display name. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** a list of document analysis features. */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * a list of document analysis features. + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("inputLocation") + private InputLocation inputLocation; + + public Builder inputLocation(InputLocation inputLocation) { + this.inputLocation = inputLocation; + this.__explicitlySet__.add("inputLocation"); + return this; + } + /** Job accepted time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * Job accepted time. + * + * @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; + } + /** Job started time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * Job started time. + * + * @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; + } + /** Job finished time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * Job finished time. + * + * @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; + } + /** + * How much progress the operation has made, vs the total amount of work that must be + * performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * How much progress the operation has made, vs the total amount of work that must be + * performed. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("outputLocation") + private OutputLocation outputLocation; + + public Builder outputLocation(OutputLocation outputLocation) { + this.outputLocation = outputLocation; + this.__explicitlySet__.add("outputLocation"); + return this; + } + /** The current state of the batch document job. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the batch document job. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Detailed status of FAILED state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private LifecycleDetails lifecycleDetails; + + /** + * Detailed status of FAILED state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(LifecycleDetails lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * A simple key-value pair that is applied without any predefined name, type, or scope. It + * exists for cross-compatibility only. For example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * A simple key-value pair that is applied without any predefined name, type, or scope. It + * exists for cross-compatibility only. For 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. For + * 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. For + * 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; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. For example: + * {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. For 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 VideoJob build() { + VideoJob model = + new VideoJob( + this.id, + this.compartmentId, + this.displayName, + this.features, + this.inputLocation, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.percentComplete, + this.outputLocation, + 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(VideoJob 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("features")) { + this.features(model.getFeatures()); + } + if (model.wasPropertyExplicitlySet("inputLocation")) { + this.inputLocation(model.getInputLocation()); + } + 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("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("outputLocation")) { + this.outputLocation(model.getOutputLocation()); + } + 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); + } + + /** Id of the job. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Id of the job. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The ocid of the compartment that starts the job. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The ocid of the compartment that starts the job. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Video job display name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Video job display name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** a list of document analysis features. */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * a list of document analysis features. + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + + @com.fasterxml.jackson.annotation.JsonProperty("inputLocation") + private final InputLocation inputLocation; + + public InputLocation getInputLocation() { + return inputLocation; + } + + /** Job accepted time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * Job accepted time. + * + * @return the value + */ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** Job started time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * Job started time. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** Job finished time. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * Job finished time. + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * How much progress the operation has made, vs the total amount of work that must be performed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * How much progress the operation has made, vs the total amount of work that must be performed. + * + * @return the value + */ + public Float getPercentComplete() { + return percentComplete; + } + + @com.fasterxml.jackson.annotation.JsonProperty("outputLocation") + private final OutputLocation outputLocation; + + public OutputLocation getOutputLocation() { + return outputLocation; + } + + /** The current state of the batch document job. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Succeeded("SUCCEEDED"), + Failed("FAILED"), + Accepted("ACCEPTED"), + Canceled("CANCELED"), + InProgress("IN_PROGRESS"), + Canceling("CANCELING"), + + /** + * 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 batch document job. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the batch document job. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Detailed status of FAILED state. */ + public enum LifecycleDetails implements com.oracle.bmc.http.internal.BmcEnum { + PartiallySucceeded("PARTIALLY_SUCCEEDED"), + CompletelyFailed("COMPLETELY_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(LifecycleDetails.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleDetails v : LifecycleDetails.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleDetails(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleDetails create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleDetails', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Detailed status of FAILED state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final LifecycleDetails lifecycleDetails; + + /** + * Detailed status of FAILED state. + * + * @return the value + */ + public LifecycleDetails getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * A simple key-value pair that is applied without any predefined name, type, or scope. It + * exists for cross-compatibility only. For example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * A simple key-value pair that is applied without any predefined name, type, or scope. It + * exists for cross-compatibility only. For 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. For + * 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. For + * example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. For example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. For 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("VideoJob("); + 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(", features=").append(String.valueOf(this.features)); + sb.append(", inputLocation=").append(String.valueOf(this.inputLocation)); + 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(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", outputLocation=").append(String.valueOf(this.outputLocation)); + 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 VideoJob)) { + return false; + } + + VideoJob other = (VideoJob) 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.features, other.features) + && java.util.Objects.equals(this.inputLocation, other.inputLocation) + && 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.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.outputLocation, other.outputLocation) + && 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.features == null ? 43 : this.features.hashCode()); + result = + (result * PRIME) + + (this.inputLocation == null ? 43 : this.inputLocation.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.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = + (result * PRIME) + + (this.outputLocation == null ? 43 : this.outputLocation.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-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoLabel.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoLabel.java new file mode 100644 index 00000000000..cc115aae38a --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoLabel.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.aivision.model; + +/** + * Detected label in a video.
+ * 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 = VideoLabel.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoLabel extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "segments"}) + public VideoLabel(String name, java.util.List segments) { + super(); + this.name = name; + this.segments = segments; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Detected label name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Detected label name. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Label segments in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("segments") + private java.util.List segments; + + /** + * Label segments in a video. + * + * @param segments the value to set + * @return this builder + */ + public Builder segments(java.util.List segments) { + this.segments = segments; + this.__explicitlySet__.add("segments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoLabel build() { + VideoLabel model = new VideoLabel(this.name, this.segments); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoLabel model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("segments")) { + this.segments(model.getSegments()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Detected label name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Detected label name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Label segments in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("segments") + private final java.util.List segments; + + /** + * Label segments in a video. + * + * @return the value + */ + public java.util.List getSegments() { + return segments; + } + + @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("VideoLabel("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", segments=").append(String.valueOf(this.segments)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoLabel)) { + return false; + } + + VideoLabel other = (VideoLabel) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.segments, other.segments) + && 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.segments == null ? 43 : this.segments.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoLabelDetectionFeature.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoLabelDetectionFeature.java new file mode 100644 index 00000000000..949dd5059ad --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoLabelDetectionFeature.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.aivision.model; + +/** + * Video label detection 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: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VideoLabelDetectionFeature.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "featureType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoLabelDetectionFeature extends VideoFeature { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minConfidence") + private Float minConfidence; + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + * + * @param minConfidence the value to set + * @return this builder + */ + public Builder minConfidence(Float minConfidence) { + this.minConfidence = minConfidence; + this.__explicitlySet__.add("minConfidence"); + return this; + } + /** The maximum number of results per video frame to return. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxResults") + private Integer maxResults; + + /** + * The maximum number of results per video frame to return. + * + * @param maxResults the value to set + * @return this builder + */ + public Builder maxResults(Integer maxResults) { + this.maxResults = maxResults; + this.__explicitlySet__.add("maxResults"); + return this; + } + /** The custom model ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * The custom model ID. + * + * @param modelId the value to set + * @return this builder + */ + public Builder modelId(String modelId) { + this.modelId = modelId; + this.__explicitlySet__.add("modelId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoLabelDetectionFeature build() { + VideoLabelDetectionFeature model = + new VideoLabelDetectionFeature( + this.minConfidence, this.maxResults, this.modelId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoLabelDetectionFeature model) { + if (model.wasPropertyExplicitlySet("minConfidence")) { + this.minConfidence(model.getMinConfidence()); + } + if (model.wasPropertyExplicitlySet("maxResults")) { + this.maxResults(model.getMaxResults()); + } + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public VideoLabelDetectionFeature(Float minConfidence, Integer maxResults, String modelId) { + super(); + this.minConfidence = minConfidence; + this.maxResults = maxResults; + this.modelId = modelId; + } + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minConfidence") + private final Float minConfidence; + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + * + * @return the value + */ + public Float getMinConfidence() { + return minConfidence; + } + + /** The maximum number of results per video frame to return. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxResults") + private final Integer maxResults; + + /** + * The maximum number of results per video frame to return. + * + * @return the value + */ + public Integer getMaxResults() { + return maxResults; + } + + /** The custom model ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * The custom model ID. + * + * @return the value + */ + public String getModelId() { + return modelId; + } + + @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("VideoLabelDetectionFeature("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", minConfidence=").append(String.valueOf(this.minConfidence)); + sb.append(", maxResults=").append(String.valueOf(this.maxResults)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoLabelDetectionFeature)) { + return false; + } + + VideoLabelDetectionFeature other = (VideoLabelDetectionFeature) o; + return java.util.Objects.equals(this.minConfidence, other.minConfidence) + && java.util.Objects.equals(this.maxResults, other.maxResults) + && java.util.Objects.equals(this.modelId, other.modelId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.minConfidence == null ? 43 : this.minConfidence.hashCode()); + result = (result * PRIME) + (this.maxResults == null ? 43 : this.maxResults.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoLabelSegment.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoLabelSegment.java new file mode 100644 index 00000000000..5043de946af --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoLabelSegment.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * A label segment in a video.
+ * 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 = VideoLabelSegment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoLabelSegment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"videoSegment", "confidence"}) + public VideoLabelSegment(VideoSegment videoSegment, Float confidence) { + super(); + this.videoSegment = videoSegment; + this.confidence = confidence; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("videoSegment") + private VideoSegment videoSegment; + + public Builder videoSegment(VideoSegment videoSegment) { + this.videoSegment = videoSegment; + this.__explicitlySet__.add("videoSegment"); + return this; + } + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @param confidence the value to set + * @return this builder + */ + public Builder confidence(Float confidence) { + this.confidence = confidence; + this.__explicitlySet__.add("confidence"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoLabelSegment build() { + VideoLabelSegment model = new VideoLabelSegment(this.videoSegment, this.confidence); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoLabelSegment model) { + if (model.wasPropertyExplicitlySet("videoSegment")) { + this.videoSegment(model.getVideoSegment()); + } + if (model.wasPropertyExplicitlySet("confidence")) { + this.confidence(model.getConfidence()); + } + 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("videoSegment") + private final VideoSegment videoSegment; + + public VideoSegment getVideoSegment() { + return videoSegment; + } + + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private final Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @return the value + */ + public Float getConfidence() { + return confidence; + } + + @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("VideoLabelSegment("); + sb.append("super=").append(super.toString()); + sb.append("videoSegment=").append(String.valueOf(this.videoSegment)); + sb.append(", confidence=").append(String.valueOf(this.confidence)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoLabelSegment)) { + return false; + } + + VideoLabelSegment other = (VideoLabelSegment) o; + return java.util.Objects.equals(this.videoSegment, other.videoSegment) + && java.util.Objects.equals(this.confidence, other.confidence) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.videoSegment == null ? 43 : this.videoSegment.hashCode()); + result = (result * PRIME) + (this.confidence == null ? 43 : this.confidence.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoMetadata.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoMetadata.java new file mode 100644 index 00000000000..b170dba2940 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoMetadata.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * Video 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: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VideoMetadata.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoMetadata extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"frameCount", "frameRate", "frameWidth", "frameHeight"}) + public VideoMetadata( + Integer frameCount, Float frameRate, Integer frameWidth, Integer frameHeight) { + super(); + this.frameCount = frameCount; + this.frameRate = frameRate; + this.frameWidth = frameWidth; + this.frameHeight = frameHeight; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Total number of frames. */ + @com.fasterxml.jackson.annotation.JsonProperty("frameCount") + private Integer frameCount; + + /** + * Total number of frames. + * + * @param frameCount the value to set + * @return this builder + */ + public Builder frameCount(Integer frameCount) { + this.frameCount = frameCount; + this.__explicitlySet__.add("frameCount"); + return this; + } + /** Video framerate. */ + @com.fasterxml.jackson.annotation.JsonProperty("frameRate") + private Float frameRate; + + /** + * Video framerate. + * + * @param frameRate the value to set + * @return this builder + */ + public Builder frameRate(Float frameRate) { + this.frameRate = frameRate; + this.__explicitlySet__.add("frameRate"); + return this; + } + /** Width of each frame. */ + @com.fasterxml.jackson.annotation.JsonProperty("frameWidth") + private Integer frameWidth; + + /** + * Width of each frame. + * + * @param frameWidth the value to set + * @return this builder + */ + public Builder frameWidth(Integer frameWidth) { + this.frameWidth = frameWidth; + this.__explicitlySet__.add("frameWidth"); + return this; + } + /** Height of each frame. */ + @com.fasterxml.jackson.annotation.JsonProperty("frameHeight") + private Integer frameHeight; + + /** + * Height of each frame. + * + * @param frameHeight the value to set + * @return this builder + */ + public Builder frameHeight(Integer frameHeight) { + this.frameHeight = frameHeight; + this.__explicitlySet__.add("frameHeight"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoMetadata build() { + VideoMetadata model = + new VideoMetadata( + this.frameCount, this.frameRate, this.frameWidth, this.frameHeight); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoMetadata model) { + if (model.wasPropertyExplicitlySet("frameCount")) { + this.frameCount(model.getFrameCount()); + } + if (model.wasPropertyExplicitlySet("frameRate")) { + this.frameRate(model.getFrameRate()); + } + if (model.wasPropertyExplicitlySet("frameWidth")) { + this.frameWidth(model.getFrameWidth()); + } + if (model.wasPropertyExplicitlySet("frameHeight")) { + this.frameHeight(model.getFrameHeight()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Total number of frames. */ + @com.fasterxml.jackson.annotation.JsonProperty("frameCount") + private final Integer frameCount; + + /** + * Total number of frames. + * + * @return the value + */ + public Integer getFrameCount() { + return frameCount; + } + + /** Video framerate. */ + @com.fasterxml.jackson.annotation.JsonProperty("frameRate") + private final Float frameRate; + + /** + * Video framerate. + * + * @return the value + */ + public Float getFrameRate() { + return frameRate; + } + + /** Width of each frame. */ + @com.fasterxml.jackson.annotation.JsonProperty("frameWidth") + private final Integer frameWidth; + + /** + * Width of each frame. + * + * @return the value + */ + public Integer getFrameWidth() { + return frameWidth; + } + + /** Height of each frame. */ + @com.fasterxml.jackson.annotation.JsonProperty("frameHeight") + private final Integer frameHeight; + + /** + * Height of each frame. + * + * @return the value + */ + public Integer getFrameHeight() { + return frameHeight; + } + + @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("VideoMetadata("); + sb.append("super=").append(super.toString()); + sb.append("frameCount=").append(String.valueOf(this.frameCount)); + sb.append(", frameRate=").append(String.valueOf(this.frameRate)); + sb.append(", frameWidth=").append(String.valueOf(this.frameWidth)); + sb.append(", frameHeight=").append(String.valueOf(this.frameHeight)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoMetadata)) { + return false; + } + + VideoMetadata other = (VideoMetadata) o; + return java.util.Objects.equals(this.frameCount, other.frameCount) + && java.util.Objects.equals(this.frameRate, other.frameRate) + && java.util.Objects.equals(this.frameWidth, other.frameWidth) + && java.util.Objects.equals(this.frameHeight, other.frameHeight) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.frameCount == null ? 43 : this.frameCount.hashCode()); + result = (result * PRIME) + (this.frameRate == null ? 43 : this.frameRate.hashCode()); + result = (result * PRIME) + (this.frameWidth == null ? 43 : this.frameWidth.hashCode()); + result = (result * PRIME) + (this.frameHeight == null ? 43 : this.frameHeight.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObject.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObject.java new file mode 100644 index 00000000000..0fd7a0ff724 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObject.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.aivision.model; + +/** + * Detected object in a video.
+ * 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 = VideoObject.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoObject extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "segments"}) + public VideoObject(String name, java.util.List segments) { + super(); + this.name = name; + this.segments = segments; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Detected object name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Detected object name. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Object segments in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("segments") + private java.util.List segments; + + /** + * Object segments in a video. + * + * @param segments the value to set + * @return this builder + */ + public Builder segments(java.util.List segments) { + this.segments = segments; + this.__explicitlySet__.add("segments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoObject build() { + VideoObject model = new VideoObject(this.name, this.segments); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoObject model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("segments")) { + this.segments(model.getSegments()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Detected object name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Detected object name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Object segments in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("segments") + private final java.util.List segments; + + /** + * Object segments in a video. + * + * @return the value + */ + public java.util.List getSegments() { + return segments; + } + + @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("VideoObject("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", segments=").append(String.valueOf(this.segments)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoObject)) { + return false; + } + + VideoObject other = (VideoObject) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.segments, other.segments) + && 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.segments == null ? 43 : this.segments.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectDetectionFeature.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectDetectionFeature.java new file mode 100644 index 00000000000..63b5b4cb7a8 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectDetectionFeature.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.aivision.model; + +/** + * Video object detection 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: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VideoObjectDetectionFeature.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "featureType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoObjectDetectionFeature extends VideoFeature { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minConfidence") + private Float minConfidence; + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + * + * @param minConfidence the value to set + * @return this builder + */ + public Builder minConfidence(Float minConfidence) { + this.minConfidence = minConfidence; + this.__explicitlySet__.add("minConfidence"); + return this; + } + /** The maximum number of results per frame to return. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxResults") + private Integer maxResults; + + /** + * The maximum number of results per frame to return. + * + * @param maxResults the value to set + * @return this builder + */ + public Builder maxResults(Integer maxResults) { + this.maxResults = maxResults; + this.__explicitlySet__.add("maxResults"); + return this; + } + /** The custom model ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * The custom model ID. + * + * @param modelId the value to set + * @return this builder + */ + public Builder modelId(String modelId) { + this.modelId = modelId; + this.__explicitlySet__.add("modelId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoObjectDetectionFeature build() { + VideoObjectDetectionFeature model = + new VideoObjectDetectionFeature( + this.minConfidence, this.maxResults, this.modelId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoObjectDetectionFeature model) { + if (model.wasPropertyExplicitlySet("minConfidence")) { + this.minConfidence(model.getMinConfidence()); + } + if (model.wasPropertyExplicitlySet("maxResults")) { + this.maxResults(model.getMaxResults()); + } + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public VideoObjectDetectionFeature(Float minConfidence, Integer maxResults, String modelId) { + super(); + this.minConfidence = minConfidence; + this.maxResults = maxResults; + this.modelId = modelId; + } + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minConfidence") + private final Float minConfidence; + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + * + * @return the value + */ + public Float getMinConfidence() { + return minConfidence; + } + + /** The maximum number of results per frame to return. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxResults") + private final Integer maxResults; + + /** + * The maximum number of results per frame to return. + * + * @return the value + */ + public Integer getMaxResults() { + return maxResults; + } + + /** The custom model ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * The custom model ID. + * + * @return the value + */ + public String getModelId() { + return modelId; + } + + @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("VideoObjectDetectionFeature("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", minConfidence=").append(String.valueOf(this.minConfidence)); + sb.append(", maxResults=").append(String.valueOf(this.maxResults)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoObjectDetectionFeature)) { + return false; + } + + VideoObjectDetectionFeature other = (VideoObjectDetectionFeature) o; + return java.util.Objects.equals(this.minConfidence, other.minConfidence) + && java.util.Objects.equals(this.maxResults, other.maxResults) + && java.util.Objects.equals(this.modelId, other.modelId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.minConfidence == null ? 43 : this.minConfidence.hashCode()); + result = (result * PRIME) + (this.maxResults == null ? 43 : this.maxResults.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectFrame.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectFrame.java new file mode 100644 index 00000000000..8507136d032 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectFrame.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.aivision.model; + +/** + * An object frame.
+ * 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 = VideoObjectFrame.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoObjectFrame + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"timeOffsetMs", "confidence", "boundingPolygon"}) + public VideoObjectFrame( + Integer timeOffsetMs, Float confidence, BoundingPolygon boundingPolygon) { + super(); + this.timeOffsetMs = timeOffsetMs; + this.confidence = confidence; + this.boundingPolygon = boundingPolygon; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Time offset(Milliseconds) in the video. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOffsetMs") + private Integer timeOffsetMs; + + /** + * Time offset(Milliseconds) in the video. + * + * @param timeOffsetMs the value to set + * @return this builder + */ + public Builder timeOffsetMs(Integer timeOffsetMs) { + this.timeOffsetMs = timeOffsetMs; + this.__explicitlySet__.add("timeOffsetMs"); + return this; + } + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @param confidence the value to set + * @return this builder + */ + public Builder confidence(Float confidence) { + this.confidence = confidence; + this.__explicitlySet__.add("confidence"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("boundingPolygon") + private BoundingPolygon boundingPolygon; + + public Builder boundingPolygon(BoundingPolygon boundingPolygon) { + this.boundingPolygon = boundingPolygon; + this.__explicitlySet__.add("boundingPolygon"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoObjectFrame build() { + VideoObjectFrame model = + new VideoObjectFrame(this.timeOffsetMs, this.confidence, this.boundingPolygon); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoObjectFrame model) { + if (model.wasPropertyExplicitlySet("timeOffsetMs")) { + this.timeOffsetMs(model.getTimeOffsetMs()); + } + if (model.wasPropertyExplicitlySet("confidence")) { + this.confidence(model.getConfidence()); + } + if (model.wasPropertyExplicitlySet("boundingPolygon")) { + this.boundingPolygon(model.getBoundingPolygon()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Time offset(Milliseconds) in the video. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOffsetMs") + private final Integer timeOffsetMs; + + /** + * Time offset(Milliseconds) in the video. + * + * @return the value + */ + public Integer getTimeOffsetMs() { + return timeOffsetMs; + } + + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private final Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @return the value + */ + public Float getConfidence() { + return confidence; + } + + @com.fasterxml.jackson.annotation.JsonProperty("boundingPolygon") + private final BoundingPolygon boundingPolygon; + + public BoundingPolygon getBoundingPolygon() { + return boundingPolygon; + } + + @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("VideoObjectFrame("); + sb.append("super=").append(super.toString()); + sb.append("timeOffsetMs=").append(String.valueOf(this.timeOffsetMs)); + sb.append(", confidence=").append(String.valueOf(this.confidence)); + sb.append(", boundingPolygon=").append(String.valueOf(this.boundingPolygon)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoObjectFrame)) { + return false; + } + + VideoObjectFrame other = (VideoObjectFrame) o; + return java.util.Objects.equals(this.timeOffsetMs, other.timeOffsetMs) + && java.util.Objects.equals(this.confidence, other.confidence) + && java.util.Objects.equals(this.boundingPolygon, other.boundingPolygon) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.timeOffsetMs == null ? 43 : this.timeOffsetMs.hashCode()); + result = (result * PRIME) + (this.confidence == null ? 43 : this.confidence.hashCode()); + result = + (result * PRIME) + + (this.boundingPolygon == null ? 43 : this.boundingPolygon.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectSegment.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectSegment.java new file mode 100644 index 00000000000..01d310662ac --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectSegment.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * An object segment in a video.
+ * 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 = VideoObjectSegment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoObjectSegment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"videoSegment", "confidence", "frames"}) + public VideoObjectSegment( + VideoSegment videoSegment, Float confidence, java.util.List frames) { + super(); + this.videoSegment = videoSegment; + this.confidence = confidence; + this.frames = frames; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("videoSegment") + private VideoSegment videoSegment; + + public Builder videoSegment(VideoSegment videoSegment) { + this.videoSegment = videoSegment; + this.__explicitlySet__.add("videoSegment"); + return this; + } + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @param confidence the value to set + * @return this builder + */ + public Builder confidence(Float confidence) { + this.confidence = confidence; + this.__explicitlySet__.add("confidence"); + return this; + } + /** Object frame in a segment. */ + @com.fasterxml.jackson.annotation.JsonProperty("frames") + private java.util.List frames; + + /** + * Object frame in a segment. + * + * @param frames the value to set + * @return this builder + */ + public Builder frames(java.util.List frames) { + this.frames = frames; + this.__explicitlySet__.add("frames"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoObjectSegment build() { + VideoObjectSegment model = + new VideoObjectSegment(this.videoSegment, this.confidence, this.frames); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoObjectSegment model) { + if (model.wasPropertyExplicitlySet("videoSegment")) { + this.videoSegment(model.getVideoSegment()); + } + if (model.wasPropertyExplicitlySet("confidence")) { + this.confidence(model.getConfidence()); + } + if (model.wasPropertyExplicitlySet("frames")) { + this.frames(model.getFrames()); + } + 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("videoSegment") + private final VideoSegment videoSegment; + + public VideoSegment getVideoSegment() { + return videoSegment; + } + + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private final Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @return the value + */ + public Float getConfidence() { + return confidence; + } + + /** Object frame in a segment. */ + @com.fasterxml.jackson.annotation.JsonProperty("frames") + private final java.util.List frames; + + /** + * Object frame in a segment. + * + * @return the value + */ + public java.util.List getFrames() { + return frames; + } + + @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("VideoObjectSegment("); + sb.append("super=").append(super.toString()); + sb.append("videoSegment=").append(String.valueOf(this.videoSegment)); + sb.append(", confidence=").append(String.valueOf(this.confidence)); + sb.append(", frames=").append(String.valueOf(this.frames)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoObjectSegment)) { + return false; + } + + VideoObjectSegment other = (VideoObjectSegment) o; + return java.util.Objects.equals(this.videoSegment, other.videoSegment) + && java.util.Objects.equals(this.confidence, other.confidence) + && java.util.Objects.equals(this.frames, other.frames) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.videoSegment == null ? 43 : this.videoSegment.hashCode()); + result = (result * PRIME) + (this.confidence == null ? 43 : this.confidence.hashCode()); + result = (result * PRIME) + (this.frames == null ? 43 : this.frames.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectTrackingFeature.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectTrackingFeature.java new file mode 100644 index 00000000000..9984bf270b1 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoObjectTrackingFeature.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.aivision.model; + +/** + * Video object tracking 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: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VideoObjectTrackingFeature.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "featureType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoObjectTrackingFeature extends VideoFeature { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minConfidence") + private Float minConfidence; + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + * + * @param minConfidence the value to set + * @return this builder + */ + public Builder minConfidence(Float minConfidence) { + this.minConfidence = minConfidence; + this.__explicitlySet__.add("minConfidence"); + return this; + } + /** The maximum number of results per frame to return. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxResults") + private Integer maxResults; + + /** + * The maximum number of results per frame to return. + * + * @param maxResults the value to set + * @return this builder + */ + public Builder maxResults(Integer maxResults) { + this.maxResults = maxResults; + this.__explicitlySet__.add("maxResults"); + return this; + } + /** The custom model ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * The custom model ID. + * + * @param modelId the value to set + * @return this builder + */ + public Builder modelId(String modelId) { + this.modelId = modelId; + this.__explicitlySet__.add("modelId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoObjectTrackingFeature build() { + VideoObjectTrackingFeature model = + new VideoObjectTrackingFeature( + this.minConfidence, this.maxResults, this.modelId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoObjectTrackingFeature model) { + if (model.wasPropertyExplicitlySet("minConfidence")) { + this.minConfidence(model.getMinConfidence()); + } + if (model.wasPropertyExplicitlySet("maxResults")) { + this.maxResults(model.getMaxResults()); + } + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public VideoObjectTrackingFeature(Float minConfidence, Integer maxResults, String modelId) { + super(); + this.minConfidence = minConfidence; + this.maxResults = maxResults; + this.modelId = modelId; + } + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minConfidence") + private final Float minConfidence; + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + * + * @return the value + */ + public Float getMinConfidence() { + return minConfidence; + } + + /** The maximum number of results per frame to return. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxResults") + private final Integer maxResults; + + /** + * The maximum number of results per frame to return. + * + * @return the value + */ + public Integer getMaxResults() { + return maxResults; + } + + /** The custom model ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * The custom model ID. + * + * @return the value + */ + public String getModelId() { + return modelId; + } + + @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("VideoObjectTrackingFeature("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", minConfidence=").append(String.valueOf(this.minConfidence)); + sb.append(", maxResults=").append(String.valueOf(this.maxResults)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoObjectTrackingFeature)) { + return false; + } + + VideoObjectTrackingFeature other = (VideoObjectTrackingFeature) o; + return java.util.Objects.equals(this.minConfidence, other.minConfidence) + && java.util.Objects.equals(this.maxResults, other.maxResults) + && java.util.Objects.equals(this.modelId, other.modelId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.minConfidence == null ? 43 : this.minConfidence.hashCode()); + result = (result * PRIME) + (this.maxResults == null ? 43 : this.maxResults.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoSegment.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoSegment.java new file mode 100644 index 00000000000..0853c252e9d --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoSegment.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.aivision.model; + +/** + * A sequence of frames that was (or appears to be) continuously captured for a label/object/text?. + *
+ * 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 = VideoSegment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoSegment extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"startTimeOffsetMs", "endTimeOffsetMs"}) + public VideoSegment(Integer startTimeOffsetMs, Integer endTimeOffsetMs) { + super(); + this.startTimeOffsetMs = startTimeOffsetMs; + this.endTimeOffsetMs = endTimeOffsetMs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Video start time offset(Milliseconds). */ + @com.fasterxml.jackson.annotation.JsonProperty("startTimeOffsetMs") + private Integer startTimeOffsetMs; + + /** + * Video start time offset(Milliseconds). + * + * @param startTimeOffsetMs the value to set + * @return this builder + */ + public Builder startTimeOffsetMs(Integer startTimeOffsetMs) { + this.startTimeOffsetMs = startTimeOffsetMs; + this.__explicitlySet__.add("startTimeOffsetMs"); + return this; + } + /** Video end time offset(Milliseconds). */ + @com.fasterxml.jackson.annotation.JsonProperty("endTimeOffsetMs") + private Integer endTimeOffsetMs; + + /** + * Video end time offset(Milliseconds). + * + * @param endTimeOffsetMs the value to set + * @return this builder + */ + public Builder endTimeOffsetMs(Integer endTimeOffsetMs) { + this.endTimeOffsetMs = endTimeOffsetMs; + this.__explicitlySet__.add("endTimeOffsetMs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoSegment build() { + VideoSegment model = new VideoSegment(this.startTimeOffsetMs, this.endTimeOffsetMs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoSegment model) { + if (model.wasPropertyExplicitlySet("startTimeOffsetMs")) { + this.startTimeOffsetMs(model.getStartTimeOffsetMs()); + } + if (model.wasPropertyExplicitlySet("endTimeOffsetMs")) { + this.endTimeOffsetMs(model.getEndTimeOffsetMs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Video start time offset(Milliseconds). */ + @com.fasterxml.jackson.annotation.JsonProperty("startTimeOffsetMs") + private final Integer startTimeOffsetMs; + + /** + * Video start time offset(Milliseconds). + * + * @return the value + */ + public Integer getStartTimeOffsetMs() { + return startTimeOffsetMs; + } + + /** Video end time offset(Milliseconds). */ + @com.fasterxml.jackson.annotation.JsonProperty("endTimeOffsetMs") + private final Integer endTimeOffsetMs; + + /** + * Video end time offset(Milliseconds). + * + * @return the value + */ + public Integer getEndTimeOffsetMs() { + return endTimeOffsetMs; + } + + @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("VideoSegment("); + sb.append("super=").append(super.toString()); + sb.append("startTimeOffsetMs=").append(String.valueOf(this.startTimeOffsetMs)); + sb.append(", endTimeOffsetMs=").append(String.valueOf(this.endTimeOffsetMs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoSegment)) { + return false; + } + + VideoSegment other = (VideoSegment) o; + return java.util.Objects.equals(this.startTimeOffsetMs, other.startTimeOffsetMs) + && java.util.Objects.equals(this.endTimeOffsetMs, other.endTimeOffsetMs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.startTimeOffsetMs == null ? 43 : this.startTimeOffsetMs.hashCode()); + result = + (result * PRIME) + + (this.endTimeOffsetMs == null ? 43 : this.endTimeOffsetMs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoText.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoText.java new file mode 100644 index 00000000000..964c2743af4 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoText.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.aivision.model; + +/** + * Detected text in a video.
+ * 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 = VideoText.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoText extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"text", "segments"}) + public VideoText(String text, java.util.List segments) { + super(); + this.text = text; + this.segments = segments; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Detected text. */ + @com.fasterxml.jackson.annotation.JsonProperty("text") + private String text; + + /** + * Detected text. + * + * @param text the value to set + * @return this builder + */ + public Builder text(String text) { + this.text = text; + this.__explicitlySet__.add("text"); + return this; + } + /** Text segments in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("segments") + private java.util.List segments; + + /** + * Text segments in a video. + * + * @param segments the value to set + * @return this builder + */ + public Builder segments(java.util.List segments) { + this.segments = segments; + this.__explicitlySet__.add("segments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoText build() { + VideoText model = new VideoText(this.text, this.segments); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoText model) { + if (model.wasPropertyExplicitlySet("text")) { + this.text(model.getText()); + } + if (model.wasPropertyExplicitlySet("segments")) { + this.segments(model.getSegments()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Detected text. */ + @com.fasterxml.jackson.annotation.JsonProperty("text") + private final String text; + + /** + * Detected text. + * + * @return the value + */ + public String getText() { + return text; + } + + /** Text segments in a video. */ + @com.fasterxml.jackson.annotation.JsonProperty("segments") + private final java.util.List segments; + + /** + * Text segments in a video. + * + * @return the value + */ + public java.util.List getSegments() { + return segments; + } + + @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("VideoText("); + sb.append("super=").append(super.toString()); + sb.append("text=").append(String.valueOf(this.text)); + sb.append(", segments=").append(String.valueOf(this.segments)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoText)) { + return false; + } + + VideoText other = (VideoText) o; + return java.util.Objects.equals(this.text, other.text) + && java.util.Objects.equals(this.segments, other.segments) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.text == null ? 43 : this.text.hashCode()); + result = (result * PRIME) + (this.segments == null ? 43 : this.segments.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTextDetectionFeature.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTextDetectionFeature.java new file mode 100644 index 00000000000..8995d7a32c3 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTextDetectionFeature.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.aivision.model; + +/** + * Video text detection 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: 20220125") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VideoTextDetectionFeature.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "featureType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoTextDetectionFeature extends VideoFeature { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minConfidence") + private Float minConfidence; + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + * + * @param minConfidence the value to set + * @return this builder + */ + public Builder minConfidence(Float minConfidence) { + this.minConfidence = minConfidence; + this.__explicitlySet__.add("minConfidence"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoTextDetectionFeature build() { + VideoTextDetectionFeature model = new VideoTextDetectionFeature(this.minConfidence); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoTextDetectionFeature model) { + if (model.wasPropertyExplicitlySet("minConfidence")) { + this.minConfidence(model.getMinConfidence()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public VideoTextDetectionFeature(Float minConfidence) { + super(); + this.minConfidence = minConfidence; + } + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + */ + @com.fasterxml.jackson.annotation.JsonProperty("minConfidence") + private final Float minConfidence; + + /** + * The minimum confidence score, between 0 and 1, when the value is set, results with lower + * confidence will not be returned. + * + * @return the value + */ + public Float getMinConfidence() { + return minConfidence; + } + + @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("VideoTextDetectionFeature("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", minConfidence=").append(String.valueOf(this.minConfidence)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoTextDetectionFeature)) { + return false; + } + + VideoTextDetectionFeature other = (VideoTextDetectionFeature) o; + return java.util.Objects.equals(this.minConfidence, other.minConfidence) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.minConfidence == null ? 43 : this.minConfidence.hashCode()); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTextFrame.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTextFrame.java new file mode 100644 index 00000000000..0c3b60a7dd7 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTextFrame.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * A text frame.
+ * 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 = VideoTextFrame.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoTextFrame + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"timeOffsetMs", "confidence", "boundingPolygon"}) + public VideoTextFrame(Integer timeOffsetMs, Float confidence, BoundingPolygon boundingPolygon) { + super(); + this.timeOffsetMs = timeOffsetMs; + this.confidence = confidence; + this.boundingPolygon = boundingPolygon; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Time offset(Milliseconds) in the video. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOffsetMs") + private Integer timeOffsetMs; + + /** + * Time offset(Milliseconds) in the video. + * + * @param timeOffsetMs the value to set + * @return this builder + */ + public Builder timeOffsetMs(Integer timeOffsetMs) { + this.timeOffsetMs = timeOffsetMs; + this.__explicitlySet__.add("timeOffsetMs"); + return this; + } + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @param confidence the value to set + * @return this builder + */ + public Builder confidence(Float confidence) { + this.confidence = confidence; + this.__explicitlySet__.add("confidence"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("boundingPolygon") + private BoundingPolygon boundingPolygon; + + public Builder boundingPolygon(BoundingPolygon boundingPolygon) { + this.boundingPolygon = boundingPolygon; + this.__explicitlySet__.add("boundingPolygon"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoTextFrame build() { + VideoTextFrame model = + new VideoTextFrame(this.timeOffsetMs, this.confidence, this.boundingPolygon); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoTextFrame model) { + if (model.wasPropertyExplicitlySet("timeOffsetMs")) { + this.timeOffsetMs(model.getTimeOffsetMs()); + } + if (model.wasPropertyExplicitlySet("confidence")) { + this.confidence(model.getConfidence()); + } + if (model.wasPropertyExplicitlySet("boundingPolygon")) { + this.boundingPolygon(model.getBoundingPolygon()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Time offset(Milliseconds) in the video. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOffsetMs") + private final Integer timeOffsetMs; + + /** + * Time offset(Milliseconds) in the video. + * + * @return the value + */ + public Integer getTimeOffsetMs() { + return timeOffsetMs; + } + + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private final Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @return the value + */ + public Float getConfidence() { + return confidence; + } + + @com.fasterxml.jackson.annotation.JsonProperty("boundingPolygon") + private final BoundingPolygon boundingPolygon; + + public BoundingPolygon getBoundingPolygon() { + return boundingPolygon; + } + + @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("VideoTextFrame("); + sb.append("super=").append(super.toString()); + sb.append("timeOffsetMs=").append(String.valueOf(this.timeOffsetMs)); + sb.append(", confidence=").append(String.valueOf(this.confidence)); + sb.append(", boundingPolygon=").append(String.valueOf(this.boundingPolygon)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoTextFrame)) { + return false; + } + + VideoTextFrame other = (VideoTextFrame) o; + return java.util.Objects.equals(this.timeOffsetMs, other.timeOffsetMs) + && java.util.Objects.equals(this.confidence, other.confidence) + && java.util.Objects.equals(this.boundingPolygon, other.boundingPolygon) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.timeOffsetMs == null ? 43 : this.timeOffsetMs.hashCode()); + result = (result * PRIME) + (this.confidence == null ? 43 : this.confidence.hashCode()); + result = + (result * PRIME) + + (this.boundingPolygon == null ? 43 : this.boundingPolygon.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTextSegment.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTextSegment.java new file mode 100644 index 00000000000..c5e95675cc3 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTextSegment.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * A text segment in a video.
+ * 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 = VideoTextSegment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoTextSegment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"videoSegment", "confidence", "frames"}) + public VideoTextSegment( + VideoSegment videoSegment, Float confidence, java.util.List frames) { + super(); + this.videoSegment = videoSegment; + this.confidence = confidence; + this.frames = frames; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("videoSegment") + private VideoSegment videoSegment; + + public Builder videoSegment(VideoSegment videoSegment) { + this.videoSegment = videoSegment; + this.__explicitlySet__.add("videoSegment"); + return this; + } + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @param confidence the value to set + * @return this builder + */ + public Builder confidence(Float confidence) { + this.confidence = confidence; + this.__explicitlySet__.add("confidence"); + return this; + } + /** Text frame in a segment. */ + @com.fasterxml.jackson.annotation.JsonProperty("frames") + private java.util.List frames; + + /** + * Text frame in a segment. + * + * @param frames the value to set + * @return this builder + */ + public Builder frames(java.util.List frames) { + this.frames = frames; + this.__explicitlySet__.add("frames"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoTextSegment build() { + VideoTextSegment model = + new VideoTextSegment(this.videoSegment, this.confidence, this.frames); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoTextSegment model) { + if (model.wasPropertyExplicitlySet("videoSegment")) { + this.videoSegment(model.getVideoSegment()); + } + if (model.wasPropertyExplicitlySet("confidence")) { + this.confidence(model.getConfidence()); + } + if (model.wasPropertyExplicitlySet("frames")) { + this.frames(model.getFrames()); + } + 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("videoSegment") + private final VideoSegment videoSegment; + + public VideoSegment getVideoSegment() { + return videoSegment; + } + + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private final Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @return the value + */ + public Float getConfidence() { + return confidence; + } + + /** Text frame in a segment. */ + @com.fasterxml.jackson.annotation.JsonProperty("frames") + private final java.util.List frames; + + /** + * Text frame in a segment. + * + * @return the value + */ + public java.util.List getFrames() { + return frames; + } + + @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("VideoTextSegment("); + sb.append("super=").append(super.toString()); + sb.append("videoSegment=").append(String.valueOf(this.videoSegment)); + sb.append(", confidence=").append(String.valueOf(this.confidence)); + sb.append(", frames=").append(String.valueOf(this.frames)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoTextSegment)) { + return false; + } + + VideoTextSegment other = (VideoTextSegment) o; + return java.util.Objects.equals(this.videoSegment, other.videoSegment) + && java.util.Objects.equals(this.confidence, other.confidence) + && java.util.Objects.equals(this.frames, other.frames) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.videoSegment == null ? 43 : this.videoSegment.hashCode()); + result = (result * PRIME) + (this.confidence == null ? 43 : this.confidence.hashCode()); + result = (result * PRIME) + (this.frames == null ? 43 : this.frames.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackedObject.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackedObject.java new file mode 100644 index 00000000000..5ce7761817a --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackedObject.java @@ -0,0 +1,233 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * Tracked object in a video.
+ * 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 = VideoTrackedObject.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoTrackedObject + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "objectId", "properties", "segments"}) + public VideoTrackedObject( + String name, + Integer objectId, + VideoTrackedObjectProperties properties, + java.util.List segments) { + super(); + this.name = name; + this.objectId = objectId; + this.properties = properties; + this.segments = segments; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the object category label. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the object category label. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Unique identifier for the object. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectId") + private Integer objectId; + + /** + * Unique identifier for the object. + * + * @param objectId the value to set + * @return this builder + */ + public Builder objectId(Integer objectId) { + this.objectId = objectId; + this.__explicitlySet__.add("objectId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private VideoTrackedObjectProperties properties; + + public Builder properties(VideoTrackedObjectProperties properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + /** Segments for the tracked object. */ + @com.fasterxml.jackson.annotation.JsonProperty("segments") + private java.util.List segments; + + /** + * Segments for the tracked object. + * + * @param segments the value to set + * @return this builder + */ + public Builder segments(java.util.List segments) { + this.segments = segments; + this.__explicitlySet__.add("segments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoTrackedObject build() { + VideoTrackedObject model = + new VideoTrackedObject( + this.name, this.objectId, this.properties, this.segments); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoTrackedObject model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("objectId")) { + this.objectId(model.getObjectId()); + } + if (model.wasPropertyExplicitlySet("properties")) { + this.properties(model.getProperties()); + } + if (model.wasPropertyExplicitlySet("segments")) { + this.segments(model.getSegments()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the object category label. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the object category label. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Unique identifier for the object. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectId") + private final Integer objectId; + + /** + * Unique identifier for the object. + * + * @return the value + */ + public Integer getObjectId() { + return objectId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final VideoTrackedObjectProperties properties; + + public VideoTrackedObjectProperties getProperties() { + return properties; + } + + /** Segments for the tracked object. */ + @com.fasterxml.jackson.annotation.JsonProperty("segments") + private final java.util.List segments; + + /** + * Segments for the tracked object. + * + * @return the value + */ + public java.util.List getSegments() { + return segments; + } + + @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("VideoTrackedObject("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", objectId=").append(String.valueOf(this.objectId)); + sb.append(", properties=").append(String.valueOf(this.properties)); + sb.append(", segments=").append(String.valueOf(this.segments)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoTrackedObject)) { + return false; + } + + VideoTrackedObject other = (VideoTrackedObject) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.objectId, other.objectId) + && java.util.Objects.equals(this.properties, other.properties) + && java.util.Objects.equals(this.segments, other.segments) + && 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.objectId == null ? 43 : this.objectId.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + (this.segments == null ? 43 : this.segments.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackedObjectProperties.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackedObjectProperties.java new file mode 100644 index 00000000000..c327c852071 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackedObjectProperties.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.aivision.model; + +/** + * Properties of a tracked object in a video.
+ * 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 = VideoTrackedObjectProperties.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoTrackedObjectProperties + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"axleCount"}) + public VideoTrackedObjectProperties(Integer axleCount) { + super(); + this.axleCount = axleCount; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The axle count value of a tracked vehicle. */ + @com.fasterxml.jackson.annotation.JsonProperty("axleCount") + private Integer axleCount; + + /** + * The axle count value of a tracked vehicle. + * + * @param axleCount the value to set + * @return this builder + */ + public Builder axleCount(Integer axleCount) { + this.axleCount = axleCount; + this.__explicitlySet__.add("axleCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoTrackedObjectProperties build() { + VideoTrackedObjectProperties model = new VideoTrackedObjectProperties(this.axleCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoTrackedObjectProperties model) { + if (model.wasPropertyExplicitlySet("axleCount")) { + this.axleCount(model.getAxleCount()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The axle count value of a tracked vehicle. */ + @com.fasterxml.jackson.annotation.JsonProperty("axleCount") + private final Integer axleCount; + + /** + * The axle count value of a tracked vehicle. + * + * @return the value + */ + public Integer getAxleCount() { + return axleCount; + } + + @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("VideoTrackedObjectProperties("); + sb.append("super=").append(super.toString()); + sb.append("axleCount=").append(String.valueOf(this.axleCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoTrackedObjectProperties)) { + return false; + } + + VideoTrackedObjectProperties other = (VideoTrackedObjectProperties) o; + return java.util.Objects.equals(this.axleCount, other.axleCount) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.axleCount == null ? 43 : this.axleCount.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackedObjectSegment.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackedObjectSegment.java new file mode 100644 index 00000000000..17dacfcf027 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackedObjectSegment.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.aivision.model; + +/** + * A segment of a tracked object in a video.
+ * 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 = VideoTrackedObjectSegment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoTrackedObjectSegment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"videoSegment", "confidence", "frames"}) + public VideoTrackedObjectSegment( + VideoSegment videoSegment, + Float confidence, + java.util.List frames) { + super(); + this.videoSegment = videoSegment; + this.confidence = confidence; + this.frames = frames; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("videoSegment") + private VideoSegment videoSegment; + + public Builder videoSegment(VideoSegment videoSegment) { + this.videoSegment = videoSegment; + this.__explicitlySet__.add("videoSegment"); + return this; + } + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @param confidence the value to set + * @return this builder + */ + public Builder confidence(Float confidence) { + this.confidence = confidence; + this.__explicitlySet__.add("confidence"); + return this; + } + /** Frames within the segment. */ + @com.fasterxml.jackson.annotation.JsonProperty("frames") + private java.util.List frames; + + /** + * Frames within the segment. + * + * @param frames the value to set + * @return this builder + */ + public Builder frames(java.util.List frames) { + this.frames = frames; + this.__explicitlySet__.add("frames"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoTrackedObjectSegment build() { + VideoTrackedObjectSegment model = + new VideoTrackedObjectSegment(this.videoSegment, this.confidence, this.frames); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoTrackedObjectSegment model) { + if (model.wasPropertyExplicitlySet("videoSegment")) { + this.videoSegment(model.getVideoSegment()); + } + if (model.wasPropertyExplicitlySet("confidence")) { + this.confidence(model.getConfidence()); + } + if (model.wasPropertyExplicitlySet("frames")) { + this.frames(model.getFrames()); + } + 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("videoSegment") + private final VideoSegment videoSegment; + + public VideoSegment getVideoSegment() { + return videoSegment; + } + + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private final Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @return the value + */ + public Float getConfidence() { + return confidence; + } + + /** Frames within the segment. */ + @com.fasterxml.jackson.annotation.JsonProperty("frames") + private final java.util.List frames; + + /** + * Frames within the segment. + * + * @return the value + */ + public java.util.List getFrames() { + return frames; + } + + @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("VideoTrackedObjectSegment("); + sb.append("super=").append(super.toString()); + sb.append("videoSegment=").append(String.valueOf(this.videoSegment)); + sb.append(", confidence=").append(String.valueOf(this.confidence)); + sb.append(", frames=").append(String.valueOf(this.frames)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VideoTrackedObjectSegment)) { + return false; + } + + VideoTrackedObjectSegment other = (VideoTrackedObjectSegment) o; + return java.util.Objects.equals(this.videoSegment, other.videoSegment) + && java.util.Objects.equals(this.confidence, other.confidence) + && java.util.Objects.equals(this.frames, other.frames) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.videoSegment == null ? 43 : this.videoSegment.hashCode()); + result = (result * PRIME) + (this.confidence == null ? 43 : this.confidence.hashCode()); + result = (result * PRIME) + (this.frames == null ? 43 : this.frames.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackingFrame.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackingFrame.java new file mode 100644 index 00000000000..be1231e1e10 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/model/VideoTrackingFrame.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.aivision.model; + +/** + * A frame capturing a tracked object.
+ * 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 = VideoTrackingFrame.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VideoTrackingFrame + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "timeOffsetMs", + "confidence", + "boundingPolygon", + "properties" + }) + public VideoTrackingFrame( + Integer timeOffsetMs, + Float confidence, + BoundingPolygon boundingPolygon, + java.util.List properties) { + super(); + this.timeOffsetMs = timeOffsetMs; + this.confidence = confidence; + this.boundingPolygon = boundingPolygon; + this.properties = properties; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Time offset(Milliseconds) of the frame. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOffsetMs") + private Integer timeOffsetMs; + + /** + * Time offset(Milliseconds) of the frame. + * + * @param timeOffsetMs the value to set + * @return this builder + */ + public Builder timeOffsetMs(Integer timeOffsetMs) { + this.timeOffsetMs = timeOffsetMs; + this.__explicitlySet__.add("timeOffsetMs"); + return this; + } + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @param confidence the value to set + * @return this builder + */ + public Builder confidence(Float confidence) { + this.confidence = confidence; + this.__explicitlySet__.add("confidence"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("boundingPolygon") + private BoundingPolygon boundingPolygon; + + public Builder boundingPolygon(BoundingPolygon boundingPolygon) { + this.boundingPolygon = boundingPolygon; + this.__explicitlySet__.add("boundingPolygon"); + return this; + } + /** Properties associated with the tracked object in the frame. */ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.List properties; + + /** + * Properties associated with the tracked object in the frame. + * + * @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; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VideoTrackingFrame build() { + VideoTrackingFrame model = + new VideoTrackingFrame( + this.timeOffsetMs, + this.confidence, + this.boundingPolygon, + this.properties); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VideoTrackingFrame model) { + if (model.wasPropertyExplicitlySet("timeOffsetMs")) { + this.timeOffsetMs(model.getTimeOffsetMs()); + } + if (model.wasPropertyExplicitlySet("confidence")) { + this.confidence(model.getConfidence()); + } + if (model.wasPropertyExplicitlySet("boundingPolygon")) { + this.boundingPolygon(model.getBoundingPolygon()); + } + 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); + } + + /** Time offset(Milliseconds) of the frame. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeOffsetMs") + private final Integer timeOffsetMs; + + /** + * Time offset(Milliseconds) of the frame. + * + * @return the value + */ + public Integer getTimeOffsetMs() { + return timeOffsetMs; + } + + /** The confidence score, between 0 and 1. */ + @com.fasterxml.jackson.annotation.JsonProperty("confidence") + private final Float confidence; + + /** + * The confidence score, between 0 and 1. + * + * @return the value + */ + public Float getConfidence() { + return confidence; + } + + @com.fasterxml.jackson.annotation.JsonProperty("boundingPolygon") + private final BoundingPolygon boundingPolygon; + + public BoundingPolygon getBoundingPolygon() { + return boundingPolygon; + } + + /** Properties associated with the tracked object in the frame. */ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private final java.util.List properties; + + /** + * Properties associated with the tracked object in the frame. + * + * @return the value + */ + public java.util.List 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("VideoTrackingFrame("); + sb.append("super=").append(super.toString()); + sb.append("timeOffsetMs=").append(String.valueOf(this.timeOffsetMs)); + sb.append(", confidence=").append(String.valueOf(this.confidence)); + sb.append(", boundingPolygon=").append(String.valueOf(this.boundingPolygon)); + 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 VideoTrackingFrame)) { + return false; + } + + VideoTrackingFrame other = (VideoTrackingFrame) o; + return java.util.Objects.equals(this.timeOffsetMs, other.timeOffsetMs) + && java.util.Objects.equals(this.confidence, other.confidence) + && java.util.Objects.equals(this.boundingPolygon, other.boundingPolygon) + && 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.timeOffsetMs == null ? 43 : this.timeOffsetMs.hashCode()); + result = (result * PRIME) + (this.confidence == null ? 43 : this.confidence.hashCode()); + result = + (result * PRIME) + + (this.boundingPolygon == null ? 43 : this.boundingPolygon.hashCode()); + result = (result * PRIME) + (this.properties == null ? 43 : this.properties.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/requests/CancelVideoJobRequest.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/requests/CancelVideoJobRequest.java new file mode 100644 index 00000000000..2879a447fbd --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/requests/CancelVideoJobRequest.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.aivision.requests; + +import com.oracle.bmc.aivision.model.*; +/** + * Example: Click here to see how to use CancelVideoJobRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +public class CancelVideoJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** Video job id. */ + private String videoJobId; + + /** Video job id. */ + public String getVideoJobId() { + return videoJobId; + } + /** + * 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< + CancelVideoJobRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Video job id. */ + private String videoJobId = null; + + /** + * Video job id. + * + * @param videoJobId the value to set + * @return this builder instance + */ + public Builder videoJobId(String videoJobId) { + this.videoJobId = videoJobId; + 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(CancelVideoJobRequest o) { + videoJobId(o.getVideoJobId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CancelVideoJobRequest 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 CancelVideoJobRequest + */ + public CancelVideoJobRequest build() { + CancelVideoJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of CancelVideoJobRequest 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 CancelVideoJobRequest + */ + public CancelVideoJobRequest buildWithoutInvocationCallback() { + CancelVideoJobRequest request = new CancelVideoJobRequest(); + request.videoJobId = videoJobId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new CancelVideoJobRequest(videoJobId, 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().videoJobId(videoJobId).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(",videoJobId=").append(String.valueOf(this.videoJobId)); + 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 CancelVideoJobRequest)) { + return false; + } + + CancelVideoJobRequest other = (CancelVideoJobRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.videoJobId, other.videoJobId) + && 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.videoJobId == null ? 43 : this.videoJobId.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-aivision/src/main/java/com/oracle/bmc/aivision/requests/CreateVideoJobRequest.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/requests/CreateVideoJobRequest.java new file mode 100644 index 00000000000..be5369415ae --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/requests/CreateVideoJobRequest.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.aivision.requests; + +import com.oracle.bmc.aivision.model.*; +/** + * Example: Click here to see how to use CreateVideoJobRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +public class CreateVideoJobRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.aivision.model.CreateVideoJobDetails> { + + /** Details about the video analysis. */ + private com.oracle.bmc.aivision.model.CreateVideoJobDetails createVideoJobDetails; + + /** Details about the video analysis. */ + public com.oracle.bmc.aivision.model.CreateVideoJobDetails getCreateVideoJobDetails() { + return createVideoJobDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without the 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 the 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.aivision.model.CreateVideoJobDetails getBody$() { + return createVideoJobDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateVideoJobRequest, com.oracle.bmc.aivision.model.CreateVideoJobDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details about the video analysis. */ + private com.oracle.bmc.aivision.model.CreateVideoJobDetails createVideoJobDetails = null; + + /** + * Details about the video analysis. + * + * @param createVideoJobDetails the value to set + * @return this builder instance + */ + public Builder createVideoJobDetails( + com.oracle.bmc.aivision.model.CreateVideoJobDetails createVideoJobDetails) { + this.createVideoJobDetails = createVideoJobDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without the 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 the 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(CreateVideoJobRequest o) { + createVideoJobDetails(o.getCreateVideoJobDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateVideoJobRequest 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 CreateVideoJobRequest + */ + public CreateVideoJobRequest build() { + CreateVideoJobRequest 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.aivision.model.CreateVideoJobDetails body) { + createVideoJobDetails(body); + return this; + } + + /** + * Build the instance of CreateVideoJobRequest 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 CreateVideoJobRequest + */ + public CreateVideoJobRequest buildWithoutInvocationCallback() { + CreateVideoJobRequest request = new CreateVideoJobRequest(); + request.createVideoJobDetails = createVideoJobDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateVideoJobRequest(createVideoJobDetails, 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() + .createVideoJobDetails(createVideoJobDetails) + .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(",createVideoJobDetails=").append(String.valueOf(this.createVideoJobDetails)); + 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 CreateVideoJobRequest)) { + return false; + } + + CreateVideoJobRequest other = (CreateVideoJobRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.createVideoJobDetails, other.createVideoJobDetails) + && 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.createVideoJobDetails == null + ? 43 + : this.createVideoJobDetails.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-aivision/src/main/java/com/oracle/bmc/aivision/requests/GetVideoJobRequest.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/requests/GetVideoJobRequest.java new file mode 100644 index 00000000000..b0c9076adb5 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/requests/GetVideoJobRequest.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.aivision.requests; + +import com.oracle.bmc.aivision.model.*; +/** + * Example: Click here to see how to use GetVideoJobRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +public class GetVideoJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** Video job id. */ + private String videoJobId; + + /** Video job id. */ + public String getVideoJobId() { + return videoJobId; + } + /** 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< + GetVideoJobRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Video job id. */ + private String videoJobId = null; + + /** + * Video job id. + * + * @param videoJobId the value to set + * @return this builder instance + */ + public Builder videoJobId(String videoJobId) { + this.videoJobId = videoJobId; + 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(GetVideoJobRequest o) { + videoJobId(o.getVideoJobId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetVideoJobRequest 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 GetVideoJobRequest + */ + public GetVideoJobRequest build() { + GetVideoJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetVideoJobRequest 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 GetVideoJobRequest + */ + public GetVideoJobRequest buildWithoutInvocationCallback() { + GetVideoJobRequest request = new GetVideoJobRequest(); + request.videoJobId = videoJobId; + request.opcRequestId = opcRequestId; + return request; + // new GetVideoJobRequest(videoJobId, 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().videoJobId(videoJobId).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(",videoJobId=").append(String.valueOf(this.videoJobId)); + 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 GetVideoJobRequest)) { + return false; + } + + GetVideoJobRequest other = (GetVideoJobRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.videoJobId, other.videoJobId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.videoJobId == null ? 43 : this.videoJobId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/responses/CancelVideoJobResponse.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/responses/CancelVideoJobResponse.java new file mode 100644 index 00000000000..3c266332e4f --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/responses/CancelVideoJobResponse.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.aivision.responses; + +import com.oracle.bmc.aivision.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +public class CancelVideoJobResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A 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; + + /** + * A 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 CancelVideoJobResponse( + 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; + } + + /** + * A 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; + + /** + * A 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(CancelVideoJobResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CancelVideoJobResponse build() { + return new CancelVideoJobResponse(__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 CancelVideoJobResponse)) { + return false; + } + + CancelVideoJobResponse other = (CancelVideoJobResponse) 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-aivision/src/main/java/com/oracle/bmc/aivision/responses/CreateVideoJobResponse.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/responses/CreateVideoJobResponse.java new file mode 100644 index 00000000000..f4094e44c1e --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/responses/CreateVideoJobResponse.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.aivision.responses; + +import com.oracle.bmc.aivision.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +public class CreateVideoJobResponse 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; + } + + /** + * A 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; + + /** + * A 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 VideoJob} instance. */ + private com.oracle.bmc.aivision.model.VideoJob videoJob; + + /** + * The returned {@code VideoJob} instance. + * + * @return the value + */ + public com.oracle.bmc.aivision.model.VideoJob getVideoJob() { + return videoJob; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "videoJob" + }) + private CreateVideoJobResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.aivision.model.VideoJob videoJob) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.videoJob = videoJob; + } + + 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; + } + + /** + * A 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; + + /** + * A 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 VideoJob} instance. */ + private com.oracle.bmc.aivision.model.VideoJob videoJob; + + /** + * The returned {@code VideoJob} instance. + * + * @param videoJob the value to set + * @return this builder + */ + public Builder videoJob(com.oracle.bmc.aivision.model.VideoJob videoJob) { + this.videoJob = videoJob; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateVideoJobResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + videoJob(o.getVideoJob()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateVideoJobResponse build() { + return new CreateVideoJobResponse( + __httpStatusCode__, headers, etag, opcRequestId, videoJob); + } + } + + /** + * 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(",videoJob=").append(String.valueOf(videoJob)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVideoJobResponse)) { + return false; + } + + CreateVideoJobResponse other = (CreateVideoJobResponse) 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.videoJob, other.videoJob); + } + + @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.videoJob == null ? 43 : this.videoJob.hashCode()); + return result; + } +} diff --git a/bmc-aivision/src/main/java/com/oracle/bmc/aivision/responses/GetVideoJobResponse.java b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/responses/GetVideoJobResponse.java new file mode 100644 index 00000000000..cc5f0644886 --- /dev/null +++ b/bmc-aivision/src/main/java/com/oracle/bmc/aivision/responses/GetVideoJobResponse.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.aivision.responses; + +import com.oracle.bmc.aivision.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") +public class GetVideoJobResponse 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; + } + + /** + * A 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; + + /** + * A 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 VideoJob} instance. */ + private com.oracle.bmc.aivision.model.VideoJob videoJob; + + /** + * The returned {@code VideoJob} instance. + * + * @return the value + */ + public com.oracle.bmc.aivision.model.VideoJob getVideoJob() { + return videoJob; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "videoJob" + }) + private GetVideoJobResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.aivision.model.VideoJob videoJob) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.videoJob = videoJob; + } + + 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; + } + + /** + * A 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; + + /** + * A 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 VideoJob} instance. */ + private com.oracle.bmc.aivision.model.VideoJob videoJob; + + /** + * The returned {@code VideoJob} instance. + * + * @param videoJob the value to set + * @return this builder + */ + public Builder videoJob(com.oracle.bmc.aivision.model.VideoJob videoJob) { + this.videoJob = videoJob; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetVideoJobResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + videoJob(o.getVideoJob()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetVideoJobResponse build() { + return new GetVideoJobResponse( + __httpStatusCode__, headers, etag, opcRequestId, videoJob); + } + } + + /** + * 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(",videoJob=").append(String.valueOf(videoJob)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVideoJobResponse)) { + return false; + } + + GetVideoJobResponse other = (GetVideoJobResponse) 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.videoJob, other.videoJob); + } + + @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.videoJob == null ? 43 : this.videoJob.hashCode()); + return result; + } +} diff --git a/bmc-aivision/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aivision/reflect-config.json b/bmc-aivision/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aivision/reflect-config.json index 7c8fe096a01..02a8cf0668a 100644 --- a/bmc-aivision/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aivision/reflect-config.json +++ b/bmc-aivision/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-aivision/reflect-config.json @@ -61,6 +61,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.AnalyzeVideoResult", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.AnalyzeVideoResult$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.aivision.model.BoundingPolygon", @@ -173,6 +187,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.CreateVideoJobDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.CreateVideoJobDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.aivision.model.DataScienceLabelingDataset", @@ -792,6 +820,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.ObjectProperty", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.ObjectProperty$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.aivision.model.ObjectStorageDataset", @@ -1110,6 +1152,353 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoFace", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoFace$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoFaceDetectionFeature", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoFaceDetectionFeature$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoFaceFrame", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoFaceFrame$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoFaceSegment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoFaceSegment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoFeature", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoFeature$FeatureType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoJob", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoJob$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoJob$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoJob$LifecycleDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoLabel", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoLabel$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoLabelDetectionFeature", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoLabelDetectionFeature$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoLabelSegment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoLabelSegment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoMetadata", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoMetadata$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoObject", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoObject$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoObjectDetectionFeature", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoObjectDetectionFeature$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoObjectFrame", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoObjectFrame$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoObjectSegment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoObjectSegment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoObjectTrackingFeature", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoObjectTrackingFeature$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoSegment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoSegment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoText", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoText$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTextDetectionFeature", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTextDetectionFeature$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTextFrame", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTextFrame$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTextSegment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTextSegment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTrackedObject", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTrackedObject$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTrackedObjectProperties", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTrackedObjectProperties$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTrackedObjectSegment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTrackedObjectSegment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTrackingFrame", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.aivision.model.VideoTrackingFrame$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.aivision.model.Word", diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 12eb40f7728..55f67e541f6 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 3c54cf8c4d7..b2c586c169b 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index cbd7bca65ea..10844b47e3c 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 383183014b5..c84dfcfcdb7 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 8abcd764348..45be01b8d3f 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 97e87e3d70a..78be967478c 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 57d5e776191..282012e2fb1 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index c3f70871045..03d9796bda3 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 65f63ecc4ae..5f8a4ba8061 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 0ad79b5b38a..bec6d65561b 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index cbe9522634f..fcc19a77026 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 00142a8faee..b54b746b218 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index d1dfc052e31..bbee8d49d1e 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java index f0090d57b3a..a3f226e114a 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java @@ -83,6 +83,40 @@ public interface Bds extends AutoCloseable { ActivateBdsMetastoreConfigurationResponse activateBdsMetastoreConfiguration( ActivateBdsMetastoreConfigurationRequest request); + /** + * Activate IAM user sync configuration for the given identity configuration + * + * @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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * ActivateIamUserSyncConfiguration API. + */ + ActivateIamUserSyncConfigurationResponse activateIamUserSyncConfiguration( + ActivateIamUserSyncConfigurationRequest request); + + /** + * Activate UPST configuration for the given identity configuration + * + * @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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * ActivateUpstConfiguration API. + */ + ActivateUpstConfigurationResponse activateUpstConfiguration( + ActivateUpstConfigurationRequest request); + /** * Add an autoscale configuration to the cluster. * @@ -318,6 +352,23 @@ ChangeBdsInstanceCompartmentResponse changeBdsInstanceCompartment( CreateBdsMetastoreConfigurationResponse createBdsMetastoreConfiguration( CreateBdsMetastoreConfigurationRequest request); + /** + * Create an identity configuration for the 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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * CreateIdentityConfiguration API. + */ + CreateIdentityConfigurationResponse createIdentityConfiguration( + CreateIdentityConfigurationRequest request); + /** * Add a node volume backup configuration to the cluster for an indicated node type or node. * @@ -369,6 +420,40 @@ CreateNodeReplaceConfigurationResponse createNodeReplaceConfiguration( CreateResourcePrincipalConfigurationResponse createResourcePrincipalConfiguration( CreateResourcePrincipalConfigurationRequest request); + /** + * Deactivate the IAM user sync configuration. + * + * @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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * DeactivateIamUserSyncConfiguration API. + */ + DeactivateIamUserSyncConfigurationResponse deactivateIamUserSyncConfiguration( + DeactivateIamUserSyncConfigurationRequest request); + + /** + * Deactivate the UPST configuration represented by the provided 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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * DeactivateUpstConfiguration API. + */ + DeactivateUpstConfigurationResponse deactivateUpstConfiguration( + DeactivateUpstConfigurationRequest request); + /** * Deletes the user's API key represented by the provided ID. * @@ -418,6 +503,25 @@ CreateResourcePrincipalConfigurationResponse createResourcePrincipalConfiguratio DeleteBdsMetastoreConfigurationResponse deleteBdsMetastoreConfiguration( DeleteBdsMetastoreConfigurationRequest request); + /** + * Delete the identity configuration represented by the provided ID. Deletion is only allowed if + * this identity configuration is not associated with any active IAM user sync configuration or + * UPST configuration. + * + * @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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * DeleteIdentityConfiguration API. + */ + DeleteIdentityConfigurationResponse deleteIdentityConfiguration( + DeleteIdentityConfigurationRequest request); + /** * Delete the NodeBackup represented by the provided ID. * @@ -580,6 +684,23 @@ GetAutoScalingConfigurationResponse getAutoScalingConfiguration( GetBdsMetastoreConfigurationResponse getBdsMetastoreConfiguration( GetBdsMetastoreConfigurationRequest request); + /** + * Get details of one identity config on the 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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * GetIdentityConfiguration API. + */ + GetIdentityConfigurationResponse getIdentityConfiguration( + GetIdentityConfigurationRequest request); + /** * Returns details of NodeBackup identified by the given ID. * @@ -739,6 +860,22 @@ ListAutoScalingConfigurationsResponse listAutoScalingConfigurations( */ ListBdsApiKeysResponse listBdsApiKeys(ListBdsApiKeysRequest request); + /** + * Returns a list of cluster versions with associated odh and bds versions. + * + * @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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * ListBdsClusterVersions API. + */ + ListBdsClusterVersionsResponse listBdsClusterVersions(ListBdsClusterVersionsRequest request); + /** * Returns a list of all Big Data Service clusters in a compartment. * @@ -772,6 +909,23 @@ ListAutoScalingConfigurationsResponse listAutoScalingConfigurations( ListBdsMetastoreConfigurationsResponse listBdsMetastoreConfigurations( ListBdsMetastoreConfigurationsRequest request); + /** + * Returns a list of all identity configurations associated with this Big Data Service 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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * ListIdentityConfigurations API. + */ + ListIdentityConfigurationsResponse listIdentityConfigurations( + ListIdentityConfigurationsRequest request); + /** * Returns information about the NodeBackupConfigurations. * @@ -933,6 +1087,41 @@ ListResourcePrincipalConfigurationsResponse listResourcePrincipalConfigurations( */ ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + /** + * Refresh confidential application for the given identity configuration in case of any update + * to the confidential application (e.g. regenerated client secret) + * + * @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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * RefreshConfidentialApplication API. + */ + RefreshConfidentialApplicationResponse refreshConfidentialApplication( + RefreshConfidentialApplicationRequest request); + + /** + * Refresh token exchange kerberos principal keytab for the UPST enabled identity configuration + * + * @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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * RefreshUpstTokenExchangeKeytab API. + */ + RefreshUpstTokenExchangeKeytabResponse refreshUpstTokenExchangeKeytab( + RefreshUpstTokenExchangeKeytabRequest request); + /** * Deletes an autoscale configuration. * @@ -1192,6 +1381,23 @@ UpdateAutoScalingConfigurationResponse updateAutoScalingConfiguration( UpdateBdsMetastoreConfigurationResponse updateBdsMetastoreConfiguration( UpdateBdsMetastoreConfigurationRequest request); + /** + * Update the IAM user sync and UPST configuration for the specified identity configuration + * + * @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 will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. 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 + * UpdateIdentityConfiguration API. + */ + UpdateIdentityConfigurationResponse updateIdentityConfiguration( + UpdateIdentityConfigurationRequest request); + /** * Updates fields on NodeBackupConfiguration, including the name, the schedule. * diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java index 126f3378e00..2543ed4ebc5 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java @@ -81,6 +81,40 @@ public interface BdsAsync extends AutoCloseable { ActivateBdsMetastoreConfigurationResponse> handler); + /** + * Activate IAM user sync configuration for the given identity configuration + * + * @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 + activateIamUserSyncConfiguration( + ActivateIamUserSyncConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + ActivateIamUserSyncConfigurationRequest, + ActivateIamUserSyncConfigurationResponse> + handler); + + /** + * Activate UPST configuration for the given identity configuration + * + * @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 activateUpstConfiguration( + ActivateUpstConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + ActivateUpstConfigurationRequest, ActivateUpstConfigurationResponse> + handler); + /** * Add an autoscale configuration to the cluster. * @@ -309,6 +343,22 @@ java.util.concurrent.Future createBdsInstance( CreateBdsMetastoreConfigurationResponse> handler); + /** + * Create an identity configuration for the 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 createIdentityConfiguration( + CreateIdentityConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateIdentityConfigurationRequest, CreateIdentityConfigurationResponse> + handler); + /** * Add a node volume backup configuration to the cluster for an indicated node type or node. * @@ -363,6 +413,40 @@ java.util.concurrent.Future createBdsInstance( CreateResourcePrincipalConfigurationResponse> handler); + /** + * Deactivate the IAM user sync configuration. + * + * @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 + deactivateIamUserSyncConfiguration( + DeactivateIamUserSyncConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeactivateIamUserSyncConfigurationRequest, + DeactivateIamUserSyncConfigurationResponse> + handler); + + /** + * Deactivate the UPST configuration represented by the provided 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 deactivateUpstConfiguration( + DeactivateUpstConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeactivateUpstConfigurationRequest, DeactivateUpstConfigurationResponse> + handler); + /** * Deletes the user's API key represented by the provided ID. * @@ -412,6 +496,24 @@ java.util.concurrent.Future deleteBdsInstance( DeleteBdsMetastoreConfigurationResponse> handler); + /** + * Delete the identity configuration represented by the provided ID. Deletion is only allowed if + * this identity configuration is not associated with any active IAM user sync configuration or + * UPST configuration. + * + * @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 deleteIdentityConfiguration( + DeleteIdentityConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteIdentityConfigurationRequest, DeleteIdentityConfigurationResponse> + handler); + /** * Delete the NodeBackup represented by the provided ID. * @@ -574,6 +676,22 @@ java.util.concurrent.Future getBdsMetastor GetBdsMetastoreConfigurationResponse> handler); + /** + * Get details of one identity config on the 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 getIdentityConfiguration( + GetIdentityConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetIdentityConfigurationRequest, GetIdentityConfigurationResponse> + handler); + /** * Returns details of NodeBackup identified by the given ID. * @@ -733,6 +851,22 @@ java.util.concurrent.Future listBdsApiKeys( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Returns a list of cluster versions with associated odh and bds versions. + * + * @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 listBdsClusterVersions( + ListBdsClusterVersionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBdsClusterVersionsRequest, ListBdsClusterVersionsResponse> + handler); + /** * Returns a list of all Big Data Service clusters in a compartment. * @@ -766,6 +900,22 @@ java.util.concurrent.Future listBdsInstances( ListBdsMetastoreConfigurationsResponse> handler); + /** + * Returns a list of all identity configurations associated with this Big Data Service 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 listIdentityConfigurations( + ListIdentityConfigurationsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListIdentityConfigurationsRequest, ListIdentityConfigurationsResponse> + handler); + /** * Returns information about the NodeBackupConfigurations. * @@ -926,6 +1076,43 @@ java.util.concurrent.Future listWorkRequests( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Refresh confidential application for the given identity configuration in case of any update + * to the confidential application (e.g. regenerated client secret) + * + * @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 + refreshConfidentialApplication( + RefreshConfidentialApplicationRequest request, + com.oracle.bmc.responses.AsyncHandler< + RefreshConfidentialApplicationRequest, + RefreshConfidentialApplicationResponse> + handler); + + /** + * Refresh token exchange kerberos principal keytab for the UPST enabled identity configuration + * + * @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 + refreshUpstTokenExchangeKeytab( + RefreshUpstTokenExchangeKeytabRequest request, + com.oracle.bmc.responses.AsyncHandler< + RefreshUpstTokenExchangeKeytabRequest, + RefreshUpstTokenExchangeKeytabResponse> + handler); + /** * Deletes an autoscale configuration. * @@ -1185,6 +1372,22 @@ java.util.concurrent.Future updateBdsInstance( UpdateBdsMetastoreConfigurationResponse> handler); + /** + * Update the IAM user sync and UPST configuration for the specified identity configuration + * + * @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 updateIdentityConfiguration( + UpdateIdentityConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateIdentityConfigurationRequest, UpdateIdentityConfigurationResponse> + handler); + /** * Updates fields on NodeBackupConfiguration, including the name, the schedule. * diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java index cfbb922e389..00ad596bdb7 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java @@ -140,6 +140,95 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future + activateIamUserSyncConfiguration( + ActivateIamUserSyncConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ActivateIamUserSyncConfigurationRequest, + ActivateIamUserSyncConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getActivateIamUserSyncConfigurationDetails(), + "activateIamUserSyncConfigurationDetails is required"); + + return clientCall(request, ActivateIamUserSyncConfigurationResponse::builder) + .logger(LOG, "activateIamUserSyncConfiguration") + .serviceDetails( + "Bds", + "ActivateIamUserSyncConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/ActivateIamUserSyncConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateIamUserSyncConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("activateIamUserSyncConfiguration") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ActivateIamUserSyncConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ActivateIamUserSyncConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future activateUpstConfiguration( + ActivateUpstConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ActivateUpstConfigurationRequest, ActivateUpstConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getActivateUpstConfigurationDetails(), + "activateUpstConfigurationDetails is required"); + + return clientCall(request, ActivateUpstConfigurationResponse::builder) + .logger(LOG, "activateUpstConfiguration") + .serviceDetails( + "Bds", + "ActivateUpstConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/ActivateUpstConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateUpstConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("activateUpstConfiguration") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", ActivateUpstConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ActivateUpstConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future addAutoScalingConfiguration( @@ -642,6 +731,44 @@ public java.util.concurrent.Future createBdsInstance( .callAsync(handler); } + @Override + public java.util.concurrent.Future + createIdentityConfiguration( + CreateIdentityConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateIdentityConfigurationRequest, + CreateIdentityConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull( + request.getCreateIdentityConfigurationDetails(), + "createIdentityConfigurationDetails is required"); + + return clientCall(request, CreateIdentityConfigurationResponse::builder) + .logger(LOG, "createIdentityConfiguration") + .serviceDetails( + "Bds", + "CreateIdentityConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/CreateIdentityConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateIdentityConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", CreateIdentityConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateIdentityConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createNodeBackupConfiguration( @@ -759,6 +886,97 @@ public java.util.concurrent.Future createBdsInstance( .callAsync(handler); } + @Override + public java.util.concurrent.Future + deactivateIamUserSyncConfiguration( + DeactivateIamUserSyncConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeactivateIamUserSyncConfigurationRequest, + DeactivateIamUserSyncConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getDeactivateIamUserSyncConfigurationDetails(), + "deactivateIamUserSyncConfigurationDetails is required"); + + return clientCall(request, DeactivateIamUserSyncConfigurationResponse::builder) + .logger(LOG, "deactivateIamUserSyncConfiguration") + .serviceDetails( + "Bds", + "DeactivateIamUserSyncConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/DeactivateIamUserSyncConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DeactivateIamUserSyncConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("deactivateIamUserSyncConfiguration") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DeactivateIamUserSyncConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeactivateIamUserSyncConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deactivateUpstConfiguration( + DeactivateUpstConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeactivateUpstConfigurationRequest, + DeactivateUpstConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getDeactivateUpstConfigurationDetails(), + "deactivateUpstConfigurationDetails is required"); + + return clientCall(request, DeactivateUpstConfigurationResponse::builder) + .logger(LOG, "deactivateUpstConfiguration") + .serviceDetails( + "Bds", + "DeactivateUpstConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/DeactivateUpstConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DeactivateUpstConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("deactivateUpstConfiguration") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", DeactivateUpstConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeactivateUpstConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteBdsApiKey( DeleteBdsApiKeyRequest request, @@ -861,6 +1079,44 @@ public java.util.concurrent.Future deleteBdsInstance( .callAsync(handler); } + @Override + public java.util.concurrent.Future + deleteIdentityConfiguration( + DeleteIdentityConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteIdentityConfigurationRequest, + DeleteIdentityConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + + return clientCall(request, DeleteIdentityConfigurationResponse::builder) + .logger(LOG, "deleteIdentityConfiguration") + .serviceDetails( + "Bds", + "DeleteIdentityConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/DeleteIdentityConfiguration") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteIdentityConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-request-id", DeleteIdentityConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteIdentityConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteNodeBackup( DeleteNodeBackupRequest request, @@ -1236,6 +1492,46 @@ public java.util.concurrent.Future getBdsInstance( .callAsync(handler); } + @Override + public java.util.concurrent.Future getIdentityConfiguration( + GetIdentityConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetIdentityConfigurationRequest, GetIdentityConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + + return clientCall(request, GetIdentityConfigurationResponse::builder) + .logger(LOG, "getIdentityConfiguration") + .serviceDetails( + "Bds", + "GetIdentityConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/GetIdentityConfiguration") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetIdentityConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .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.bds.model.IdentityConfiguration.class, + GetIdentityConfigurationResponse.Builder::identityConfiguration) + .handleResponseHeaderString( + "opc-request-id", GetIdentityConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetIdentityConfigurationResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getNodeBackup( GetNodeBackupRequest request, @@ -1615,6 +1911,39 @@ public java.util.concurrent.Future listBdsApiKeys( .callAsync(handler); } + @Override + public java.util.concurrent.Future listBdsClusterVersions( + ListBdsClusterVersionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListBdsClusterVersionsRequest, ListBdsClusterVersionsResponse> + handler) { + + return clientCall(request, ListBdsClusterVersionsResponse::builder) + .logger(LOG, "listBdsClusterVersions") + .serviceDetails( + "Bds", + "ListBdsClusterVersions", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsClusterVersionSummary/ListBdsClusterVersions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListBdsClusterVersionsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsClusterVersions") + .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()) + .handleBodyList( + com.oracle.bmc.bds.model.BdsClusterVersionSummary.class, + ListBdsClusterVersionsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListBdsClusterVersionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListBdsClusterVersionsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listBdsInstances( ListBdsInstancesRequest request, @@ -1698,6 +2027,49 @@ public java.util.concurrent.Future listBdsInstances( .callAsync(handler); } + @Override + public java.util.concurrent.Future + listIdentityConfigurations( + ListIdentityConfigurationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListIdentityConfigurationsRequest, + ListIdentityConfigurationsResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListIdentityConfigurationsResponse::builder) + .logger(LOG, "listIdentityConfigurations") + .serviceDetails( + "Bds", + "ListIdentityConfigurations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/ListIdentityConfigurations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListIdentityConfigurationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.bds.model.IdentityConfigurationSummary.class, + ListIdentityConfigurationsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListIdentityConfigurationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListIdentityConfigurationsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listNodeBackupConfigurations( @@ -2089,6 +2461,98 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future + refreshConfidentialApplication( + RefreshConfidentialApplicationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RefreshConfidentialApplicationRequest, + RefreshConfidentialApplicationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getRefreshConfidentialApplicationDetails(), + "refreshConfidentialApplicationDetails is required"); + + return clientCall(request, RefreshConfidentialApplicationResponse::builder) + .logger(LOG, "refreshConfidentialApplication") + .serviceDetails( + "Bds", + "RefreshConfidentialApplication", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/RefreshConfidentialApplication") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RefreshConfidentialApplicationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("refreshConfidentialApplication") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + RefreshConfidentialApplicationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + RefreshConfidentialApplicationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + refreshUpstTokenExchangeKeytab( + RefreshUpstTokenExchangeKeytabRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RefreshUpstTokenExchangeKeytabRequest, + RefreshUpstTokenExchangeKeytabResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getRefreshUpstTokenExchangeKeytabDetails(), + "refreshUpstTokenExchangeKeytabDetails is required"); + + return clientCall(request, RefreshUpstTokenExchangeKeytabResponse::builder) + .logger(LOG, "refreshUpstTokenExchangeKeytab") + .serviceDetails( + "Bds", + "RefreshUpstTokenExchangeKeytab", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/RefreshUpstTokenExchangeKeytab") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RefreshUpstTokenExchangeKeytabRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("refreshUpstTokenExchangeKeytab") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + RefreshUpstTokenExchangeKeytabResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + RefreshUpstTokenExchangeKeytabResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future removeAutoScalingConfiguration( @@ -2713,6 +3177,49 @@ public java.util.concurrent.Future updateBdsInstance( .callAsync(handler); } + @Override + public java.util.concurrent.Future + updateIdentityConfiguration( + UpdateIdentityConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateIdentityConfigurationRequest, + UpdateIdentityConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getUpdateIdentityConfigurationDetails(), + "updateIdentityConfigurationDetails is required"); + + return clientCall(request, UpdateIdentityConfigurationResponse::builder) + .logger(LOG, "updateIdentityConfiguration") + .serviceDetails( + "Bds", + "UpdateIdentityConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/UpdateIdentityConfiguration") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateIdentityConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", UpdateIdentityConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateIdentityConfigurationResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateNodeBackupConfiguration( diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java index e042ad5adcb..fc62054e6fa 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java @@ -161,6 +161,87 @@ public ActivateBdsMetastoreConfigurationResponse activateBdsMetastoreConfigurati .callSync(); } + @Override + public ActivateIamUserSyncConfigurationResponse activateIamUserSyncConfiguration( + ActivateIamUserSyncConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getActivateIamUserSyncConfigurationDetails(), + "activateIamUserSyncConfigurationDetails is required"); + + return clientCall(request, ActivateIamUserSyncConfigurationResponse::builder) + .logger(LOG, "activateIamUserSyncConfiguration") + .serviceDetails( + "Bds", + "ActivateIamUserSyncConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/ActivateIamUserSyncConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateIamUserSyncConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("activateIamUserSyncConfiguration") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ActivateIamUserSyncConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ActivateIamUserSyncConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public ActivateUpstConfigurationResponse activateUpstConfiguration( + ActivateUpstConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getActivateUpstConfigurationDetails(), + "activateUpstConfigurationDetails is required"); + + return clientCall(request, ActivateUpstConfigurationResponse::builder) + .logger(LOG, "activateUpstConfiguration") + .serviceDetails( + "Bds", + "ActivateUpstConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/ActivateUpstConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateUpstConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("activateUpstConfiguration") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", ActivateUpstConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ActivateUpstConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public AddAutoScalingConfigurationResponse addAutoScalingConfiguration( AddAutoScalingConfigurationRequest request) { @@ -609,6 +690,39 @@ public CreateBdsMetastoreConfigurationResponse createBdsMetastoreConfiguration( .callSync(); } + @Override + public CreateIdentityConfigurationResponse createIdentityConfiguration( + CreateIdentityConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull( + request.getCreateIdentityConfigurationDetails(), + "createIdentityConfigurationDetails is required"); + + return clientCall(request, CreateIdentityConfigurationResponse::builder) + .logger(LOG, "createIdentityConfiguration") + .serviceDetails( + "Bds", + "CreateIdentityConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/CreateIdentityConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateIdentityConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", CreateIdentityConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateIdentityConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public CreateNodeBackupConfigurationResponse createNodeBackupConfiguration( CreateNodeBackupConfigurationRequest request) { @@ -711,6 +825,87 @@ public CreateResourcePrincipalConfigurationResponse createResourcePrincipalConfi .callSync(); } + @Override + public DeactivateIamUserSyncConfigurationResponse deactivateIamUserSyncConfiguration( + DeactivateIamUserSyncConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getDeactivateIamUserSyncConfigurationDetails(), + "deactivateIamUserSyncConfigurationDetails is required"); + + return clientCall(request, DeactivateIamUserSyncConfigurationResponse::builder) + .logger(LOG, "deactivateIamUserSyncConfiguration") + .serviceDetails( + "Bds", + "DeactivateIamUserSyncConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/DeactivateIamUserSyncConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DeactivateIamUserSyncConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("deactivateIamUserSyncConfiguration") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DeactivateIamUserSyncConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeactivateIamUserSyncConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public DeactivateUpstConfigurationResponse deactivateUpstConfiguration( + DeactivateUpstConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getDeactivateUpstConfigurationDetails(), + "deactivateUpstConfigurationDetails is required"); + + return clientCall(request, DeactivateUpstConfigurationResponse::builder) + .logger(LOG, "deactivateUpstConfiguration") + .serviceDetails( + "Bds", + "DeactivateUpstConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/DeactivateUpstConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DeactivateUpstConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("deactivateUpstConfiguration") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", DeactivateUpstConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeactivateUpstConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public DeleteBdsApiKeyResponse deleteBdsApiKey(DeleteBdsApiKeyRequest request) { @@ -800,6 +995,39 @@ public DeleteBdsMetastoreConfigurationResponse deleteBdsMetastoreConfiguration( .callSync(); } + @Override + public DeleteIdentityConfigurationResponse deleteIdentityConfiguration( + DeleteIdentityConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + + return clientCall(request, DeleteIdentityConfigurationResponse::builder) + .logger(LOG, "deleteIdentityConfiguration") + .serviceDetails( + "Bds", + "DeleteIdentityConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/DeleteIdentityConfiguration") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteIdentityConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-request-id", DeleteIdentityConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteIdentityConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public DeleteNodeBackupResponse deleteNodeBackup(DeleteNodeBackupRequest request) { @@ -1133,6 +1361,43 @@ public GetBdsMetastoreConfigurationResponse getBdsMetastoreConfiguration( .callSync(); } + @Override + public GetIdentityConfigurationResponse getIdentityConfiguration( + GetIdentityConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + + return clientCall(request, GetIdentityConfigurationResponse::builder) + .logger(LOG, "getIdentityConfiguration") + .serviceDetails( + "Bds", + "GetIdentityConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/GetIdentityConfiguration") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetIdentityConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .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.bds.model.IdentityConfiguration.class, + GetIdentityConfigurationResponse.Builder::identityConfiguration) + .handleResponseHeaderString( + "opc-request-id", GetIdentityConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetIdentityConfigurationResponse.Builder::etag) + .callSync(); + } + @Override public GetNodeBackupResponse getNodeBackup(GetNodeBackupRequest request) { @@ -1470,6 +1735,36 @@ public ListBdsApiKeysResponse listBdsApiKeys(ListBdsApiKeysRequest request) { .callSync(); } + @Override + public ListBdsClusterVersionsResponse listBdsClusterVersions( + ListBdsClusterVersionsRequest request) { + + return clientCall(request, ListBdsClusterVersionsResponse::builder) + .logger(LOG, "listBdsClusterVersions") + .serviceDetails( + "Bds", + "ListBdsClusterVersions", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsClusterVersionSummary/ListBdsClusterVersions") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListBdsClusterVersionsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsClusterVersions") + .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()) + .handleBodyList( + com.oracle.bmc.bds.model.BdsClusterVersionSummary.class, + ListBdsClusterVersionsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListBdsClusterVersionsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListBdsClusterVersionsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListBdsInstancesResponse listBdsInstances(ListBdsInstancesRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); @@ -1544,6 +1839,44 @@ public ListBdsMetastoreConfigurationsResponse listBdsMetastoreConfigurations( .callSync(); } + @Override + public ListIdentityConfigurationsResponse listIdentityConfigurations( + ListIdentityConfigurationsRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListIdentityConfigurationsResponse::builder) + .logger(LOG, "listIdentityConfigurations") + .serviceDetails( + "Bds", + "ListIdentityConfigurations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/ListIdentityConfigurations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListIdentityConfigurationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBodyList( + com.oracle.bmc.bds.model.IdentityConfigurationSummary.class, + ListIdentityConfigurationsResponse.Builder::items) + .handleResponseHeaderString( + "opc-request-id", ListIdentityConfigurationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListIdentityConfigurationsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListNodeBackupConfigurationsResponse listNodeBackupConfigurations( ListNodeBackupConfigurationsRequest request) { @@ -1895,6 +2228,88 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request .callSync(); } + @Override + public RefreshConfidentialApplicationResponse refreshConfidentialApplication( + RefreshConfidentialApplicationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getRefreshConfidentialApplicationDetails(), + "refreshConfidentialApplicationDetails is required"); + + return clientCall(request, RefreshConfidentialApplicationResponse::builder) + .logger(LOG, "refreshConfidentialApplication") + .serviceDetails( + "Bds", + "RefreshConfidentialApplication", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/RefreshConfidentialApplication") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RefreshConfidentialApplicationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("refreshConfidentialApplication") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + RefreshConfidentialApplicationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + RefreshConfidentialApplicationResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public RefreshUpstTokenExchangeKeytabResponse refreshUpstTokenExchangeKeytab( + RefreshUpstTokenExchangeKeytabRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getRefreshUpstTokenExchangeKeytabDetails(), + "refreshUpstTokenExchangeKeytabDetails is required"); + + return clientCall(request, RefreshUpstTokenExchangeKeytabResponse::builder) + .logger(LOG, "refreshUpstTokenExchangeKeytab") + .serviceDetails( + "Bds", + "RefreshUpstTokenExchangeKeytab", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/RefreshUpstTokenExchangeKeytab") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RefreshUpstTokenExchangeKeytabRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .appendPathParam("actions") + .appendPathParam("refreshUpstTokenExchangeKeytab") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + RefreshUpstTokenExchangeKeytabResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + RefreshUpstTokenExchangeKeytabResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public RemoveAutoScalingConfigurationResponse removeAutoScalingConfiguration( RemoveAutoScalingConfigurationRequest request) { @@ -2452,6 +2867,44 @@ public UpdateBdsMetastoreConfigurationResponse updateBdsMetastoreConfiguration( .callSync(); } + @Override + public UpdateIdentityConfigurationResponse updateIdentityConfiguration( + UpdateIdentityConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getIdentityConfigurationId(), "identityConfigurationId must not be blank"); + Objects.requireNonNull( + request.getUpdateIdentityConfigurationDetails(), + "updateIdentityConfigurationDetails is required"); + + return clientCall(request, UpdateIdentityConfigurationResponse::builder) + .logger(LOG, "updateIdentityConfiguration") + .serviceDetails( + "Bds", + "UpdateIdentityConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/IdentityConfiguration/UpdateIdentityConfiguration") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateIdentityConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("identityConfigurations") + .appendPathParam(request.getIdentityConfigurationId()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", UpdateIdentityConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateIdentityConfigurationResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public UpdateNodeBackupConfigurationResponse updateNodeBackupConfiguration( UpdateNodeBackupConfigurationRequest request) { diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java index 049efbc298c..88b002345be 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java @@ -282,6 +282,128 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listBdsClusterVersions 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 listBdsClusterVersionsResponseIterator( + final ListBdsClusterVersionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBdsClusterVersionsRequest.Builder, + ListBdsClusterVersionsRequest, + ListBdsClusterVersionsResponse>( + new java.util.function.Supplier() { + @Override + public ListBdsClusterVersionsRequest.Builder get() { + return ListBdsClusterVersionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBdsClusterVersionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsClusterVersionsRequest.Builder>, + ListBdsClusterVersionsRequest>() { + @Override + public ListBdsClusterVersionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsClusterVersionsRequest.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< + ListBdsClusterVersionsRequest, ListBdsClusterVersionsResponse>() { + @Override + public ListBdsClusterVersionsResponse apply( + ListBdsClusterVersionsRequest request) { + return client.listBdsClusterVersions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.bds.model.BdsClusterVersionSummary} objects contained in responses from the + * listBdsClusterVersions 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.bds.model.BdsClusterVersionSummary} objects contained in responses + * received from the service. + */ + public Iterable + listBdsClusterVersionsRecordIterator(final ListBdsClusterVersionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBdsClusterVersionsRequest.Builder, + ListBdsClusterVersionsRequest, + ListBdsClusterVersionsResponse, + com.oracle.bmc.bds.model.BdsClusterVersionSummary>( + new java.util.function.Supplier() { + @Override + public ListBdsClusterVersionsRequest.Builder get() { + return ListBdsClusterVersionsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBdsClusterVersionsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsClusterVersionsRequest.Builder>, + ListBdsClusterVersionsRequest>() { + @Override + public ListBdsClusterVersionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsClusterVersionsRequest.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< + ListBdsClusterVersionsRequest, ListBdsClusterVersionsResponse>() { + @Override + public ListBdsClusterVersionsResponse apply( + ListBdsClusterVersionsRequest request) { + return client.listBdsClusterVersions(request); + } + }, + new java.util.function.Function< + ListBdsClusterVersionsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListBdsClusterVersionsResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listBdsInstances operation. This iterable will fetch more data from the server as needed. @@ -525,6 +647,129 @@ public ListBdsMetastoreConfigurationsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listIdentityConfigurations 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 listIdentityConfigurationsResponseIterator( + final ListIdentityConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListIdentityConfigurationsRequest.Builder, + ListIdentityConfigurationsRequest, + ListIdentityConfigurationsResponse>( + new java.util.function.Supplier() { + @Override + public ListIdentityConfigurationsRequest.Builder get() { + return ListIdentityConfigurationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListIdentityConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIdentityConfigurationsRequest.Builder>, + ListIdentityConfigurationsRequest>() { + @Override + public ListIdentityConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIdentityConfigurationsRequest.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< + ListIdentityConfigurationsRequest, ListIdentityConfigurationsResponse>() { + @Override + public ListIdentityConfigurationsResponse apply( + ListIdentityConfigurationsRequest request) { + return client.listIdentityConfigurations(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.bds.model.IdentityConfigurationSummary} objects contained in responses from + * the listIdentityConfigurations 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.bds.model.IdentityConfigurationSummary} objects contained in responses + * received from the service. + */ + public Iterable + listIdentityConfigurationsRecordIterator( + final ListIdentityConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListIdentityConfigurationsRequest.Builder, + ListIdentityConfigurationsRequest, + ListIdentityConfigurationsResponse, + com.oracle.bmc.bds.model.IdentityConfigurationSummary>( + new java.util.function.Supplier() { + @Override + public ListIdentityConfigurationsRequest.Builder get() { + return ListIdentityConfigurationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListIdentityConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIdentityConfigurationsRequest.Builder>, + ListIdentityConfigurationsRequest>() { + @Override + public ListIdentityConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIdentityConfigurationsRequest.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< + ListIdentityConfigurationsRequest, ListIdentityConfigurationsResponse>() { + @Override + public ListIdentityConfigurationsResponse apply( + ListIdentityConfigurationsRequest request) { + return client.listIdentityConfigurations(request); + } + }, + new java.util.function.Function< + ListIdentityConfigurationsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListIdentityConfigurationsResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listNodeBackupConfigurations operation. This iterable will fetch more data from the server as diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java index c32301fb1b3..94fc7e86b69 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java @@ -457,6 +457,118 @@ public boolean test(GetBdsMetastoreConfigurationResponse response) { 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< + GetIdentityConfigurationRequest, GetIdentityConfigurationResponse> + forIdentityConfiguration( + GetIdentityConfigurationRequest request, + com.oracle.bmc.bds.model.IdentityConfiguration.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 forIdentityConfiguration( + 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< + GetIdentityConfigurationRequest, GetIdentityConfigurationResponse> + forIdentityConfiguration( + GetIdentityConfigurationRequest request, + com.oracle.bmc.bds.model.IdentityConfiguration.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 forIdentityConfiguration( + 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< + GetIdentityConfigurationRequest, GetIdentityConfigurationResponse> + forIdentityConfiguration( + GetIdentityConfigurationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.bds.model.IdentityConfiguration.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 forIdentityConfiguration( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for IdentityConfiguration. + private com.oracle.bmc.waiter.Waiter< + GetIdentityConfigurationRequest, GetIdentityConfigurationResponse> + forIdentityConfiguration( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetIdentityConfigurationRequest request, + final com.oracle.bmc.bds.model.IdentityConfiguration.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< + GetIdentityConfigurationRequest, + GetIdentityConfigurationResponse>() { + @Override + public GetIdentityConfigurationResponse apply( + GetIdentityConfigurationRequest request) { + return client.getIdentityConfiguration(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetIdentityConfigurationResponse response) { + return targetStatesSet.contains( + response.getIdentityConfiguration().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.bds.model.IdentityConfiguration.LifecycleState + .Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateIamUserSyncConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateIamUserSyncConfigurationDetails.java new file mode 100644 index 00000000000..380ddebe41f --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateIamUserSyncConfigurationDetails.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.bds.model; + +/** + * Details for activating IAM user sync configuration
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ActivateIamUserSyncConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ActivateIamUserSyncConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "isPosixAttributesAdditionRequired"}) + public ActivateIamUserSyncConfigurationDetails( + String clusterAdminPassword, Boolean isPosixAttributesAdditionRequired) { + super(); + this.clusterAdminPassword = clusterAdminPassword; + this.isPosixAttributesAdditionRequired = isPosixAttributesAdditionRequired; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @param clusterAdminPassword the value to set + * @return this builder + */ + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = clusterAdminPassword; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** whether posix attribute needs to be appended to users */ + @com.fasterxml.jackson.annotation.JsonProperty("isPosixAttributesAdditionRequired") + private Boolean isPosixAttributesAdditionRequired; + + /** + * whether posix attribute needs to be appended to users + * + * @param isPosixAttributesAdditionRequired the value to set + * @return this builder + */ + public Builder isPosixAttributesAdditionRequired( + Boolean isPosixAttributesAdditionRequired) { + this.isPosixAttributesAdditionRequired = isPosixAttributesAdditionRequired; + this.__explicitlySet__.add("isPosixAttributesAdditionRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ActivateIamUserSyncConfigurationDetails build() { + ActivateIamUserSyncConfigurationDetails model = + new ActivateIamUserSyncConfigurationDetails( + this.clusterAdminPassword, this.isPosixAttributesAdditionRequired); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ActivateIamUserSyncConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { + this.clusterAdminPassword(model.getClusterAdminPassword()); + } + if (model.wasPropertyExplicitlySet("isPosixAttributesAdditionRequired")) { + this.isPosixAttributesAdditionRequired( + model.getIsPosixAttributesAdditionRequired()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private final String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + public String getClusterAdminPassword() { + return clusterAdminPassword; + } + + /** whether posix attribute needs to be appended to users */ + @com.fasterxml.jackson.annotation.JsonProperty("isPosixAttributesAdditionRequired") + private final Boolean isPosixAttributesAdditionRequired; + + /** + * whether posix attribute needs to be appended to users + * + * @return the value + */ + public Boolean getIsPosixAttributesAdditionRequired() { + return isPosixAttributesAdditionRequired; + } + + @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("ActivateIamUserSyncConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("clusterAdminPassword=").append(""); + sb.append(", isPosixAttributesAdditionRequired=") + .append(String.valueOf(this.isPosixAttributesAdditionRequired)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateIamUserSyncConfigurationDetails)) { + return false; + } + + ActivateIamUserSyncConfigurationDetails other = (ActivateIamUserSyncConfigurationDetails) o; + return java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && java.util.Objects.equals( + this.isPosixAttributesAdditionRequired, + other.isPosixAttributesAdditionRequired) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.clusterAdminPassword == null + ? 43 + : this.clusterAdminPassword.hashCode()); + result = + (result * PRIME) + + (this.isPosixAttributesAdditionRequired == null + ? 43 + : this.isPosixAttributesAdditionRequired.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateUpstConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateUpstConfigurationDetails.java new file mode 100644 index 00000000000..c4589b15982 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ActivateUpstConfigurationDetails.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.bds.model; + +/** + * Details for activating UPST config on 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ActivateUpstConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ActivateUpstConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword", "vaultId", "masterEncryptionKeyId"}) + public ActivateUpstConfigurationDetails( + String clusterAdminPassword, String vaultId, String masterEncryptionKeyId) { + super(); + this.clusterAdminPassword = clusterAdminPassword; + this.vaultId = vaultId; + this.masterEncryptionKeyId = masterEncryptionKeyId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @param clusterAdminPassword the value to set + * @return this builder + */ + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = clusterAdminPassword; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** + * OCID of the vault to store token exchange service principal keyta, required for creating + * UPST configb + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * OCID of the vault to store token exchange service principal keyta, required for creating + * UPST configb + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * OCID of the master encryption key in vault for encrypting token exchange service + * principal keytab, required for creating UPST config + */ + @com.fasterxml.jackson.annotation.JsonProperty("masterEncryptionKeyId") + private String masterEncryptionKeyId; + + /** + * OCID of the master encryption key in vault for encrypting token exchange service + * principal keytab, required for creating UPST config + * + * @param masterEncryptionKeyId the value to set + * @return this builder + */ + public Builder masterEncryptionKeyId(String masterEncryptionKeyId) { + this.masterEncryptionKeyId = masterEncryptionKeyId; + this.__explicitlySet__.add("masterEncryptionKeyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ActivateUpstConfigurationDetails build() { + ActivateUpstConfigurationDetails model = + new ActivateUpstConfigurationDetails( + this.clusterAdminPassword, this.vaultId, this.masterEncryptionKeyId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ActivateUpstConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { + this.clusterAdminPassword(model.getClusterAdminPassword()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("masterEncryptionKeyId")) { + this.masterEncryptionKeyId(model.getMasterEncryptionKeyId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private final String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + public String getClusterAdminPassword() { + return clusterAdminPassword; + } + + /** + * OCID of the vault to store token exchange service principal keyta, required for creating UPST + * configb + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * OCID of the vault to store token exchange service principal keyta, required for creating UPST + * configb + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * OCID of the master encryption key in vault for encrypting token exchange service principal + * keytab, required for creating UPST config + */ + @com.fasterxml.jackson.annotation.JsonProperty("masterEncryptionKeyId") + private final String masterEncryptionKeyId; + + /** + * OCID of the master encryption key in vault for encrypting token exchange service principal + * keytab, required for creating UPST config + * + * @return the value + */ + public String getMasterEncryptionKeyId() { + return masterEncryptionKeyId; + } + + @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("ActivateUpstConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("clusterAdminPassword=").append(""); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", masterEncryptionKeyId=").append(String.valueOf(this.masterEncryptionKeyId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateUpstConfigurationDetails)) { + return false; + } + + ActivateUpstConfigurationDetails other = (ActivateUpstConfigurationDetails) o; + return java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.masterEncryptionKeyId, other.masterEncryptionKeyId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.clusterAdminPassword == null + ? 43 + : this.clusterAdminPassword.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = + (result * PRIME) + + (this.masterEncryptionKeyId == null + ? 43 + : this.masterEncryptionKeyId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BatchingBasedOdhPatchingConfig.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BatchingBasedOdhPatchingConfig.java index 24eb83017a6..6b6767a69db 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BatchingBasedOdhPatchingConfig.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BatchingBasedOdhPatchingConfig.java @@ -57,6 +57,27 @@ public Builder waitTimeBetweenBatchInSeconds(Integer waitTimeBetweenBatchInSecon this.__explicitlySet__.add("waitTimeBetweenBatchInSeconds"); return this; } + /** + * Acceptable number of failed-to-be-patched nodes in each batch. The maximum number of + * failed-to-patch nodes cannot exceed 20% of the number of non-utility and non-master + * nodes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("toleranceThresholdPerBatch") + private Integer toleranceThresholdPerBatch; + + /** + * Acceptable number of failed-to-be-patched nodes in each batch. The maximum number of + * failed-to-patch nodes cannot exceed 20% of the number of non-utility and non-master + * nodes. + * + * @param toleranceThresholdPerBatch the value to set + * @return this builder + */ + public Builder toleranceThresholdPerBatch(Integer toleranceThresholdPerBatch) { + this.toleranceThresholdPerBatch = toleranceThresholdPerBatch; + this.__explicitlySet__.add("toleranceThresholdPerBatch"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -64,7 +85,9 @@ public Builder waitTimeBetweenBatchInSeconds(Integer waitTimeBetweenBatchInSecon public BatchingBasedOdhPatchingConfig build() { BatchingBasedOdhPatchingConfig model = new BatchingBasedOdhPatchingConfig( - this.batchSize, this.waitTimeBetweenBatchInSeconds); + this.batchSize, + this.waitTimeBetweenBatchInSeconds, + this.toleranceThresholdPerBatch); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -79,6 +102,9 @@ public Builder copy(BatchingBasedOdhPatchingConfig model) { if (model.wasPropertyExplicitlySet("waitTimeBetweenBatchInSeconds")) { this.waitTimeBetweenBatchInSeconds(model.getWaitTimeBetweenBatchInSeconds()); } + if (model.wasPropertyExplicitlySet("toleranceThresholdPerBatch")) { + this.toleranceThresholdPerBatch(model.getToleranceThresholdPerBatch()); + } return this; } } @@ -94,10 +120,13 @@ public Builder toBuilder() { @Deprecated public BatchingBasedOdhPatchingConfig( - Integer batchSize, Integer waitTimeBetweenBatchInSeconds) { + Integer batchSize, + Integer waitTimeBetweenBatchInSeconds, + Integer toleranceThresholdPerBatch) { super(); this.batchSize = batchSize; this.waitTimeBetweenBatchInSeconds = waitTimeBetweenBatchInSeconds; + this.toleranceThresholdPerBatch = toleranceThresholdPerBatch; } /** How many nodes to be patched in each iteration. */ @@ -126,6 +155,23 @@ public Integer getWaitTimeBetweenBatchInSeconds() { return waitTimeBetweenBatchInSeconds; } + /** + * Acceptable number of failed-to-be-patched nodes in each batch. The maximum number of + * failed-to-patch nodes cannot exceed 20% of the number of non-utility and non-master nodes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("toleranceThresholdPerBatch") + private final Integer toleranceThresholdPerBatch; + + /** + * Acceptable number of failed-to-be-patched nodes in each batch. The maximum number of + * failed-to-patch nodes cannot exceed 20% of the number of non-utility and non-master nodes. + * + * @return the value + */ + public Integer getToleranceThresholdPerBatch() { + return toleranceThresholdPerBatch; + } + @Override public String toString() { return this.toString(true); @@ -144,6 +190,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", batchSize=").append(String.valueOf(this.batchSize)); sb.append(", waitTimeBetweenBatchInSeconds=") .append(String.valueOf(this.waitTimeBetweenBatchInSeconds)); + sb.append(", toleranceThresholdPerBatch=") + .append(String.valueOf(this.toleranceThresholdPerBatch)); sb.append(")"); return sb.toString(); } @@ -161,6 +209,8 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.batchSize, other.batchSize) && java.util.Objects.equals( this.waitTimeBetweenBatchInSeconds, other.waitTimeBetweenBatchInSeconds) + && java.util.Objects.equals( + this.toleranceThresholdPerBatch, other.toleranceThresholdPerBatch) && super.equals(other); } @@ -174,6 +224,11 @@ public int hashCode() { + (this.waitTimeBetweenBatchInSeconds == null ? 43 : this.waitTimeBetweenBatchInSeconds.hashCode()); + result = + (result * PRIME) + + (this.toleranceThresholdPerBatch == null + ? 43 + : this.toleranceThresholdPerBatch.hashCode()); return result; } } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsApiKey.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsApiKey.java index 5e75d3f58d6..873a259a787 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsApiKey.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsApiKey.java @@ -30,7 +30,8 @@ public final class BdsApiKey extends com.oracle.bmc.http.client.internal.Explici "fingerprint", "pemfilepath", "timeCreated", - "lifecycleState" + "lifecycleState", + "domainOcid" }) public BdsApiKey( String id, @@ -41,7 +42,8 @@ public BdsApiKey( String fingerprint, String pemfilepath, java.util.Date timeCreated, - LifecycleState lifecycleState) { + LifecycleState lifecycleState, + String domainOcid) { super(); this.id = id; this.userId = userId; @@ -52,6 +54,7 @@ public BdsApiKey( this.pemfilepath = pemfilepath; this.timeCreated = timeCreated; this.lifecycleState = lifecycleState; + this.domainOcid = domainOcid; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -201,6 +204,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * Identity domain OCID ,where user is present. For default domain ,this field will be + * optional. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domainOcid") + private String domainOcid; + + /** + * Identity domain OCID ,where user is present. For default domain ,this field will be + * optional. + * + * @param domainOcid the value to set + * @return this builder + */ + public Builder domainOcid(String domainOcid) { + this.domainOcid = domainOcid; + this.__explicitlySet__.add("domainOcid"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -216,7 +238,8 @@ public BdsApiKey build() { this.fingerprint, this.pemfilepath, this.timeCreated, - this.lifecycleState); + this.lifecycleState, + this.domainOcid); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -252,6 +275,9 @@ public Builder copy(BdsApiKey model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("domainOcid")) { + this.domainOcid(model.getDomainOcid()); + } return this; } } @@ -439,6 +465,21 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * Identity domain OCID ,where user is present. For default domain ,this field will be optional. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domainOcid") + private final String domainOcid; + + /** + * Identity domain OCID ,where user is present. For default domain ,this field will be optional. + * + * @return the value + */ + public String getDomainOcid() { + return domainOcid; + } + @Override public String toString() { return this.toString(true); @@ -463,6 +504,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", pemfilepath=").append(String.valueOf(this.pemfilepath)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", domainOcid=").append(String.valueOf(this.domainOcid)); sb.append(")"); return sb.toString(); } @@ -486,6 +528,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.pemfilepath, other.pemfilepath) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.domainOcid, other.domainOcid) && super.equals(other); } @@ -506,6 +549,7 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.domainOcid == null ? 43 : this.domainOcid.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsClusterVersionSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsClusterVersionSummary.java new file mode 100644 index 00000000000..800b62a44fb --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsClusterVersionSummary.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.bds.model; + +/** + * Cluster version details including bds and odh version 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsClusterVersionSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BdsClusterVersionSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"bdsVersion", "odhVersion"}) + public BdsClusterVersionSummary(String bdsVersion, String odhVersion) { + super(); + this.bdsVersion = bdsVersion; + this.odhVersion = odhVersion; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** BDS version to be used for cluster creation */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsVersion") + private String bdsVersion; + + /** + * BDS version to be used for cluster creation + * + * @param bdsVersion the value to set + * @return this builder + */ + public Builder bdsVersion(String bdsVersion) { + this.bdsVersion = bdsVersion; + this.__explicitlySet__.add("bdsVersion"); + return this; + } + /** ODH version to be used for cluster creation */ + @com.fasterxml.jackson.annotation.JsonProperty("odhVersion") + private String odhVersion; + + /** + * ODH version to be used for cluster creation + * + * @param odhVersion the value to set + * @return this builder + */ + public Builder odhVersion(String odhVersion) { + this.odhVersion = odhVersion; + this.__explicitlySet__.add("odhVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BdsClusterVersionSummary build() { + BdsClusterVersionSummary model = + new BdsClusterVersionSummary(this.bdsVersion, this.odhVersion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsClusterVersionSummary model) { + if (model.wasPropertyExplicitlySet("bdsVersion")) { + this.bdsVersion(model.getBdsVersion()); + } + if (model.wasPropertyExplicitlySet("odhVersion")) { + this.odhVersion(model.getOdhVersion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** BDS version to be used for cluster creation */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsVersion") + private final String bdsVersion; + + /** + * BDS version to be used for cluster creation + * + * @return the value + */ + public String getBdsVersion() { + return bdsVersion; + } + + /** ODH version to be used for cluster creation */ + @com.fasterxml.jackson.annotation.JsonProperty("odhVersion") + private final String odhVersion; + + /** + * ODH version to be used for cluster creation + * + * @return the value + */ + public String getOdhVersion() { + return odhVersion; + } + + @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("BdsClusterVersionSummary("); + sb.append("super=").append(super.toString()); + sb.append("bdsVersion=").append(String.valueOf(this.bdsVersion)); + sb.append(", odhVersion=").append(String.valueOf(this.odhVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BdsClusterVersionSummary)) { + return false; + } + + BdsClusterVersionSummary other = (BdsClusterVersionSummary) o; + return java.util.Objects.equals(this.bdsVersion, other.bdsVersion) + && java.util.Objects.equals(this.odhVersion, other.odhVersion) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.bdsVersion == null ? 43 : this.bdsVersion.hashCode()); + result = (result * PRIME) + (this.odhVersion == null ? 43 : this.odhVersion.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstance.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstance.java index 9f6e5ea7223..522c30085f7 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstance.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstance.java @@ -44,7 +44,8 @@ public final class BdsInstance extends com.oracle.bmc.http.client.internal.Expli "freeformTags", "definedTags", "kmsKeyId", - "clusterProfile" + "clusterProfile", + "bdsClusterVersionSummary" }) public BdsInstance( String id, @@ -69,7 +70,8 @@ public BdsInstance( java.util.Map freeformTags, java.util.Map> definedTags, String kmsKeyId, - ClusterProfile clusterProfile) { + ClusterProfile clusterProfile, + BdsClusterVersionSummary bdsClusterVersionSummary) { super(); this.id = id; this.compartmentId = compartmentId; @@ -94,6 +96,7 @@ public BdsInstance( this.definedTags = definedTags; this.kmsKeyId = kmsKeyId; this.clusterProfile = clusterProfile; + this.bdsClusterVersionSummary = bdsClusterVersionSummary; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -440,6 +443,15 @@ public Builder clusterProfile(ClusterProfile clusterProfile) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("bdsClusterVersionSummary") + private BdsClusterVersionSummary bdsClusterVersionSummary; + + public Builder bdsClusterVersionSummary(BdsClusterVersionSummary bdsClusterVersionSummary) { + this.bdsClusterVersionSummary = bdsClusterVersionSummary; + this.__explicitlySet__.add("bdsClusterVersionSummary"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -468,7 +480,8 @@ public BdsInstance build() { this.freeformTags, this.definedTags, this.kmsKeyId, - this.clusterProfile); + this.clusterProfile, + this.bdsClusterVersionSummary); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -547,6 +560,9 @@ public Builder copy(BdsInstance model) { if (model.wasPropertyExplicitlySet("clusterProfile")) { this.clusterProfile(model.getClusterProfile()); } + if (model.wasPropertyExplicitlySet("bdsClusterVersionSummary")) { + this.bdsClusterVersionSummary(model.getBdsClusterVersionSummary()); + } return this; } } @@ -1007,6 +1023,13 @@ public ClusterProfile getClusterProfile() { return clusterProfile; } + @com.fasterxml.jackson.annotation.JsonProperty("bdsClusterVersionSummary") + private final BdsClusterVersionSummary bdsClusterVersionSummary; + + public BdsClusterVersionSummary getBdsClusterVersionSummary() { + return bdsClusterVersionSummary; + } + @Override public String toString() { return this.toString(true); @@ -1046,6 +1069,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", clusterProfile=").append(String.valueOf(this.clusterProfile)); + sb.append(", bdsClusterVersionSummary=") + .append(String.valueOf(this.bdsClusterVersionSummary)); sb.append(")"); return sb.toString(); } @@ -1085,6 +1110,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.clusterProfile, other.clusterProfile) + && java.util.Objects.equals( + this.bdsClusterVersionSummary, other.bdsClusterVersionSummary) && super.equals(other); } @@ -1149,6 +1176,11 @@ public int hashCode() { result = (result * PRIME) + (this.clusterProfile == null ? 43 : this.clusterProfile.hashCode()); + result = + (result * PRIME) + + (this.bdsClusterVersionSummary == null + ? 43 + : this.bdsClusterVersionSummary.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java index 8135edadde1..b61506c89c3 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsApiKeyDetails.java @@ -23,14 +23,25 @@ public final class CreateBdsApiKeyDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"userId", "passphrase", "defaultRegion", "keyAlias"}) + @java.beans.ConstructorProperties({ + "userId", + "passphrase", + "defaultRegion", + "keyAlias", + "domainOcid" + }) public CreateBdsApiKeyDetails( - String userId, String passphrase, String defaultRegion, String keyAlias) { + String userId, + String passphrase, + String defaultRegion, + String keyAlias, + String domainOcid) { super(); this.userId = userId; this.passphrase = passphrase; this.defaultRegion = defaultRegion; this.keyAlias = keyAlias; + this.domainOcid = domainOcid; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -109,6 +120,25 @@ public Builder keyAlias(String keyAlias) { this.__explicitlySet__.add("keyAlias"); return this; } + /** + * Identity domain OCID , where user is present. For default domain , this field will be + * optional. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domainOcid") + private String domainOcid; + + /** + * Identity domain OCID , where user is present. For default domain , this field will be + * optional. + * + * @param domainOcid the value to set + * @return this builder + */ + public Builder domainOcid(String domainOcid) { + this.domainOcid = domainOcid; + this.__explicitlySet__.add("domainOcid"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -116,7 +146,11 @@ public Builder keyAlias(String keyAlias) { public CreateBdsApiKeyDetails build() { CreateBdsApiKeyDetails model = new CreateBdsApiKeyDetails( - this.userId, this.passphrase, this.defaultRegion, this.keyAlias); + this.userId, + this.passphrase, + this.defaultRegion, + this.keyAlias, + this.domainOcid); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -137,6 +171,9 @@ public Builder copy(CreateBdsApiKeyDetails model) { if (model.wasPropertyExplicitlySet("keyAlias")) { this.keyAlias(model.getKeyAlias()); } + if (model.wasPropertyExplicitlySet("domainOcid")) { + this.domainOcid(model.getDomainOcid()); + } return this; } } @@ -214,6 +251,23 @@ public String getKeyAlias() { return keyAlias; } + /** + * Identity domain OCID , where user is present. For default domain , this field will be + * optional. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domainOcid") + private final String domainOcid; + + /** + * Identity domain OCID , where user is present. For default domain , this field will be + * optional. + * + * @return the value + */ + public String getDomainOcid() { + return domainOcid; + } + @Override public String toString() { return this.toString(true); @@ -233,6 +287,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", passphrase=").append(""); sb.append(", defaultRegion=").append(String.valueOf(this.defaultRegion)); sb.append(", keyAlias=").append(String.valueOf(this.keyAlias)); + sb.append(", domainOcid=").append(String.valueOf(this.domainOcid)); sb.append(")"); return sb.toString(); } @@ -251,6 +306,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.passphrase, other.passphrase) && java.util.Objects.equals(this.defaultRegion, other.defaultRegion) && java.util.Objects.equals(this.keyAlias, other.keyAlias) + && java.util.Objects.equals(this.domainOcid, other.domainOcid) && super.equals(other); } @@ -264,6 +320,7 @@ public int hashCode() { (result * PRIME) + (this.defaultRegion == null ? 43 : this.defaultRegion.hashCode()); result = (result * PRIME) + (this.keyAlias == null ? 43 : this.keyAlias.hashCode()); + result = (result * PRIME) + (this.domainOcid == null ? 43 : this.domainOcid.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java index 1d117efec34..ea8f458fb4e 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java @@ -38,7 +38,8 @@ public final class CreateBdsInstanceDetails "freeformTags", "definedTags", "kmsKeyId", - "clusterProfile" + "clusterProfile", + "bdsClusterVersionSummary" }) public CreateBdsInstanceDetails( String compartmentId, @@ -55,7 +56,8 @@ public CreateBdsInstanceDetails( java.util.Map freeformTags, java.util.Map> definedTags, String kmsKeyId, - BdsInstance.ClusterProfile clusterProfile) { + BdsInstance.ClusterProfile clusterProfile, + BdsClusterVersionSummary bdsClusterVersionSummary) { super(); this.compartmentId = compartmentId; this.displayName = displayName; @@ -72,6 +74,7 @@ public CreateBdsInstanceDetails( this.definedTags = definedTags; this.kmsKeyId = kmsKeyId; this.clusterProfile = clusterProfile; + this.bdsClusterVersionSummary = bdsClusterVersionSummary; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -305,6 +308,15 @@ public Builder clusterProfile(BdsInstance.ClusterProfile clusterProfile) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("bdsClusterVersionSummary") + private BdsClusterVersionSummary bdsClusterVersionSummary; + + public Builder bdsClusterVersionSummary(BdsClusterVersionSummary bdsClusterVersionSummary) { + this.bdsClusterVersionSummary = bdsClusterVersionSummary; + this.__explicitlySet__.add("bdsClusterVersionSummary"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -325,7 +337,8 @@ public CreateBdsInstanceDetails build() { this.freeformTags, this.definedTags, this.kmsKeyId, - this.clusterProfile); + this.clusterProfile, + this.bdsClusterVersionSummary); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -379,6 +392,9 @@ public Builder copy(CreateBdsInstanceDetails model) { if (model.wasPropertyExplicitlySet("clusterProfile")) { this.clusterProfile(model.getClusterProfile()); } + if (model.wasPropertyExplicitlySet("bdsClusterVersionSummary")) { + this.bdsClusterVersionSummary(model.getBdsClusterVersionSummary()); + } return this; } } @@ -589,6 +605,13 @@ public BdsInstance.ClusterProfile getClusterProfile() { return clusterProfile; } + @com.fasterxml.jackson.annotation.JsonProperty("bdsClusterVersionSummary") + private final BdsClusterVersionSummary bdsClusterVersionSummary; + + public BdsClusterVersionSummary getBdsClusterVersionSummary() { + return bdsClusterVersionSummary; + } + @Override public String toString() { return this.toString(true); @@ -619,6 +642,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", clusterProfile=").append(String.valueOf(this.clusterProfile)); + sb.append(", bdsClusterVersionSummary=") + .append(String.valueOf(this.bdsClusterVersionSummary)); sb.append(")"); return sb.toString(); } @@ -648,6 +673,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.clusterProfile, other.clusterProfile) + && java.util.Objects.equals( + this.bdsClusterVersionSummary, other.bdsClusterVersionSummary) && super.equals(other); } @@ -694,6 +721,11 @@ public int hashCode() { result = (result * PRIME) + (this.clusterProfile == null ? 43 : this.clusterProfile.hashCode()); + result = + (result * PRIME) + + (this.bdsClusterVersionSummary == null + ? 43 + : this.bdsClusterVersionSummary.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateIdentityConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateIdentityConfigurationDetails.java new file mode 100644 index 00000000000..9b19c6c0bc6 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateIdentityConfigurationDetails.java @@ -0,0 +1,346 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Details for creating the identity configuration.
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateIdentityConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateIdentityConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "clusterAdminPassword", + "displayName", + "identityDomainId", + "confidentialApplicationId", + "upstConfigurationDetails", + "iamUserSyncConfigurationDetails" + }) + public CreateIdentityConfigurationDetails( + String clusterAdminPassword, + String displayName, + String identityDomainId, + String confidentialApplicationId, + UpstConfigurationDetails upstConfigurationDetails, + IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails) { + super(); + this.clusterAdminPassword = clusterAdminPassword; + this.displayName = displayName; + this.identityDomainId = identityDomainId; + this.confidentialApplicationId = confidentialApplicationId; + this.upstConfigurationDetails = upstConfigurationDetails; + this.iamUserSyncConfigurationDetails = iamUserSyncConfigurationDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @param clusterAdminPassword the value to set + * @return this builder + */ + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = clusterAdminPassword; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + /** + * Display name of the identity configuration, required for creating identity configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name of the identity configuration, required for creating identity configuration. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Identity domain OCID to use for identity config, required for creating identity + * configuration + */ + @com.fasterxml.jackson.annotation.JsonProperty("identityDomainId") + private String identityDomainId; + + /** + * Identity domain OCID to use for identity config, required for creating identity + * configuration + * + * @param identityDomainId the value to set + * @return this builder + */ + public Builder identityDomainId(String identityDomainId) { + this.identityDomainId = identityDomainId; + this.__explicitlySet__.add("identityDomainId"); + return this; + } + /** + * Identity domain confidential application ID for the identity config, required for + * creating identity configuration + */ + @com.fasterxml.jackson.annotation.JsonProperty("confidentialApplicationId") + private String confidentialApplicationId; + + /** + * Identity domain confidential application ID for the identity config, required for + * creating identity configuration + * + * @param confidentialApplicationId the value to set + * @return this builder + */ + public Builder confidentialApplicationId(String confidentialApplicationId) { + this.confidentialApplicationId = confidentialApplicationId; + this.__explicitlySet__.add("confidentialApplicationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("upstConfigurationDetails") + private UpstConfigurationDetails upstConfigurationDetails; + + public Builder upstConfigurationDetails(UpstConfigurationDetails upstConfigurationDetails) { + this.upstConfigurationDetails = upstConfigurationDetails; + this.__explicitlySet__.add("upstConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("iamUserSyncConfigurationDetails") + private IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails; + + public Builder iamUserSyncConfigurationDetails( + IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails) { + this.iamUserSyncConfigurationDetails = iamUserSyncConfigurationDetails; + this.__explicitlySet__.add("iamUserSyncConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateIdentityConfigurationDetails build() { + CreateIdentityConfigurationDetails model = + new CreateIdentityConfigurationDetails( + this.clusterAdminPassword, + this.displayName, + this.identityDomainId, + this.confidentialApplicationId, + this.upstConfigurationDetails, + this.iamUserSyncConfigurationDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateIdentityConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { + this.clusterAdminPassword(model.getClusterAdminPassword()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("identityDomainId")) { + this.identityDomainId(model.getIdentityDomainId()); + } + if (model.wasPropertyExplicitlySet("confidentialApplicationId")) { + this.confidentialApplicationId(model.getConfidentialApplicationId()); + } + if (model.wasPropertyExplicitlySet("upstConfigurationDetails")) { + this.upstConfigurationDetails(model.getUpstConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("iamUserSyncConfigurationDetails")) { + this.iamUserSyncConfigurationDetails(model.getIamUserSyncConfigurationDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private final String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + public String getClusterAdminPassword() { + return clusterAdminPassword; + } + + /** Display name of the identity configuration, required for creating identity configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name of the identity configuration, required for creating identity configuration. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Identity domain OCID to use for identity config, required for creating identity configuration + */ + @com.fasterxml.jackson.annotation.JsonProperty("identityDomainId") + private final String identityDomainId; + + /** + * Identity domain OCID to use for identity config, required for creating identity configuration + * + * @return the value + */ + public String getIdentityDomainId() { + return identityDomainId; + } + + /** + * Identity domain confidential application ID for the identity config, required for creating + * identity configuration + */ + @com.fasterxml.jackson.annotation.JsonProperty("confidentialApplicationId") + private final String confidentialApplicationId; + + /** + * Identity domain confidential application ID for the identity config, required for creating + * identity configuration + * + * @return the value + */ + public String getConfidentialApplicationId() { + return confidentialApplicationId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("upstConfigurationDetails") + private final UpstConfigurationDetails upstConfigurationDetails; + + public UpstConfigurationDetails getUpstConfigurationDetails() { + return upstConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("iamUserSyncConfigurationDetails") + private final IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails; + + public IamUserSyncConfigurationDetails getIamUserSyncConfigurationDetails() { + return iamUserSyncConfigurationDetails; + } + + @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("CreateIdentityConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("clusterAdminPassword=").append(""); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", identityDomainId=").append(String.valueOf(this.identityDomainId)); + sb.append(", confidentialApplicationId=") + .append(String.valueOf(this.confidentialApplicationId)); + sb.append(", upstConfigurationDetails=") + .append(String.valueOf(this.upstConfigurationDetails)); + sb.append(", iamUserSyncConfigurationDetails=") + .append(String.valueOf(this.iamUserSyncConfigurationDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateIdentityConfigurationDetails)) { + return false; + } + + CreateIdentityConfigurationDetails other = (CreateIdentityConfigurationDetails) o; + return java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.identityDomainId, other.identityDomainId) + && java.util.Objects.equals( + this.confidentialApplicationId, other.confidentialApplicationId) + && java.util.Objects.equals( + this.upstConfigurationDetails, other.upstConfigurationDetails) + && java.util.Objects.equals( + this.iamUserSyncConfigurationDetails, other.iamUserSyncConfigurationDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.clusterAdminPassword == null + ? 43 + : this.clusterAdminPassword.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.identityDomainId == null ? 43 : this.identityDomainId.hashCode()); + result = + (result * PRIME) + + (this.confidentialApplicationId == null + ? 43 + : this.confidentialApplicationId.hashCode()); + result = + (result * PRIME) + + (this.upstConfigurationDetails == null + ? 43 + : this.upstConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.iamUserSyncConfigurationDetails == null + ? 43 + : this.iamUserSyncConfigurationDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateIamUserSyncConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateIamUserSyncConfigurationDetails.java new file mode 100644 index 00000000000..61fbbaaad7d --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateIamUserSyncConfigurationDetails.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.bds.model; + +/** + * Details for deactivating an IAM user sync configuration
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DeactivateIamUserSyncConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DeactivateIamUserSyncConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword"}) + public DeactivateIamUserSyncConfigurationDetails(String clusterAdminPassword) { + super(); + this.clusterAdminPassword = clusterAdminPassword; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @param clusterAdminPassword the value to set + * @return this builder + */ + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = clusterAdminPassword; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DeactivateIamUserSyncConfigurationDetails build() { + DeactivateIamUserSyncConfigurationDetails model = + new DeactivateIamUserSyncConfigurationDetails(this.clusterAdminPassword); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DeactivateIamUserSyncConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { + this.clusterAdminPassword(model.getClusterAdminPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private final String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + public String getClusterAdminPassword() { + return clusterAdminPassword; + } + + @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("DeactivateIamUserSyncConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("clusterAdminPassword=").append(""); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeactivateIamUserSyncConfigurationDetails)) { + return false; + } + + DeactivateIamUserSyncConfigurationDetails other = + (DeactivateIamUserSyncConfigurationDetails) o; + return java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.clusterAdminPassword == null + ? 43 + : this.clusterAdminPassword.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateUpstConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateUpstConfigurationDetails.java new file mode 100644 index 00000000000..e3cfd705e02 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DeactivateUpstConfigurationDetails.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.bds.model; + +/** + * Details for deleting UPST config from 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DeactivateUpstConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DeactivateUpstConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword"}) + public DeactivateUpstConfigurationDetails(String clusterAdminPassword) { + super(); + this.clusterAdminPassword = clusterAdminPassword; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @param clusterAdminPassword the value to set + * @return this builder + */ + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = clusterAdminPassword; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DeactivateUpstConfigurationDetails build() { + DeactivateUpstConfigurationDetails model = + new DeactivateUpstConfigurationDetails(this.clusterAdminPassword); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DeactivateUpstConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { + this.clusterAdminPassword(model.getClusterAdminPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private final String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + public String getClusterAdminPassword() { + return clusterAdminPassword; + } + + @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("DeactivateUpstConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("clusterAdminPassword=").append(""); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeactivateUpstConfigurationDetails)) { + return false; + } + + DeactivateUpstConfigurationDetails other = (DeactivateUpstConfigurationDetails) o; + return java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.clusterAdminPassword == null + ? 43 + : this.clusterAdminPassword.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DomainBasedOdhPatchingConfig.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DomainBasedOdhPatchingConfig.java index 9ae9c7192ce..ef03ca61e8b 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DomainBasedOdhPatchingConfig.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/DomainBasedOdhPatchingConfig.java @@ -42,13 +42,35 @@ public Builder waitTimeBetweenDomainInSeconds(Integer waitTimeBetweenDomainInSec this.__explicitlySet__.add("waitTimeBetweenDomainInSeconds"); return this; } + /** + * Acceptable number of failed-to-be-patched nodes in each domain. The maximum number of + * failed-to-patch nodes cannot exceed 20% of the number of non-utility and non-master + * nodes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("toleranceThresholdPerDomain") + private Integer toleranceThresholdPerDomain; + + /** + * Acceptable number of failed-to-be-patched nodes in each domain. The maximum number of + * failed-to-patch nodes cannot exceed 20% of the number of non-utility and non-master + * nodes. + * + * @param toleranceThresholdPerDomain the value to set + * @return this builder + */ + public Builder toleranceThresholdPerDomain(Integer toleranceThresholdPerDomain) { + this.toleranceThresholdPerDomain = toleranceThresholdPerDomain; + this.__explicitlySet__.add("toleranceThresholdPerDomain"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DomainBasedOdhPatchingConfig build() { DomainBasedOdhPatchingConfig model = - new DomainBasedOdhPatchingConfig(this.waitTimeBetweenDomainInSeconds); + new DomainBasedOdhPatchingConfig( + this.waitTimeBetweenDomainInSeconds, this.toleranceThresholdPerDomain); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -60,6 +82,9 @@ public Builder copy(DomainBasedOdhPatchingConfig model) { if (model.wasPropertyExplicitlySet("waitTimeBetweenDomainInSeconds")) { this.waitTimeBetweenDomainInSeconds(model.getWaitTimeBetweenDomainInSeconds()); } + if (model.wasPropertyExplicitlySet("toleranceThresholdPerDomain")) { + this.toleranceThresholdPerDomain(model.getToleranceThresholdPerDomain()); + } return this; } } @@ -74,9 +99,11 @@ public Builder toBuilder() { } @Deprecated - public DomainBasedOdhPatchingConfig(Integer waitTimeBetweenDomainInSeconds) { + public DomainBasedOdhPatchingConfig( + Integer waitTimeBetweenDomainInSeconds, Integer toleranceThresholdPerDomain) { super(); this.waitTimeBetweenDomainInSeconds = waitTimeBetweenDomainInSeconds; + this.toleranceThresholdPerDomain = toleranceThresholdPerDomain; } /** The wait time between AD/FD in seconds. */ @@ -92,6 +119,23 @@ public Integer getWaitTimeBetweenDomainInSeconds() { return waitTimeBetweenDomainInSeconds; } + /** + * Acceptable number of failed-to-be-patched nodes in each domain. The maximum number of + * failed-to-patch nodes cannot exceed 20% of the number of non-utility and non-master nodes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("toleranceThresholdPerDomain") + private final Integer toleranceThresholdPerDomain; + + /** + * Acceptable number of failed-to-be-patched nodes in each domain. The maximum number of + * failed-to-patch nodes cannot exceed 20% of the number of non-utility and non-master nodes. + * + * @return the value + */ + public Integer getToleranceThresholdPerDomain() { + return toleranceThresholdPerDomain; + } + @Override public String toString() { return this.toString(true); @@ -109,6 +153,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", waitTimeBetweenDomainInSeconds=") .append(String.valueOf(this.waitTimeBetweenDomainInSeconds)); + sb.append(", toleranceThresholdPerDomain=") + .append(String.valueOf(this.toleranceThresholdPerDomain)); sb.append(")"); return sb.toString(); } @@ -125,6 +171,8 @@ public boolean equals(Object o) { DomainBasedOdhPatchingConfig other = (DomainBasedOdhPatchingConfig) o; return java.util.Objects.equals( this.waitTimeBetweenDomainInSeconds, other.waitTimeBetweenDomainInSeconds) + && java.util.Objects.equals( + this.toleranceThresholdPerDomain, other.toleranceThresholdPerDomain) && super.equals(other); } @@ -137,6 +185,11 @@ public int hashCode() { + (this.waitTimeBetweenDomainInSeconds == null ? 43 : this.waitTimeBetweenDomainInSeconds.hashCode()); + result = + (result * PRIME) + + (this.toleranceThresholdPerDomain == null + ? 43 + : this.toleranceThresholdPerDomain.hashCode()); return result; } } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IamUserSyncConfiguration.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IamUserSyncConfiguration.java new file mode 100644 index 00000000000..51f5e26c66e --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IamUserSyncConfiguration.java @@ -0,0 +1,330 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Information about the IAM user sync configuration.
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = IamUserSyncConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class IamUserSyncConfiguration + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isPosixAttributesAdditionRequired", + "lifecycleState", + "timeCreated", + "timeUpdated" + }) + public IamUserSyncConfiguration( + Boolean isPosixAttributesAdditionRequired, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.isPosixAttributesAdditionRequired = isPosixAttributesAdditionRequired; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** whether to append POSIX attributes to IAM users */ + @com.fasterxml.jackson.annotation.JsonProperty("isPosixAttributesAdditionRequired") + private Boolean isPosixAttributesAdditionRequired; + + /** + * whether to append POSIX attributes to IAM users + * + * @param isPosixAttributesAdditionRequired the value to set + * @return this builder + */ + public Builder isPosixAttributesAdditionRequired( + Boolean isPosixAttributesAdditionRequired) { + this.isPosixAttributesAdditionRequired = isPosixAttributesAdditionRequired; + this.__explicitlySet__.add("isPosixAttributesAdditionRequired"); + return this; + } + /** Lifecycle state of the IAM user sync config */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Lifecycle state of the IAM user sync config + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Time when this IAM user sync config was created, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when this IAM user sync config was created, shown as an RFC 3339 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; + } + /** + * Time when this IAM user sync config was updated, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when this IAM user sync config was updated, shown as an RFC 3339 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public IamUserSyncConfiguration build() { + IamUserSyncConfiguration model = + new IamUserSyncConfiguration( + this.isPosixAttributesAdditionRequired, + this.lifecycleState, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IamUserSyncConfiguration model) { + if (model.wasPropertyExplicitlySet("isPosixAttributesAdditionRequired")) { + this.isPosixAttributesAdditionRequired( + model.getIsPosixAttributesAdditionRequired()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + 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); + } + + /** whether to append POSIX attributes to IAM users */ + @com.fasterxml.jackson.annotation.JsonProperty("isPosixAttributesAdditionRequired") + private final Boolean isPosixAttributesAdditionRequired; + + /** + * whether to append POSIX attributes to IAM users + * + * @return the value + */ + public Boolean getIsPosixAttributesAdditionRequired() { + return isPosixAttributesAdditionRequired; + } + + /** Lifecycle state of the IAM user sync config */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Deleting("DELETING"), + Updating("UPDATING"), + 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; + } + }; + /** Lifecycle state of the IAM user sync config */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Lifecycle state of the IAM user sync config + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Time when this IAM user sync config was created, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when this IAM user sync config was created, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Time when this IAM user sync config was updated, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when this IAM user sync config was updated, shown as an RFC 3339 formatted datetime + * string. + * + * @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("IamUserSyncConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("isPosixAttributesAdditionRequired=") + .append(String.valueOf(this.isPosixAttributesAdditionRequired)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof IamUserSyncConfiguration)) { + return false; + } + + IamUserSyncConfiguration other = (IamUserSyncConfiguration) o; + return java.util.Objects.equals( + this.isPosixAttributesAdditionRequired, + other.isPosixAttributesAdditionRequired) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && 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.isPosixAttributesAdditionRequired == null + ? 43 + : this.isPosixAttributesAdditionRequired.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) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IamUserSyncConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IamUserSyncConfigurationDetails.java new file mode 100644 index 00000000000..d31be27b6b7 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IamUserSyncConfigurationDetails.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Details for activating/updating an IAM user sync configuration
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = IamUserSyncConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class IamUserSyncConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isPosixAttributesAdditionRequired"}) + public IamUserSyncConfigurationDetails(Boolean isPosixAttributesAdditionRequired) { + super(); + this.isPosixAttributesAdditionRequired = isPosixAttributesAdditionRequired; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * whether posix attribute needs to be appended to users, required for updating IAM user + * sync configuration + */ + @com.fasterxml.jackson.annotation.JsonProperty("isPosixAttributesAdditionRequired") + private Boolean isPosixAttributesAdditionRequired; + + /** + * whether posix attribute needs to be appended to users, required for updating IAM user + * sync configuration + * + * @param isPosixAttributesAdditionRequired the value to set + * @return this builder + */ + public Builder isPosixAttributesAdditionRequired( + Boolean isPosixAttributesAdditionRequired) { + this.isPosixAttributesAdditionRequired = isPosixAttributesAdditionRequired; + this.__explicitlySet__.add("isPosixAttributesAdditionRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public IamUserSyncConfigurationDetails build() { + IamUserSyncConfigurationDetails model = + new IamUserSyncConfigurationDetails(this.isPosixAttributesAdditionRequired); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IamUserSyncConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("isPosixAttributesAdditionRequired")) { + this.isPosixAttributesAdditionRequired( + model.getIsPosixAttributesAdditionRequired()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * whether posix attribute needs to be appended to users, required for updating IAM user sync + * configuration + */ + @com.fasterxml.jackson.annotation.JsonProperty("isPosixAttributesAdditionRequired") + private final Boolean isPosixAttributesAdditionRequired; + + /** + * whether posix attribute needs to be appended to users, required for updating IAM user sync + * configuration + * + * @return the value + */ + public Boolean getIsPosixAttributesAdditionRequired() { + return isPosixAttributesAdditionRequired; + } + + @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("IamUserSyncConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("isPosixAttributesAdditionRequired=") + .append(String.valueOf(this.isPosixAttributesAdditionRequired)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof IamUserSyncConfigurationDetails)) { + return false; + } + + IamUserSyncConfigurationDetails other = (IamUserSyncConfigurationDetails) o; + return java.util.Objects.equals( + this.isPosixAttributesAdditionRequired, + other.isPosixAttributesAdditionRequired) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isPosixAttributesAdditionRequired == null + ? 43 + : this.isPosixAttributesAdditionRequired.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IdentityConfiguration.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IdentityConfiguration.java new file mode 100644 index 00000000000..b827931f5cd --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IdentityConfiguration.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.bds.model; + +/** + * Details about the identity configuration
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = IdentityConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class IdentityConfiguration + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "identityDomainId", + "confidentialApplicationId", + "lifecycleState", + "timeCreated", + "timeUpdated", + "iamUserSyncConfiguration", + "upstConfiguration" + }) + public IdentityConfiguration( + String id, + String displayName, + String identityDomainId, + String confidentialApplicationId, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + IamUserSyncConfiguration iamUserSyncConfiguration, + UpstConfiguration upstConfiguration) { + super(); + this.id = id; + this.displayName = displayName; + this.identityDomainId = identityDomainId; + this.confidentialApplicationId = confidentialApplicationId; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.iamUserSyncConfiguration = iamUserSyncConfiguration; + this.upstConfiguration = upstConfiguration; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The id of the UPST config */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id of the UPST config + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** the display name of the identity configuration */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * the display name of the identity configuration + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Identity domain to use for identity config */ + @com.fasterxml.jackson.annotation.JsonProperty("identityDomainId") + private String identityDomainId; + + /** + * Identity domain to use for identity config + * + * @param identityDomainId the value to set + * @return this builder + */ + public Builder identityDomainId(String identityDomainId) { + this.identityDomainId = identityDomainId; + this.__explicitlySet__.add("identityDomainId"); + return this; + } + /** identity domain confidential application ID for the identity config */ + @com.fasterxml.jackson.annotation.JsonProperty("confidentialApplicationId") + private String confidentialApplicationId; + + /** + * identity domain confidential application ID for the identity config + * + * @param confidentialApplicationId the value to set + * @return this builder + */ + public Builder confidentialApplicationId(String confidentialApplicationId) { + this.confidentialApplicationId = confidentialApplicationId; + this.__explicitlySet__.add("confidentialApplicationId"); + return this; + } + /** Lifecycle state of the identity configuration */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Lifecycle state of the identity configuration + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Time when this identity configuration was created, shown as an RFC 3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when this identity configuration was created, shown as an RFC 3339 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; + } + /** + * Time when this identity configuration config was updated, shown as an RFC 3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when this identity configuration config was updated, shown as an RFC 3339 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("iamUserSyncConfiguration") + private IamUserSyncConfiguration iamUserSyncConfiguration; + + public Builder iamUserSyncConfiguration(IamUserSyncConfiguration iamUserSyncConfiguration) { + this.iamUserSyncConfiguration = iamUserSyncConfiguration; + this.__explicitlySet__.add("iamUserSyncConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("upstConfiguration") + private UpstConfiguration upstConfiguration; + + public Builder upstConfiguration(UpstConfiguration upstConfiguration) { + this.upstConfiguration = upstConfiguration; + this.__explicitlySet__.add("upstConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public IdentityConfiguration build() { + IdentityConfiguration model = + new IdentityConfiguration( + this.id, + this.displayName, + this.identityDomainId, + this.confidentialApplicationId, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.iamUserSyncConfiguration, + this.upstConfiguration); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IdentityConfiguration model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("identityDomainId")) { + this.identityDomainId(model.getIdentityDomainId()); + } + if (model.wasPropertyExplicitlySet("confidentialApplicationId")) { + this.confidentialApplicationId(model.getConfidentialApplicationId()); + } + 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("iamUserSyncConfiguration")) { + this.iamUserSyncConfiguration(model.getIamUserSyncConfiguration()); + } + if (model.wasPropertyExplicitlySet("upstConfiguration")) { + this.upstConfiguration(model.getUpstConfiguration()); + } + 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 UPST config */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the UPST config + * + * @return the value + */ + public String getId() { + return id; + } + + /** the display name of the identity configuration */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * the display name of the identity configuration + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Identity domain to use for identity config */ + @com.fasterxml.jackson.annotation.JsonProperty("identityDomainId") + private final String identityDomainId; + + /** + * Identity domain to use for identity config + * + * @return the value + */ + public String getIdentityDomainId() { + return identityDomainId; + } + + /** identity domain confidential application ID for the identity config */ + @com.fasterxml.jackson.annotation.JsonProperty("confidentialApplicationId") + private final String confidentialApplicationId; + + /** + * identity domain confidential application ID for the identity config + * + * @return the value + */ + public String getConfidentialApplicationId() { + return confidentialApplicationId; + } + + /** Lifecycle state of the identity configuration */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Active("ACTIVE"), + Deleted("DELETED"), + + /** + * 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; + } + }; + /** Lifecycle state of the identity configuration */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Lifecycle state of the identity configuration + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Time when this identity configuration was created, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when this identity configuration was created, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * Time when this identity configuration config was updated, shown as an RFC 3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when this identity configuration config was updated, shown as an RFC 3339 formatted + * datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("iamUserSyncConfiguration") + private final IamUserSyncConfiguration iamUserSyncConfiguration; + + public IamUserSyncConfiguration getIamUserSyncConfiguration() { + return iamUserSyncConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("upstConfiguration") + private final UpstConfiguration upstConfiguration; + + public UpstConfiguration getUpstConfiguration() { + return upstConfiguration; + } + + @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("IdentityConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", identityDomainId=").append(String.valueOf(this.identityDomainId)); + sb.append(", confidentialApplicationId=") + .append(String.valueOf(this.confidentialApplicationId)); + 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(", iamUserSyncConfiguration=") + .append(String.valueOf(this.iamUserSyncConfiguration)); + sb.append(", upstConfiguration=").append(String.valueOf(this.upstConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof IdentityConfiguration)) { + return false; + } + + IdentityConfiguration other = (IdentityConfiguration) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.identityDomainId, other.identityDomainId) + && java.util.Objects.equals( + this.confidentialApplicationId, other.confidentialApplicationId) + && 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.iamUserSyncConfiguration, other.iamUserSyncConfiguration) + && java.util.Objects.equals(this.upstConfiguration, other.upstConfiguration) + && 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.identityDomainId == null ? 43 : this.identityDomainId.hashCode()); + result = + (result * PRIME) + + (this.confidentialApplicationId == null + ? 43 + : this.confidentialApplicationId.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.iamUserSyncConfiguration == null + ? 43 + : this.iamUserSyncConfiguration.hashCode()); + result = + (result * PRIME) + + (this.upstConfiguration == null ? 43 : this.upstConfiguration.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IdentityConfigurationSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IdentityConfigurationSummary.java new file mode 100644 index 00000000000..8bf439aa080 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/IdentityConfigurationSummary.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.bds.model; + +/** + * Summary of the identity config
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = IdentityConfigurationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class IdentityConfigurationSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "displayName", "lifecycleState"}) + public IdentityConfigurationSummary( + String id, String displayName, IdentityConfiguration.LifecycleState lifecycleState) { + super(); + this.id = id; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The id of the identity config */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id of the identity config + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Display name of the identity config */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name of the identity config + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Lifecycle state of the identity config */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private IdentityConfiguration.LifecycleState lifecycleState; + + /** + * Lifecycle state of the identity config + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(IdentityConfiguration.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public IdentityConfigurationSummary build() { + IdentityConfigurationSummary model = + new IdentityConfigurationSummary( + this.id, this.displayName, this.lifecycleState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IdentityConfigurationSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + 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 identity config */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the identity config + * + * @return the value + */ + public String getId() { + return id; + } + + /** Display name of the identity config */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name of the identity config + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Lifecycle state of the identity config */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final IdentityConfiguration.LifecycleState lifecycleState; + + /** + * Lifecycle state of the identity config + * + * @return the value + */ + public IdentityConfiguration.LifecycleState getLifecycleState() { + return lifecycleState; + } + + @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("IdentityConfigurationSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof IdentityConfigurationSummary)) { + return false; + } + + IdentityConfigurationSummary other = (IdentityConfigurationSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && 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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeTypeShapeConfig.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeTypeShapeConfig.java new file mode 100644 index 00000000000..78acc341314 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/NodeTypeShapeConfig.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.bds.model; + +/** + * Shape configuration at node type level. Start cluster will start all nodes as is if no config is + * specified.
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NodeTypeShapeConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NodeTypeShapeConfig + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"nodeType", "shape"}) + public NodeTypeShapeConfig(Node.NodeType nodeType, String shape) { + super(); + this.nodeType = nodeType; + this.shape = shape; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The Big Data Service cluster node type. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeType") + private Node.NodeType nodeType; + + /** + * The Big Data Service cluster node type. + * + * @param nodeType the value to set + * @return this builder + */ + public Builder nodeType(Node.NodeType nodeType) { + this.nodeType = nodeType; + this.__explicitlySet__.add("nodeType"); + return this; + } + /** + * Shape of the node. This has to be specified when starting the cluster. Defaults to wn0 + * for homogeneous clusters and remains empty for heterogeneous clusters. If provided, all + * nodes in the node type will adopt the specified shape; otherwise, nodes retain their + * original shapes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + /** + * Shape of the node. This has to be specified when starting the cluster. Defaults to wn0 + * for homogeneous clusters and remains empty for heterogeneous clusters. If provided, all + * nodes in the node type will adopt the specified shape; otherwise, nodes retain their + * original shapes. + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NodeTypeShapeConfig build() { + NodeTypeShapeConfig model = new NodeTypeShapeConfig(this.nodeType, this.shape); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NodeTypeShapeConfig model) { + if (model.wasPropertyExplicitlySet("nodeType")) { + this.nodeType(model.getNodeType()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The Big Data Service cluster node type. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeType") + private final Node.NodeType nodeType; + + /** + * The Big Data Service cluster node type. + * + * @return the value + */ + public Node.NodeType getNodeType() { + return nodeType; + } + + /** + * Shape of the node. This has to be specified when starting the cluster. Defaults to wn0 for + * homogeneous clusters and remains empty for heterogeneous clusters. If provided, all nodes in + * the node type will adopt the specified shape; otherwise, nodes retain their original shapes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final String shape; + + /** + * Shape of the node. This has to be specified when starting the cluster. Defaults to wn0 for + * homogeneous clusters and remains empty for heterogeneous clusters. If provided, all nodes in + * the node type will adopt the specified shape; otherwise, nodes retain their original shapes. + * + * @return the value + */ + public String getShape() { + return shape; + } + + @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("NodeTypeShapeConfig("); + sb.append("super=").append(super.toString()); + sb.append("nodeType=").append(String.valueOf(this.nodeType)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NodeTypeShapeConfig)) { + return false; + } + + NodeTypeShapeConfig other = (NodeTypeShapeConfig) o; + return java.util.Objects.equals(this.nodeType, other.nodeType) + && java.util.Objects.equals(this.shape, other.shape) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.nodeType == null ? 43 : this.nodeType.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/OperationTypes.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/OperationTypes.java index 09d17fd7c2a..7f2fd61bb93 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/OperationTypes.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/OperationTypes.java @@ -56,6 +56,15 @@ public enum OperationTypes implements com.oracle.bmc.http.internal.BmcEnum { DeleteResourcePrincipalConfiguration("DELETE_RESOURCE_PRINCIPAL_CONFIGURATION"), UpdateResourcePrincipalConfiguration("UPDATE_RESOURCE_PRINCIPAL_CONFIGURATION"), RefreshResourcePrincipal("REFRESH_RESOURCE_PRINCIPAL"), + CreateIdentityConfig("CREATE_IDENTITY_CONFIG"), + DeleteIdentityConfig("DELETE_IDENTITY_CONFIG"), + UpdateIdentityConfig("UPDATE_IDENTITY_CONFIG"), + ActivateUpstConfig("ACTIVATE_UPST_CONFIG"), + DeactivateUpstConfig("DEACTIVATE_UPST_CONFIG"), + RefreshConfidentialApplication("REFRESH_CONFIDENTIAL_APPLICATION"), + RefreshTokenExchangeKeytab("REFRESH_TOKEN_EXCHANGE_KEYTAB"), + ActivateIamUserSyncConfig("ACTIVATE_IAM_USER_SYNC_CONFIG"), + DeactivateIamUserSyncConfig("DEACTIVATE_IAM_USER_SYNC_CONFIG"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshConfidentialApplicationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshConfidentialApplicationDetails.java new file mode 100644 index 00000000000..84cc760fc63 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshConfidentialApplicationDetails.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.bds.model; + +/** + * Details for refreshing confidential application
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RefreshConfidentialApplicationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RefreshConfidentialApplicationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword"}) + public RefreshConfidentialApplicationDetails(String clusterAdminPassword) { + super(); + this.clusterAdminPassword = clusterAdminPassword; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @param clusterAdminPassword the value to set + * @return this builder + */ + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = clusterAdminPassword; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RefreshConfidentialApplicationDetails build() { + RefreshConfidentialApplicationDetails model = + new RefreshConfidentialApplicationDetails(this.clusterAdminPassword); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RefreshConfidentialApplicationDetails model) { + if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { + this.clusterAdminPassword(model.getClusterAdminPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private final String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + public String getClusterAdminPassword() { + return clusterAdminPassword; + } + + @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("RefreshConfidentialApplicationDetails("); + sb.append("super=").append(super.toString()); + sb.append("clusterAdminPassword=").append(""); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RefreshConfidentialApplicationDetails)) { + return false; + } + + RefreshConfidentialApplicationDetails other = (RefreshConfidentialApplicationDetails) o; + return java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.clusterAdminPassword == null + ? 43 + : this.clusterAdminPassword.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshUpstTokenExchangeKeytabDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshUpstTokenExchangeKeytabDetails.java new file mode 100644 index 00000000000..3cfdb2ba777 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/RefreshUpstTokenExchangeKeytabDetails.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.bds.model; + +/** + * Details for refreshing User Principal Session (UPST) token exchange keytab
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RefreshUpstTokenExchangeKeytabDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RefreshUpstTokenExchangeKeytabDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"clusterAdminPassword"}) + public RefreshUpstTokenExchangeKeytabDetails(String clusterAdminPassword) { + super(); + this.clusterAdminPassword = clusterAdminPassword; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @param clusterAdminPassword the value to set + * @return this builder + */ + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = clusterAdminPassword; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RefreshUpstTokenExchangeKeytabDetails build() { + RefreshUpstTokenExchangeKeytabDetails model = + new RefreshUpstTokenExchangeKeytabDetails(this.clusterAdminPassword); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RefreshUpstTokenExchangeKeytabDetails model) { + if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { + this.clusterAdminPassword(model.getClusterAdminPassword()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private final String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + public String getClusterAdminPassword() { + return clusterAdminPassword; + } + + @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("RefreshUpstTokenExchangeKeytabDetails("); + sb.append("super=").append(super.toString()); + sb.append("clusterAdminPassword=").append(""); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RefreshUpstTokenExchangeKeytabDetails)) { + return false; + } + + RefreshUpstTokenExchangeKeytabDetails other = (RefreshUpstTokenExchangeKeytabDetails) o; + return java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.clusterAdminPassword == null + ? 43 + : this.clusterAdminPassword.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java index e6318d8b6db..1b0571ff191 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartBdsInstanceDetails.java @@ -23,10 +23,12 @@ public final class StartBdsInstanceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"clusterAdminPassword"}) - public StartBdsInstanceDetails(String clusterAdminPassword) { + @java.beans.ConstructorProperties({"clusterAdminPassword", "startClusterShapeConfigs"}) + public StartBdsInstanceDetails( + String clusterAdminPassword, StartClusterShapeConfigs startClusterShapeConfigs) { super(); this.clusterAdminPassword = clusterAdminPassword; + this.startClusterShapeConfigs = startClusterShapeConfigs; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -47,11 +49,22 @@ public Builder clusterAdminPassword(String clusterAdminPassword) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("startClusterShapeConfigs") + private StartClusterShapeConfigs startClusterShapeConfigs; + + public Builder startClusterShapeConfigs(StartClusterShapeConfigs startClusterShapeConfigs) { + this.startClusterShapeConfigs = startClusterShapeConfigs; + this.__explicitlySet__.add("startClusterShapeConfigs"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public StartBdsInstanceDetails build() { - StartBdsInstanceDetails model = new StartBdsInstanceDetails(this.clusterAdminPassword); + StartBdsInstanceDetails model = + new StartBdsInstanceDetails( + this.clusterAdminPassword, this.startClusterShapeConfigs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,6 +76,9 @@ public Builder copy(StartBdsInstanceDetails model) { if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { this.clusterAdminPassword(model.getClusterAdminPassword()); } + if (model.wasPropertyExplicitlySet("startClusterShapeConfigs")) { + this.startClusterShapeConfigs(model.getStartClusterShapeConfigs()); + } return this; } } @@ -89,6 +105,13 @@ public String getClusterAdminPassword() { return clusterAdminPassword; } + @com.fasterxml.jackson.annotation.JsonProperty("startClusterShapeConfigs") + private final StartClusterShapeConfigs startClusterShapeConfigs; + + public StartClusterShapeConfigs getStartClusterShapeConfigs() { + return startClusterShapeConfigs; + } + @Override public String toString() { return this.toString(true); @@ -105,6 +128,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("StartBdsInstanceDetails("); sb.append("super=").append(super.toString()); sb.append("clusterAdminPassword=").append(""); + sb.append(", startClusterShapeConfigs=") + .append(String.valueOf(this.startClusterShapeConfigs)); sb.append(")"); return sb.toString(); } @@ -120,6 +145,8 @@ public boolean equals(Object o) { StartBdsInstanceDetails other = (StartBdsInstanceDetails) o; return java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && java.util.Objects.equals( + this.startClusterShapeConfigs, other.startClusterShapeConfigs) && super.equals(other); } @@ -132,6 +159,11 @@ public int hashCode() { + (this.clusterAdminPassword == null ? 43 : this.clusterAdminPassword.hashCode()); + result = + (result * PRIME) + + (this.startClusterShapeConfigs == null + ? 43 + : this.startClusterShapeConfigs.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartClusterShapeConfigs.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartClusterShapeConfigs.java new file mode 100644 index 00000000000..3d7119efe14 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/StartClusterShapeConfigs.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * The shape configuration to be used to start the cluster. If the value is not set, the start + * cluster operation will try to start the cluster as is.
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StartClusterShapeConfigs.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class StartClusterShapeConfigs + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"nodeTypeShapeConfigs"}) + public StartClusterShapeConfigs(java.util.List nodeTypeShapeConfigs) { + super(); + this.nodeTypeShapeConfigs = nodeTypeShapeConfigs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Shape configurations for each node type. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeTypeShapeConfigs") + private java.util.List nodeTypeShapeConfigs; + + /** + * Shape configurations for each node type. + * + * @param nodeTypeShapeConfigs the value to set + * @return this builder + */ + public Builder nodeTypeShapeConfigs( + java.util.List nodeTypeShapeConfigs) { + this.nodeTypeShapeConfigs = nodeTypeShapeConfigs; + this.__explicitlySet__.add("nodeTypeShapeConfigs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StartClusterShapeConfigs build() { + StartClusterShapeConfigs model = + new StartClusterShapeConfigs(this.nodeTypeShapeConfigs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StartClusterShapeConfigs model) { + if (model.wasPropertyExplicitlySet("nodeTypeShapeConfigs")) { + this.nodeTypeShapeConfigs(model.getNodeTypeShapeConfigs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Shape configurations for each node type. */ + @com.fasterxml.jackson.annotation.JsonProperty("nodeTypeShapeConfigs") + private final java.util.List nodeTypeShapeConfigs; + + /** + * Shape configurations for each node type. + * + * @return the value + */ + public java.util.List getNodeTypeShapeConfigs() { + return nodeTypeShapeConfigs; + } + + @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("StartClusterShapeConfigs("); + sb.append("super=").append(super.toString()); + sb.append("nodeTypeShapeConfigs=").append(String.valueOf(this.nodeTypeShapeConfigs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartClusterShapeConfigs)) { + return false; + } + + StartClusterShapeConfigs other = (StartClusterShapeConfigs) o; + return java.util.Objects.equals(this.nodeTypeShapeConfigs, other.nodeTypeShapeConfigs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.nodeTypeShapeConfigs == null + ? 43 + : this.nodeTypeShapeConfigs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsInstanceDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsInstanceDetails.java index fb53cb2385b..aeb2fc44f25 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsInstanceDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsInstanceDetails.java @@ -28,20 +28,23 @@ public final class UpdateBdsInstanceDetails "bootstrapScriptUrl", "freeformTags", "definedTags", - "kmsKeyId" + "kmsKeyId", + "networkConfig" }) public UpdateBdsInstanceDetails( String displayName, String bootstrapScriptUrl, java.util.Map freeformTags, java.util.Map> definedTags, - String kmsKeyId) { + String kmsKeyId, + NetworkConfig networkConfig) { super(); this.displayName = displayName; this.bootstrapScriptUrl = bootstrapScriptUrl; this.freeformTags = freeformTags; this.definedTags = definedTags; this.kmsKeyId = kmsKeyId; + this.networkConfig = networkConfig; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -135,6 +138,15 @@ public Builder kmsKeyId(String kmsKeyId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private NetworkConfig networkConfig; + + public Builder networkConfig(NetworkConfig networkConfig) { + this.networkConfig = networkConfig; + this.__explicitlySet__.add("networkConfig"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -145,7 +157,8 @@ public UpdateBdsInstanceDetails build() { this.bootstrapScriptUrl, this.freeformTags, this.definedTags, - this.kmsKeyId); + this.kmsKeyId, + this.networkConfig); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -169,6 +182,9 @@ public Builder copy(UpdateBdsInstanceDetails model) { if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } + if (model.wasPropertyExplicitlySet("networkConfig")) { + this.networkConfig(model.getNetworkConfig()); + } return this; } } @@ -259,6 +275,13 @@ public String getKmsKeyId() { return kmsKeyId; } + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private final NetworkConfig networkConfig; + + public NetworkConfig getNetworkConfig() { + return networkConfig; + } + @Override public String toString() { return this.toString(true); @@ -279,6 +302,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", networkConfig=").append(String.valueOf(this.networkConfig)); sb.append(")"); return sb.toString(); } @@ -298,6 +322,7 @@ 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.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.networkConfig, other.networkConfig) && super.equals(other); } @@ -314,6 +339,9 @@ 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.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.networkConfig == null ? 43 : this.networkConfig.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateIdentityConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateIdentityConfigurationDetails.java new file mode 100644 index 00000000000..f2adaa78db5 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateIdentityConfigurationDetails.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.bds.model; + +/** + * Details for updating identity config on 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateIdentityConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateIdentityConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "clusterAdminPassword", + "upstConfigurationDetails", + "iamUserSyncConfigurationDetails" + }) + public UpdateIdentityConfigurationDetails( + String clusterAdminPassword, + UpstConfigurationDetails upstConfigurationDetails, + IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails) { + super(); + this.clusterAdminPassword = clusterAdminPassword; + this.upstConfigurationDetails = upstConfigurationDetails; + this.iamUserSyncConfigurationDetails = iamUserSyncConfigurationDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @param clusterAdminPassword the value to set + * @return this builder + */ + public Builder clusterAdminPassword(String clusterAdminPassword) { + this.clusterAdminPassword = clusterAdminPassword; + this.__explicitlySet__.add("clusterAdminPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("upstConfigurationDetails") + private UpstConfigurationDetails upstConfigurationDetails; + + public Builder upstConfigurationDetails(UpstConfigurationDetails upstConfigurationDetails) { + this.upstConfigurationDetails = upstConfigurationDetails; + this.__explicitlySet__.add("upstConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("iamUserSyncConfigurationDetails") + private IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails; + + public Builder iamUserSyncConfigurationDetails( + IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails) { + this.iamUserSyncConfigurationDetails = iamUserSyncConfigurationDetails; + this.__explicitlySet__.add("iamUserSyncConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateIdentityConfigurationDetails build() { + UpdateIdentityConfigurationDetails model = + new UpdateIdentityConfigurationDetails( + this.clusterAdminPassword, + this.upstConfigurationDetails, + this.iamUserSyncConfigurationDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateIdentityConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("clusterAdminPassword")) { + this.clusterAdminPassword(model.getClusterAdminPassword()); + } + if (model.wasPropertyExplicitlySet("upstConfigurationDetails")) { + this.upstConfigurationDetails(model.getUpstConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("iamUserSyncConfigurationDetails")) { + this.iamUserSyncConfigurationDetails(model.getIamUserSyncConfigurationDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Base-64 encoded password for the cluster admin user. */ + @com.fasterxml.jackson.annotation.JsonProperty("clusterAdminPassword") + private final String clusterAdminPassword; + + /** + * Base-64 encoded password for the cluster admin user. + * + * @return the value + */ + public String getClusterAdminPassword() { + return clusterAdminPassword; + } + + @com.fasterxml.jackson.annotation.JsonProperty("upstConfigurationDetails") + private final UpstConfigurationDetails upstConfigurationDetails; + + public UpstConfigurationDetails getUpstConfigurationDetails() { + return upstConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("iamUserSyncConfigurationDetails") + private final IamUserSyncConfigurationDetails iamUserSyncConfigurationDetails; + + public IamUserSyncConfigurationDetails getIamUserSyncConfigurationDetails() { + return iamUserSyncConfigurationDetails; + } + + @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("UpdateIdentityConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("clusterAdminPassword=").append(""); + sb.append(", upstConfigurationDetails=") + .append(String.valueOf(this.upstConfigurationDetails)); + sb.append(", iamUserSyncConfigurationDetails=") + .append(String.valueOf(this.iamUserSyncConfigurationDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateIdentityConfigurationDetails)) { + return false; + } + + UpdateIdentityConfigurationDetails other = (UpdateIdentityConfigurationDetails) o; + return java.util.Objects.equals(this.clusterAdminPassword, other.clusterAdminPassword) + && java.util.Objects.equals( + this.upstConfigurationDetails, other.upstConfigurationDetails) + && java.util.Objects.equals( + this.iamUserSyncConfigurationDetails, other.iamUserSyncConfigurationDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.clusterAdminPassword == null + ? 43 + : this.clusterAdminPassword.hashCode()); + result = + (result * PRIME) + + (this.upstConfigurationDetails == null + ? 43 + : this.upstConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.iamUserSyncConfigurationDetails == null + ? 43 + : this.iamUserSyncConfigurationDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpstConfiguration.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpstConfiguration.java new file mode 100644 index 00000000000..b6ce1a316ac --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpstConfiguration.java @@ -0,0 +1,542 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Information about the UPST configuration.
+ * 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpstConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpstConfiguration + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "vaultId", + "masterEncryptionKeyId", + "secretId", + "timeTokenExchangeKeytabLastRefreshed", + "tokenExchangePrincipalName", + "lifecycleState", + "timeCreated", + "timeUpdated", + "keytabContent" + }) + public UpstConfiguration( + String vaultId, + String masterEncryptionKeyId, + String secretId, + java.util.Date timeTokenExchangeKeytabLastRefreshed, + String tokenExchangePrincipalName, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String keytabContent) { + super(); + this.vaultId = vaultId; + this.masterEncryptionKeyId = masterEncryptionKeyId; + this.secretId = secretId; + this.timeTokenExchangeKeytabLastRefreshed = timeTokenExchangeKeytabLastRefreshed; + this.tokenExchangePrincipalName = tokenExchangePrincipalName; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.keytabContent = keytabContent; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The instance OCID of the node, which is the resource from which the node backup was + * acquired. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The instance OCID of the node, which is the resource from which the node backup was + * acquired. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** Master Encryption key used for encrypting token exchange keytab. */ + @com.fasterxml.jackson.annotation.JsonProperty("masterEncryptionKeyId") + private String masterEncryptionKeyId; + + /** + * Master Encryption key used for encrypting token exchange keytab. + * + * @param masterEncryptionKeyId the value to set + * @return this builder + */ + public Builder masterEncryptionKeyId(String masterEncryptionKeyId) { + this.masterEncryptionKeyId = masterEncryptionKeyId; + this.__explicitlySet__.add("masterEncryptionKeyId"); + return this; + } + /** Secret ID for token exchange keytab */ + @com.fasterxml.jackson.annotation.JsonProperty("secretId") + private String secretId; + + /** + * Secret ID for token exchange keytab + * + * @param secretId the value to set + * @return this builder + */ + public Builder secretId(String secretId) { + this.secretId = secretId; + this.__explicitlySet__.add("secretId"); + return this; + } + /** + * Time when the keytab for token exchange principal is last refreshed, shown as an RFC 3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeTokenExchangeKeytabLastRefreshed") + private java.util.Date timeTokenExchangeKeytabLastRefreshed; + + /** + * Time when the keytab for token exchange principal is last refreshed, shown as an RFC 3339 + * formatted datetime string. + * + * @param timeTokenExchangeKeytabLastRefreshed the value to set + * @return this builder + */ + public Builder timeTokenExchangeKeytabLastRefreshed( + java.util.Date timeTokenExchangeKeytabLastRefreshed) { + this.timeTokenExchangeKeytabLastRefreshed = timeTokenExchangeKeytabLastRefreshed; + this.__explicitlySet__.add("timeTokenExchangeKeytabLastRefreshed"); + return this; + } + /** Token exchange kerberos Principal name in cluster */ + @com.fasterxml.jackson.annotation.JsonProperty("tokenExchangePrincipalName") + private String tokenExchangePrincipalName; + + /** + * Token exchange kerberos Principal name in cluster + * + * @param tokenExchangePrincipalName the value to set + * @return this builder + */ + public Builder tokenExchangePrincipalName(String tokenExchangePrincipalName) { + this.tokenExchangePrincipalName = tokenExchangePrincipalName; + this.__explicitlySet__.add("tokenExchangePrincipalName"); + return this; + } + /** Lifecycle state of the UPST config */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Lifecycle state of the UPST config + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Time when this UPST config was created, shown as an RFC 3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Time when this UPST config was created, shown as an RFC 3339 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; + } + /** + * Time when this UPST config was updated, shown as an RFC 3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Time when this UPST config was updated, shown as an RFC 3339 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; + } + /** + * The kerberos keytab content used for creating identity propagation trust config, in + * base64 format + */ + @com.fasterxml.jackson.annotation.JsonProperty("keytabContent") + private String keytabContent; + + /** + * The kerberos keytab content used for creating identity propagation trust config, in + * base64 format + * + * @param keytabContent the value to set + * @return this builder + */ + public Builder keytabContent(String keytabContent) { + this.keytabContent = keytabContent; + this.__explicitlySet__.add("keytabContent"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpstConfiguration build() { + UpstConfiguration model = + new UpstConfiguration( + this.vaultId, + this.masterEncryptionKeyId, + this.secretId, + this.timeTokenExchangeKeytabLastRefreshed, + this.tokenExchangePrincipalName, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.keytabContent); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpstConfiguration model) { + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("masterEncryptionKeyId")) { + this.masterEncryptionKeyId(model.getMasterEncryptionKeyId()); + } + if (model.wasPropertyExplicitlySet("secretId")) { + this.secretId(model.getSecretId()); + } + if (model.wasPropertyExplicitlySet("timeTokenExchangeKeytabLastRefreshed")) { + this.timeTokenExchangeKeytabLastRefreshed( + model.getTimeTokenExchangeKeytabLastRefreshed()); + } + if (model.wasPropertyExplicitlySet("tokenExchangePrincipalName")) { + this.tokenExchangePrincipalName(model.getTokenExchangePrincipalName()); + } + 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("keytabContent")) { + this.keytabContent(model.getKeytabContent()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The instance OCID of the node, which is the resource from which the node backup was acquired. + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The instance OCID of the node, which is the resource from which the node backup was acquired. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** Master Encryption key used for encrypting token exchange keytab. */ + @com.fasterxml.jackson.annotation.JsonProperty("masterEncryptionKeyId") + private final String masterEncryptionKeyId; + + /** + * Master Encryption key used for encrypting token exchange keytab. + * + * @return the value + */ + public String getMasterEncryptionKeyId() { + return masterEncryptionKeyId; + } + + /** Secret ID for token exchange keytab */ + @com.fasterxml.jackson.annotation.JsonProperty("secretId") + private final String secretId; + + /** + * Secret ID for token exchange keytab + * + * @return the value + */ + public String getSecretId() { + return secretId; + } + + /** + * Time when the keytab for token exchange principal is last refreshed, shown as an RFC 3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeTokenExchangeKeytabLastRefreshed") + private final java.util.Date timeTokenExchangeKeytabLastRefreshed; + + /** + * Time when the keytab for token exchange principal is last refreshed, shown as an RFC 3339 + * formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeTokenExchangeKeytabLastRefreshed() { + return timeTokenExchangeKeytabLastRefreshed; + } + + /** Token exchange kerberos Principal name in cluster */ + @com.fasterxml.jackson.annotation.JsonProperty("tokenExchangePrincipalName") + private final String tokenExchangePrincipalName; + + /** + * Token exchange kerberos Principal name in cluster + * + * @return the value + */ + public String getTokenExchangePrincipalName() { + return tokenExchangePrincipalName; + } + + /** Lifecycle state of the UPST config */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Inactive("INACTIVE"), + Updating("UPDATING"), + 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; + } + }; + /** Lifecycle state of the UPST config */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Lifecycle state of the UPST config + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Time when this UPST config was created, shown as an RFC 3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Time when this UPST config was created, shown as an RFC 3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Time when this UPST config was updated, shown as an RFC 3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Time when this UPST config was updated, shown as an RFC 3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The kerberos keytab content used for creating identity propagation trust config, in base64 + * format + */ + @com.fasterxml.jackson.annotation.JsonProperty("keytabContent") + private final String keytabContent; + + /** + * The kerberos keytab content used for creating identity propagation trust config, in base64 + * format + * + * @return the value + */ + public String getKeytabContent() { + return keytabContent; + } + + @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("UpstConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", masterEncryptionKeyId=").append(String.valueOf(this.masterEncryptionKeyId)); + sb.append(", secretId=").append(String.valueOf(this.secretId)); + sb.append(", timeTokenExchangeKeytabLastRefreshed=") + .append(String.valueOf(this.timeTokenExchangeKeytabLastRefreshed)); + sb.append(", tokenExchangePrincipalName=") + .append(String.valueOf(this.tokenExchangePrincipalName)); + 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(", keytabContent=").append(String.valueOf(this.keytabContent)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpstConfiguration)) { + return false; + } + + UpstConfiguration other = (UpstConfiguration) o; + return java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.masterEncryptionKeyId, other.masterEncryptionKeyId) + && java.util.Objects.equals(this.secretId, other.secretId) + && java.util.Objects.equals( + this.timeTokenExchangeKeytabLastRefreshed, + other.timeTokenExchangeKeytabLastRefreshed) + && java.util.Objects.equals( + this.tokenExchangePrincipalName, other.tokenExchangePrincipalName) + && 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.keytabContent, other.keytabContent) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = + (result * PRIME) + + (this.masterEncryptionKeyId == null + ? 43 + : this.masterEncryptionKeyId.hashCode()); + result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); + result = + (result * PRIME) + + (this.timeTokenExchangeKeytabLastRefreshed == null + ? 43 + : this.timeTokenExchangeKeytabLastRefreshed.hashCode()); + result = + (result * PRIME) + + (this.tokenExchangePrincipalName == null + ? 43 + : this.tokenExchangePrincipalName.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.keytabContent == null ? 43 : this.keytabContent.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpstConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpstConfigurationDetails.java new file mode 100644 index 00000000000..9b158cb83ce --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpstConfigurationDetails.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.bds.model; + +/** + * Details for activating/updating UPST config on 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpstConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpstConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"vaultId", "masterEncryptionKeyId"}) + public UpstConfigurationDetails(String vaultId, String masterEncryptionKeyId) { + super(); + this.vaultId = vaultId; + this.masterEncryptionKeyId = masterEncryptionKeyId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * OCID of the vault to store token exchange service principal keyta, required for + * activating UPST config + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * OCID of the vault to store token exchange service principal keyta, required for + * activating UPST config + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** + * OCID of the master encryption key in vault for encrypting token exchange service + * principal keytab, required for activating UPST config + */ + @com.fasterxml.jackson.annotation.JsonProperty("masterEncryptionKeyId") + private String masterEncryptionKeyId; + + /** + * OCID of the master encryption key in vault for encrypting token exchange service + * principal keytab, required for activating UPST config + * + * @param masterEncryptionKeyId the value to set + * @return this builder + */ + public Builder masterEncryptionKeyId(String masterEncryptionKeyId) { + this.masterEncryptionKeyId = masterEncryptionKeyId; + this.__explicitlySet__.add("masterEncryptionKeyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpstConfigurationDetails build() { + UpstConfigurationDetails model = + new UpstConfigurationDetails(this.vaultId, this.masterEncryptionKeyId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpstConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("masterEncryptionKeyId")) { + this.masterEncryptionKeyId(model.getMasterEncryptionKeyId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * OCID of the vault to store token exchange service principal keyta, required for activating + * UPST config + */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * OCID of the vault to store token exchange service principal keyta, required for activating + * UPST config + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** + * OCID of the master encryption key in vault for encrypting token exchange service principal + * keytab, required for activating UPST config + */ + @com.fasterxml.jackson.annotation.JsonProperty("masterEncryptionKeyId") + private final String masterEncryptionKeyId; + + /** + * OCID of the master encryption key in vault for encrypting token exchange service principal + * keytab, required for activating UPST config + * + * @return the value + */ + public String getMasterEncryptionKeyId() { + return masterEncryptionKeyId; + } + + @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("UpstConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", masterEncryptionKeyId=").append(String.valueOf(this.masterEncryptionKeyId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpstConfigurationDetails)) { + return false; + } + + UpstConfigurationDetails other = (UpstConfigurationDetails) o; + return java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.masterEncryptionKeyId, other.masterEncryptionKeyId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = + (result * PRIME) + + (this.masterEncryptionKeyId == null + ? 43 + : this.masterEncryptionKeyId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateIamUserSyncConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateIamUserSyncConfigurationRequest.java new file mode 100644 index 00000000000..0884ba47f87 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateIamUserSyncConfigurationRequest.java @@ -0,0 +1,394 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * ActivateIamUserSyncConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ActivateIamUserSyncConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.ActivateIamUserSyncConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** The OCID of the identity configuration */ + private String identityConfigurationId; + + /** The OCID of the identity configuration */ + public String getIdentityConfigurationId() { + return identityConfigurationId; + } + /** Details for activating a new IAM user sync config. */ + private com.oracle.bmc.bds.model.ActivateIamUserSyncConfigurationDetails + activateIamUserSyncConfigurationDetails; + + /** Details for activating a new IAM user sync config. */ + public com.oracle.bmc.bds.model.ActivateIamUserSyncConfigurationDetails + getActivateIamUserSyncConfigurationDetails() { + return activateIamUserSyncConfigurationDetails; + } + /** + * 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; + } + /** + * 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.bds.model.ActivateIamUserSyncConfigurationDetails getBody$() { + return activateIamUserSyncConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ActivateIamUserSyncConfigurationRequest, + com.oracle.bmc.bds.model.ActivateIamUserSyncConfigurationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** The OCID of the identity configuration */ + private String identityConfigurationId = null; + + /** + * The OCID of the identity configuration + * + * @param identityConfigurationId the value to set + * @return this builder instance + */ + public Builder identityConfigurationId(String identityConfigurationId) { + this.identityConfigurationId = identityConfigurationId; + return this; + } + + /** Details for activating a new IAM user sync config. */ + private com.oracle.bmc.bds.model.ActivateIamUserSyncConfigurationDetails + activateIamUserSyncConfigurationDetails = null; + + /** + * Details for activating a new IAM user sync config. + * + * @param activateIamUserSyncConfigurationDetails the value to set + * @return this builder instance + */ + public Builder activateIamUserSyncConfigurationDetails( + com.oracle.bmc.bds.model.ActivateIamUserSyncConfigurationDetails + activateIamUserSyncConfigurationDetails) { + this.activateIamUserSyncConfigurationDetails = activateIamUserSyncConfigurationDetails; + 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; + } + + /** + * 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(ActivateIamUserSyncConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + identityConfigurationId(o.getIdentityConfigurationId()); + activateIamUserSyncConfigurationDetails(o.getActivateIamUserSyncConfigurationDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ActivateIamUserSyncConfigurationRequest 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 ActivateIamUserSyncConfigurationRequest + */ + public ActivateIamUserSyncConfigurationRequest build() { + ActivateIamUserSyncConfigurationRequest 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.bds.model.ActivateIamUserSyncConfigurationDetails body) { + activateIamUserSyncConfigurationDetails(body); + return this; + } + + /** + * Build the instance of ActivateIamUserSyncConfigurationRequest 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 ActivateIamUserSyncConfigurationRequest + */ + public ActivateIamUserSyncConfigurationRequest buildWithoutInvocationCallback() { + ActivateIamUserSyncConfigurationRequest request = + new ActivateIamUserSyncConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.identityConfigurationId = identityConfigurationId; + request.activateIamUserSyncConfigurationDetails = + activateIamUserSyncConfigurationDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ActivateIamUserSyncConfigurationRequest(bdsInstanceId, identityConfigurationId, + // activateIamUserSyncConfigurationDetails, opcRetryToken, 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() + .bdsInstanceId(bdsInstanceId) + .identityConfigurationId(identityConfigurationId) + .activateIamUserSyncConfigurationDetails(activateIamUserSyncConfigurationDetails) + .opcRetryToken(opcRetryToken) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",identityConfigurationId=").append(String.valueOf(this.identityConfigurationId)); + sb.append(",activateIamUserSyncConfigurationDetails=") + .append(String.valueOf(this.activateIamUserSyncConfigurationDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 ActivateIamUserSyncConfigurationRequest)) { + return false; + } + + ActivateIamUserSyncConfigurationRequest other = (ActivateIamUserSyncConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.identityConfigurationId, other.identityConfigurationId) + && java.util.Objects.equals( + this.activateIamUserSyncConfigurationDetails, + other.activateIamUserSyncConfigurationDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.identityConfigurationId == null + ? 43 + : this.identityConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.activateIamUserSyncConfigurationDetails == null + ? 43 + : this.activateIamUserSyncConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.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-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateUpstConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateUpstConfigurationRequest.java new file mode 100644 index 00000000000..d17c80fef9a --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateUpstConfigurationRequest.java @@ -0,0 +1,389 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * ActivateUpstConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ActivateUpstConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.ActivateUpstConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** The OCID of the identity configuration */ + private String identityConfigurationId; + + /** The OCID of the identity configuration */ + public String getIdentityConfigurationId() { + return identityConfigurationId; + } + /** Details for activating UPST config */ + private com.oracle.bmc.bds.model.ActivateUpstConfigurationDetails + activateUpstConfigurationDetails; + + /** Details for activating UPST config */ + public com.oracle.bmc.bds.model.ActivateUpstConfigurationDetails + getActivateUpstConfigurationDetails() { + return activateUpstConfigurationDetails; + } + /** + * 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; + } + /** + * 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.bds.model.ActivateUpstConfigurationDetails getBody$() { + return activateUpstConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ActivateUpstConfigurationRequest, + com.oracle.bmc.bds.model.ActivateUpstConfigurationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** The OCID of the identity configuration */ + private String identityConfigurationId = null; + + /** + * The OCID of the identity configuration + * + * @param identityConfigurationId the value to set + * @return this builder instance + */ + public Builder identityConfigurationId(String identityConfigurationId) { + this.identityConfigurationId = identityConfigurationId; + return this; + } + + /** Details for activating UPST config */ + private com.oracle.bmc.bds.model.ActivateUpstConfigurationDetails + activateUpstConfigurationDetails = null; + + /** + * Details for activating UPST config + * + * @param activateUpstConfigurationDetails the value to set + * @return this builder instance + */ + public Builder activateUpstConfigurationDetails( + com.oracle.bmc.bds.model.ActivateUpstConfigurationDetails + activateUpstConfigurationDetails) { + this.activateUpstConfigurationDetails = activateUpstConfigurationDetails; + 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; + } + + /** + * 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(ActivateUpstConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + identityConfigurationId(o.getIdentityConfigurationId()); + activateUpstConfigurationDetails(o.getActivateUpstConfigurationDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ActivateUpstConfigurationRequest 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 ActivateUpstConfigurationRequest + */ + public ActivateUpstConfigurationRequest build() { + ActivateUpstConfigurationRequest 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.bds.model.ActivateUpstConfigurationDetails body) { + activateUpstConfigurationDetails(body); + return this; + } + + /** + * Build the instance of ActivateUpstConfigurationRequest 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 ActivateUpstConfigurationRequest + */ + public ActivateUpstConfigurationRequest buildWithoutInvocationCallback() { + ActivateUpstConfigurationRequest request = new ActivateUpstConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.identityConfigurationId = identityConfigurationId; + request.activateUpstConfigurationDetails = activateUpstConfigurationDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ActivateUpstConfigurationRequest(bdsInstanceId, identityConfigurationId, + // activateUpstConfigurationDetails, opcRetryToken, 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() + .bdsInstanceId(bdsInstanceId) + .identityConfigurationId(identityConfigurationId) + .activateUpstConfigurationDetails(activateUpstConfigurationDetails) + .opcRetryToken(opcRetryToken) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",identityConfigurationId=").append(String.valueOf(this.identityConfigurationId)); + sb.append(",activateUpstConfigurationDetails=") + .append(String.valueOf(this.activateUpstConfigurationDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 ActivateUpstConfigurationRequest)) { + return false; + } + + ActivateUpstConfigurationRequest other = (ActivateUpstConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.identityConfigurationId, other.identityConfigurationId) + && java.util.Objects.equals( + this.activateUpstConfigurationDetails, + other.activateUpstConfigurationDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.identityConfigurationId == null + ? 43 + : this.identityConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.activateUpstConfigurationDetails == null + ? 43 + : this.activateUpstConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.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-bds/src/main/java/com/oracle/bmc/bds/requests/CreateIdentityConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateIdentityConfigurationRequest.java new file mode 100644 index 00000000000..f08d37f4929 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateIdentityConfigurationRequest.java @@ -0,0 +1,312 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * CreateIdentityConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateIdentityConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.CreateIdentityConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Details for creating an identity configuration */ + private com.oracle.bmc.bds.model.CreateIdentityConfigurationDetails + createIdentityConfigurationDetails; + + /** Details for creating an identity configuration */ + public com.oracle.bmc.bds.model.CreateIdentityConfigurationDetails + getCreateIdentityConfigurationDetails() { + return createIdentityConfigurationDetails; + } + /** + * 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.bds.model.CreateIdentityConfigurationDetails getBody$() { + return createIdentityConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateIdentityConfigurationRequest, + com.oracle.bmc.bds.model.CreateIdentityConfigurationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** Details for creating an identity configuration */ + private com.oracle.bmc.bds.model.CreateIdentityConfigurationDetails + createIdentityConfigurationDetails = null; + + /** + * Details for creating an identity configuration + * + * @param createIdentityConfigurationDetails the value to set + * @return this builder instance + */ + public Builder createIdentityConfigurationDetails( + com.oracle.bmc.bds.model.CreateIdentityConfigurationDetails + createIdentityConfigurationDetails) { + this.createIdentityConfigurationDetails = createIdentityConfigurationDetails; + 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(CreateIdentityConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + createIdentityConfigurationDetails(o.getCreateIdentityConfigurationDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateIdentityConfigurationRequest 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 CreateIdentityConfigurationRequest + */ + public CreateIdentityConfigurationRequest build() { + CreateIdentityConfigurationRequest 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.bds.model.CreateIdentityConfigurationDetails body) { + createIdentityConfigurationDetails(body); + return this; + } + + /** + * Build the instance of CreateIdentityConfigurationRequest 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 CreateIdentityConfigurationRequest + */ + public CreateIdentityConfigurationRequest buildWithoutInvocationCallback() { + CreateIdentityConfigurationRequest request = new CreateIdentityConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.createIdentityConfigurationDetails = createIdentityConfigurationDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateIdentityConfigurationRequest(bdsInstanceId, + // createIdentityConfigurationDetails, 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() + .bdsInstanceId(bdsInstanceId) + .createIdentityConfigurationDetails(createIdentityConfigurationDetails) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",createIdentityConfigurationDetails=") + .append(String.valueOf(this.createIdentityConfigurationDetails)); + 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 CreateIdentityConfigurationRequest)) { + return false; + } + + CreateIdentityConfigurationRequest other = (CreateIdentityConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.createIdentityConfigurationDetails, + other.createIdentityConfigurationDetails) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.createIdentityConfigurationDetails == null + ? 43 + : this.createIdentityConfigurationDetails.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-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateIamUserSyncConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateIamUserSyncConfigurationRequest.java new file mode 100644 index 00000000000..3acb97e0951 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateIamUserSyncConfigurationRequest.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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * DeactivateIamUserSyncConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeactivateIamUserSyncConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.DeactivateIamUserSyncConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** The OCID of the identity configuration */ + private String identityConfigurationId; + + /** The OCID of the identity configuration */ + public String getIdentityConfigurationId() { + return identityConfigurationId; + } + /** Details for deactivating the IAM user sync config */ + private com.oracle.bmc.bds.model.DeactivateIamUserSyncConfigurationDetails + deactivateIamUserSyncConfigurationDetails; + + /** Details for deactivating the IAM user sync config */ + public com.oracle.bmc.bds.model.DeactivateIamUserSyncConfigurationDetails + getDeactivateIamUserSyncConfigurationDetails() { + return deactivateIamUserSyncConfigurationDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** + * 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.bds.model.DeactivateIamUserSyncConfigurationDetails getBody$() { + return deactivateIamUserSyncConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeactivateIamUserSyncConfigurationRequest, + com.oracle.bmc.bds.model.DeactivateIamUserSyncConfigurationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** The OCID of the identity configuration */ + private String identityConfigurationId = null; + + /** + * The OCID of the identity configuration + * + * @param identityConfigurationId the value to set + * @return this builder instance + */ + public Builder identityConfigurationId(String identityConfigurationId) { + this.identityConfigurationId = identityConfigurationId; + return this; + } + + /** Details for deactivating the IAM user sync config */ + private com.oracle.bmc.bds.model.DeactivateIamUserSyncConfigurationDetails + deactivateIamUserSyncConfigurationDetails = null; + + /** + * Details for deactivating the IAM user sync config + * + * @param deactivateIamUserSyncConfigurationDetails the value to set + * @return this builder instance + */ + public Builder deactivateIamUserSyncConfigurationDetails( + com.oracle.bmc.bds.model.DeactivateIamUserSyncConfigurationDetails + deactivateIamUserSyncConfigurationDetails) { + this.deactivateIamUserSyncConfigurationDetails = + deactivateIamUserSyncConfigurationDetails; + 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; + } + + /** + * 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; + } + + /** + * 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(DeactivateIamUserSyncConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + identityConfigurationId(o.getIdentityConfigurationId()); + deactivateIamUserSyncConfigurationDetails( + o.getDeactivateIamUserSyncConfigurationDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeactivateIamUserSyncConfigurationRequest 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 DeactivateIamUserSyncConfigurationRequest + */ + public DeactivateIamUserSyncConfigurationRequest build() { + DeactivateIamUserSyncConfigurationRequest 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.bds.model.DeactivateIamUserSyncConfigurationDetails body) { + deactivateIamUserSyncConfigurationDetails(body); + return this; + } + + /** + * Build the instance of DeactivateIamUserSyncConfigurationRequest 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 DeactivateIamUserSyncConfigurationRequest + */ + public DeactivateIamUserSyncConfigurationRequest buildWithoutInvocationCallback() { + DeactivateIamUserSyncConfigurationRequest request = + new DeactivateIamUserSyncConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.identityConfigurationId = identityConfigurationId; + request.deactivateIamUserSyncConfigurationDetails = + deactivateIamUserSyncConfigurationDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new DeactivateIamUserSyncConfigurationRequest(bdsInstanceId, identityConfigurationId, + // deactivateIamUserSyncConfigurationDetails, opcRequestId, ifMatch, 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() + .bdsInstanceId(bdsInstanceId) + .identityConfigurationId(identityConfigurationId) + .deactivateIamUserSyncConfigurationDetails( + deactivateIamUserSyncConfigurationDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",identityConfigurationId=").append(String.valueOf(this.identityConfigurationId)); + sb.append(",deactivateIamUserSyncConfigurationDetails=") + .append(String.valueOf(this.deactivateIamUserSyncConfigurationDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 DeactivateIamUserSyncConfigurationRequest)) { + return false; + } + + DeactivateIamUserSyncConfigurationRequest other = + (DeactivateIamUserSyncConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.identityConfigurationId, other.identityConfigurationId) + && java.util.Objects.equals( + this.deactivateIamUserSyncConfigurationDetails, + other.deactivateIamUserSyncConfigurationDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.identityConfigurationId == null + ? 43 + : this.identityConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.deactivateIamUserSyncConfigurationDetails == null + ? 43 + : this.deactivateIamUserSyncConfigurationDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateUpstConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateUpstConfigurationRequest.java new file mode 100644 index 00000000000..68001fade52 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateUpstConfigurationRequest.java @@ -0,0 +1,389 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * DeactivateUpstConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeactivateUpstConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.DeactivateUpstConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** The OCID of the identity configuration */ + private String identityConfigurationId; + + /** The OCID of the identity configuration */ + public String getIdentityConfigurationId() { + return identityConfigurationId; + } + /** Details for deactivating the UPST config */ + private com.oracle.bmc.bds.model.DeactivateUpstConfigurationDetails + deactivateUpstConfigurationDetails; + + /** Details for deactivating the UPST config */ + public com.oracle.bmc.bds.model.DeactivateUpstConfigurationDetails + getDeactivateUpstConfigurationDetails() { + return deactivateUpstConfigurationDetails; + } + /** 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; + } + /** + * 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.bds.model.DeactivateUpstConfigurationDetails getBody$() { + return deactivateUpstConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeactivateUpstConfigurationRequest, + com.oracle.bmc.bds.model.DeactivateUpstConfigurationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** The OCID of the identity configuration */ + private String identityConfigurationId = null; + + /** + * The OCID of the identity configuration + * + * @param identityConfigurationId the value to set + * @return this builder instance + */ + public Builder identityConfigurationId(String identityConfigurationId) { + this.identityConfigurationId = identityConfigurationId; + return this; + } + + /** Details for deactivating the UPST config */ + private com.oracle.bmc.bds.model.DeactivateUpstConfigurationDetails + deactivateUpstConfigurationDetails = null; + + /** + * Details for deactivating the UPST config + * + * @param deactivateUpstConfigurationDetails the value to set + * @return this builder instance + */ + public Builder deactivateUpstConfigurationDetails( + com.oracle.bmc.bds.model.DeactivateUpstConfigurationDetails + deactivateUpstConfigurationDetails) { + this.deactivateUpstConfigurationDetails = deactivateUpstConfigurationDetails; + 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; + } + + /** + * 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; + } + + /** + * 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(DeactivateUpstConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + identityConfigurationId(o.getIdentityConfigurationId()); + deactivateUpstConfigurationDetails(o.getDeactivateUpstConfigurationDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeactivateUpstConfigurationRequest 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 DeactivateUpstConfigurationRequest + */ + public DeactivateUpstConfigurationRequest build() { + DeactivateUpstConfigurationRequest 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.bds.model.DeactivateUpstConfigurationDetails body) { + deactivateUpstConfigurationDetails(body); + return this; + } + + /** + * Build the instance of DeactivateUpstConfigurationRequest 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 DeactivateUpstConfigurationRequest + */ + public DeactivateUpstConfigurationRequest buildWithoutInvocationCallback() { + DeactivateUpstConfigurationRequest request = new DeactivateUpstConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.identityConfigurationId = identityConfigurationId; + request.deactivateUpstConfigurationDetails = deactivateUpstConfigurationDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new DeactivateUpstConfigurationRequest(bdsInstanceId, identityConfigurationId, + // deactivateUpstConfigurationDetails, opcRequestId, opcRetryToken, ifMatch); + } + } + + /** + * 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() + .bdsInstanceId(bdsInstanceId) + .identityConfigurationId(identityConfigurationId) + .deactivateUpstConfigurationDetails(deactivateUpstConfigurationDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); + } + + /** + * 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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",identityConfigurationId=").append(String.valueOf(this.identityConfigurationId)); + sb.append(",deactivateUpstConfigurationDetails=") + .append(String.valueOf(this.deactivateUpstConfigurationDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeactivateUpstConfigurationRequest)) { + return false; + } + + DeactivateUpstConfigurationRequest other = (DeactivateUpstConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.identityConfigurationId, other.identityConfigurationId) + && java.util.Objects.equals( + this.deactivateUpstConfigurationDetails, + other.deactivateUpstConfigurationDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.identityConfigurationId == null + ? 43 + : this.identityConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.deactivateUpstConfigurationDetails == null + ? 43 + : this.deactivateUpstConfigurationDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteIdentityConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteIdentityConfigurationRequest.java new file mode 100644 index 00000000000..36700c42533 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteIdentityConfigurationRequest.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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * DeleteIdentityConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteIdentityConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** The OCID of the identity configuration */ + private String identityConfigurationId; + + /** The OCID of the identity configuration */ + public String getIdentityConfigurationId() { + return identityConfigurationId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteIdentityConfigurationRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** The OCID of the identity configuration */ + private String identityConfigurationId = null; + + /** + * The OCID of the identity configuration + * + * @param identityConfigurationId the value to set + * @return this builder instance + */ + public Builder identityConfigurationId(String identityConfigurationId) { + this.identityConfigurationId = identityConfigurationId; + 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; + } + + /** + * 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; + } + + /** + * 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(DeleteIdentityConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + identityConfigurationId(o.getIdentityConfigurationId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteIdentityConfigurationRequest 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 DeleteIdentityConfigurationRequest + */ + public DeleteIdentityConfigurationRequest build() { + DeleteIdentityConfigurationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteIdentityConfigurationRequest 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 DeleteIdentityConfigurationRequest + */ + public DeleteIdentityConfigurationRequest buildWithoutInvocationCallback() { + DeleteIdentityConfigurationRequest request = new DeleteIdentityConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.identityConfigurationId = identityConfigurationId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new DeleteIdentityConfigurationRequest(bdsInstanceId, identityConfigurationId, + // opcRequestId, ifMatch); + } + } + + /** + * 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() + .bdsInstanceId(bdsInstanceId) + .identityConfigurationId(identityConfigurationId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * 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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",identityConfigurationId=").append(String.valueOf(this.identityConfigurationId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteIdentityConfigurationRequest)) { + return false; + } + + DeleteIdentityConfigurationRequest other = (DeleteIdentityConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.identityConfigurationId, other.identityConfigurationId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.identityConfigurationId == null + ? 43 + : this.identityConfigurationId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetIdentityConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetIdentityConfigurationRequest.java new file mode 100644 index 00000000000..187dcc2a8f7 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetIdentityConfigurationRequest.java @@ -0,0 +1,399 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * GetIdentityConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetIdentityConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** The OCID of the identity configuration */ + private String identityConfigurationId; + + /** The OCID of the identity configuration */ + public String getIdentityConfigurationId() { + return identityConfigurationId; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + 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 timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + 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. If no value is specified timeCreated + * is default. + */ + 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. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.bds.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.bds.model.SortOrders 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< + GetIdentityConfigurationRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** The OCID of the identity configuration */ + private String identityConfigurationId = null; + + /** + * The OCID of the identity configuration + * + * @param identityConfigurationId the value to set + * @return this builder instance + */ + public Builder identityConfigurationId(String identityConfigurationId) { + this.identityConfigurationId = identityConfigurationId; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @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 timeCreated + * is descending. Default order for displayName is ascending. If no value is specified + * timeCreated is default. + */ + 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. If no value is specified + * timeCreated is default. + * + * @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.bds.model.SortOrders 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.bds.model.SortOrders 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(GetIdentityConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + identityConfigurationId(o.getIdentityConfigurationId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetIdentityConfigurationRequest 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 GetIdentityConfigurationRequest + */ + public GetIdentityConfigurationRequest build() { + GetIdentityConfigurationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetIdentityConfigurationRequest 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 GetIdentityConfigurationRequest + */ + public GetIdentityConfigurationRequest buildWithoutInvocationCallback() { + GetIdentityConfigurationRequest request = new GetIdentityConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.identityConfigurationId = identityConfigurationId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new GetIdentityConfigurationRequest(bdsInstanceId, identityConfigurationId, page, + // limit, 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() + .bdsInstanceId(bdsInstanceId) + .identityConfigurationId(identityConfigurationId) + .page(page) + .limit(limit) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",identityConfigurationId=").append(String.valueOf(this.identityConfigurationId)); + 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(",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 GetIdentityConfigurationRequest)) { + return false; + } + + GetIdentityConfigurationRequest other = (GetIdentityConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.identityConfigurationId, other.identityConfigurationId) + && 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) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.identityConfigurationId == null + ? 43 + : this.identityConfigurationId.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()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsClusterVersionsRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsClusterVersionsRequest.java new file mode 100644 index 00000000000..1da318cebc9 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsClusterVersionsRequest.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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * ListBdsClusterVersionsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsClusterVersionsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + 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. If no value is specified + * bdsVersion is default. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. If no value is specified + * bdsVersion is default. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + BdsVersion("bdsVersion"), + ; + + 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. If no value is specified + * bdsVersion is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.bds.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.bds.model.SortOrders 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< + ListBdsClusterVersionsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @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. If no value is specified + * bdsVersion is default. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. If no value is specified + * bdsVersion is default. + * + * @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.bds.model.SortOrders 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.bds.model.SortOrders 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(ListBdsClusterVersionsRequest o) { + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBdsClusterVersionsRequest 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 ListBdsClusterVersionsRequest + */ + public ListBdsClusterVersionsRequest build() { + ListBdsClusterVersionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBdsClusterVersionsRequest 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 ListBdsClusterVersionsRequest + */ + public ListBdsClusterVersionsRequest buildWithoutInvocationCallback() { + ListBdsClusterVersionsRequest request = new ListBdsClusterVersionsRequest(); + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + return request; + // new ListBdsClusterVersionsRequest(page, limit, 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() + .page(page) + .limit(limit) + .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(",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(",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 ListBdsClusterVersionsRequest)) { + return false; + } + + ListBdsClusterVersionsRequest other = (ListBdsClusterVersionsRequest) o; + return super.equals(o) + && 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) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.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()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListIdentityConfigurationsRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListIdentityConfigurationsRequest.java new file mode 100644 index 00000000000..105e6d5cee0 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListIdentityConfigurationsRequest.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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * ListIdentityConfigurationsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListIdentityConfigurationsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** The OCID of the compartment. */ + private String compartmentId; + + /** The OCID of the compartment. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + 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 timeCreated is + * descending. Default order for displayName is ascending. If no value is specified timeCreated + * is default. + */ + 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. If no value is specified timeCreated + * is default. + */ + 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. If no value is specified timeCreated + * is default. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.bds.model.SortOrders sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.bds.model.SortOrders getSortOrder() { + return sortOrder; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The state of the identity config */ + private com.oracle.bmc.bds.model.IdentityConfiguration.LifecycleState lifecycleState; + + /** The state of the identity config */ + public com.oracle.bmc.bds.model.IdentityConfiguration.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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListIdentityConfigurationsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** The OCID of the compartment. */ + private String compartmentId = null; + + /** + * The OCID of the compartment. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @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 timeCreated + * is descending. Default order for displayName is ascending. If no value is specified + * timeCreated is default. + */ + 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. If no value is specified + * timeCreated is default. + * + * @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.bds.model.SortOrders 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.bds.model.SortOrders 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; + } + + /** The state of the identity config */ + private com.oracle.bmc.bds.model.IdentityConfiguration.LifecycleState lifecycleState = null; + + /** + * The state of the identity config + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.bds.model.IdentityConfiguration.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; + } + + /** + * 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(ListIdentityConfigurationsRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + compartmentId(o.getCompartmentId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListIdentityConfigurationsRequest 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 ListIdentityConfigurationsRequest + */ + public ListIdentityConfigurationsRequest build() { + ListIdentityConfigurationsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListIdentityConfigurationsRequest 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 ListIdentityConfigurationsRequest + */ + public ListIdentityConfigurationsRequest buildWithoutInvocationCallback() { + ListIdentityConfigurationsRequest request = new ListIdentityConfigurationsRequest(); + request.bdsInstanceId = bdsInstanceId; + request.compartmentId = compartmentId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + return request; + // new ListIdentityConfigurationsRequest(bdsInstanceId, compartmentId, page, limit, + // sortBy, sortOrder, opcRequestId, lifecycleState, displayName); + } + } + + /** + * 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() + .bdsInstanceId(bdsInstanceId) + .compartmentId(compartmentId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId) + .lifecycleState(lifecycleState) + .displayName(displayName); + } + + /** + * 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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + 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(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListIdentityConfigurationsRequest)) { + return false; + } + + ListIdentityConfigurationsRequest other = (ListIdentityConfigurationsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && 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) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.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()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/RefreshConfidentialApplicationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/RefreshConfidentialApplicationRequest.java new file mode 100644 index 00000000000..17dd8b3fdb6 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/RefreshConfidentialApplicationRequest.java @@ -0,0 +1,390 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * RefreshConfidentialApplicationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class RefreshConfidentialApplicationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.RefreshConfidentialApplicationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** The OCID of the identity configuration */ + private String identityConfigurationId; + + /** The OCID of the identity configuration */ + public String getIdentityConfigurationId() { + return identityConfigurationId; + } + /** Details for refreshing confidential application */ + private com.oracle.bmc.bds.model.RefreshConfidentialApplicationDetails + refreshConfidentialApplicationDetails; + + /** Details for refreshing confidential application */ + public com.oracle.bmc.bds.model.RefreshConfidentialApplicationDetails + getRefreshConfidentialApplicationDetails() { + return refreshConfidentialApplicationDetails; + } + /** + * 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; + } + /** + * 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.bds.model.RefreshConfidentialApplicationDetails getBody$() { + return refreshConfidentialApplicationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RefreshConfidentialApplicationRequest, + com.oracle.bmc.bds.model.RefreshConfidentialApplicationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** The OCID of the identity configuration */ + private String identityConfigurationId = null; + + /** + * The OCID of the identity configuration + * + * @param identityConfigurationId the value to set + * @return this builder instance + */ + public Builder identityConfigurationId(String identityConfigurationId) { + this.identityConfigurationId = identityConfigurationId; + return this; + } + + /** Details for refreshing confidential application */ + private com.oracle.bmc.bds.model.RefreshConfidentialApplicationDetails + refreshConfidentialApplicationDetails = null; + + /** + * Details for refreshing confidential application + * + * @param refreshConfidentialApplicationDetails the value to set + * @return this builder instance + */ + public Builder refreshConfidentialApplicationDetails( + com.oracle.bmc.bds.model.RefreshConfidentialApplicationDetails + refreshConfidentialApplicationDetails) { + this.refreshConfidentialApplicationDetails = refreshConfidentialApplicationDetails; + 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; + } + + /** + * 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(RefreshConfidentialApplicationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + identityConfigurationId(o.getIdentityConfigurationId()); + refreshConfidentialApplicationDetails(o.getRefreshConfidentialApplicationDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RefreshConfidentialApplicationRequest 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 RefreshConfidentialApplicationRequest + */ + public RefreshConfidentialApplicationRequest build() { + RefreshConfidentialApplicationRequest 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.bds.model.RefreshConfidentialApplicationDetails body) { + refreshConfidentialApplicationDetails(body); + return this; + } + + /** + * Build the instance of RefreshConfidentialApplicationRequest 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 RefreshConfidentialApplicationRequest + */ + public RefreshConfidentialApplicationRequest buildWithoutInvocationCallback() { + RefreshConfidentialApplicationRequest request = + new RefreshConfidentialApplicationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.identityConfigurationId = identityConfigurationId; + request.refreshConfidentialApplicationDetails = refreshConfidentialApplicationDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new RefreshConfidentialApplicationRequest(bdsInstanceId, identityConfigurationId, + // refreshConfidentialApplicationDetails, opcRetryToken, 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() + .bdsInstanceId(bdsInstanceId) + .identityConfigurationId(identityConfigurationId) + .refreshConfidentialApplicationDetails(refreshConfidentialApplicationDetails) + .opcRetryToken(opcRetryToken) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",identityConfigurationId=").append(String.valueOf(this.identityConfigurationId)); + sb.append(",refreshConfidentialApplicationDetails=") + .append(String.valueOf(this.refreshConfidentialApplicationDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 RefreshConfidentialApplicationRequest)) { + return false; + } + + RefreshConfidentialApplicationRequest other = (RefreshConfidentialApplicationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.identityConfigurationId, other.identityConfigurationId) + && java.util.Objects.equals( + this.refreshConfidentialApplicationDetails, + other.refreshConfidentialApplicationDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.identityConfigurationId == null + ? 43 + : this.identityConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.refreshConfidentialApplicationDetails == null + ? 43 + : this.refreshConfidentialApplicationDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.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-bds/src/main/java/com/oracle/bmc/bds/requests/RefreshUpstTokenExchangeKeytabRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/RefreshUpstTokenExchangeKeytabRequest.java new file mode 100644 index 00000000000..e95b99eec1f --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/RefreshUpstTokenExchangeKeytabRequest.java @@ -0,0 +1,390 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * RefreshUpstTokenExchangeKeytabRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class RefreshUpstTokenExchangeKeytabRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.RefreshUpstTokenExchangeKeytabDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** The OCID of the identity configuration */ + private String identityConfigurationId; + + /** The OCID of the identity configuration */ + public String getIdentityConfigurationId() { + return identityConfigurationId; + } + /** Details for refreshing User Principal Session (UPST) token exchange keytab */ + private com.oracle.bmc.bds.model.RefreshUpstTokenExchangeKeytabDetails + refreshUpstTokenExchangeKeytabDetails; + + /** Details for refreshing User Principal Session (UPST) token exchange keytab */ + public com.oracle.bmc.bds.model.RefreshUpstTokenExchangeKeytabDetails + getRefreshUpstTokenExchangeKeytabDetails() { + return refreshUpstTokenExchangeKeytabDetails; + } + /** + * 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; + } + /** + * 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.bds.model.RefreshUpstTokenExchangeKeytabDetails getBody$() { + return refreshUpstTokenExchangeKeytabDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RefreshUpstTokenExchangeKeytabRequest, + com.oracle.bmc.bds.model.RefreshUpstTokenExchangeKeytabDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** The OCID of the identity configuration */ + private String identityConfigurationId = null; + + /** + * The OCID of the identity configuration + * + * @param identityConfigurationId the value to set + * @return this builder instance + */ + public Builder identityConfigurationId(String identityConfigurationId) { + this.identityConfigurationId = identityConfigurationId; + return this; + } + + /** Details for refreshing User Principal Session (UPST) token exchange keytab */ + private com.oracle.bmc.bds.model.RefreshUpstTokenExchangeKeytabDetails + refreshUpstTokenExchangeKeytabDetails = null; + + /** + * Details for refreshing User Principal Session (UPST) token exchange keytab + * + * @param refreshUpstTokenExchangeKeytabDetails the value to set + * @return this builder instance + */ + public Builder refreshUpstTokenExchangeKeytabDetails( + com.oracle.bmc.bds.model.RefreshUpstTokenExchangeKeytabDetails + refreshUpstTokenExchangeKeytabDetails) { + this.refreshUpstTokenExchangeKeytabDetails = refreshUpstTokenExchangeKeytabDetails; + 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; + } + + /** + * 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; + } + + /** + * 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(RefreshUpstTokenExchangeKeytabRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + identityConfigurationId(o.getIdentityConfigurationId()); + refreshUpstTokenExchangeKeytabDetails(o.getRefreshUpstTokenExchangeKeytabDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RefreshUpstTokenExchangeKeytabRequest 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 RefreshUpstTokenExchangeKeytabRequest + */ + public RefreshUpstTokenExchangeKeytabRequest build() { + RefreshUpstTokenExchangeKeytabRequest 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.bds.model.RefreshUpstTokenExchangeKeytabDetails body) { + refreshUpstTokenExchangeKeytabDetails(body); + return this; + } + + /** + * Build the instance of RefreshUpstTokenExchangeKeytabRequest 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 RefreshUpstTokenExchangeKeytabRequest + */ + public RefreshUpstTokenExchangeKeytabRequest buildWithoutInvocationCallback() { + RefreshUpstTokenExchangeKeytabRequest request = + new RefreshUpstTokenExchangeKeytabRequest(); + request.bdsInstanceId = bdsInstanceId; + request.identityConfigurationId = identityConfigurationId; + request.refreshUpstTokenExchangeKeytabDetails = refreshUpstTokenExchangeKeytabDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RefreshUpstTokenExchangeKeytabRequest(bdsInstanceId, identityConfigurationId, + // refreshUpstTokenExchangeKeytabDetails, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * 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() + .bdsInstanceId(bdsInstanceId) + .identityConfigurationId(identityConfigurationId) + .refreshUpstTokenExchangeKeytabDetails(refreshUpstTokenExchangeKeytabDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * 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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",identityConfigurationId=").append(String.valueOf(this.identityConfigurationId)); + sb.append(",refreshUpstTokenExchangeKeytabDetails=") + .append(String.valueOf(this.refreshUpstTokenExchangeKeytabDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RefreshUpstTokenExchangeKeytabRequest)) { + return false; + } + + RefreshUpstTokenExchangeKeytabRequest other = (RefreshUpstTokenExchangeKeytabRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.identityConfigurationId, other.identityConfigurationId) + && java.util.Objects.equals( + this.refreshUpstTokenExchangeKeytabDetails, + other.refreshUpstTokenExchangeKeytabDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.identityConfigurationId == null + ? 43 + : this.identityConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.refreshUpstTokenExchangeKeytabDetails == null + ? 43 + : this.refreshUpstTokenExchangeKeytabDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateIdentityConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateIdentityConfigurationRequest.java new file mode 100644 index 00000000000..e8919e59251 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateIdentityConfigurationRequest.java @@ -0,0 +1,389 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use + * UpdateIdentityConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateIdentityConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.UpdateIdentityConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** The OCID of the identity configuration */ + private String identityConfigurationId; + + /** The OCID of the identity configuration */ + public String getIdentityConfigurationId() { + return identityConfigurationId; + } + /** Details for updating an identity configuration */ + private com.oracle.bmc.bds.model.UpdateIdentityConfigurationDetails + updateIdentityConfigurationDetails; + + /** Details for updating an identity configuration */ + public com.oracle.bmc.bds.model.UpdateIdentityConfigurationDetails + getUpdateIdentityConfigurationDetails() { + return updateIdentityConfigurationDetails; + } + /** + * 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; + } + /** + * 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.bds.model.UpdateIdentityConfigurationDetails getBody$() { + return updateIdentityConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateIdentityConfigurationRequest, + com.oracle.bmc.bds.model.UpdateIdentityConfigurationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the cluster. */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** The OCID of the identity configuration */ + private String identityConfigurationId = null; + + /** + * The OCID of the identity configuration + * + * @param identityConfigurationId the value to set + * @return this builder instance + */ + public Builder identityConfigurationId(String identityConfigurationId) { + this.identityConfigurationId = identityConfigurationId; + return this; + } + + /** Details for updating an identity configuration */ + private com.oracle.bmc.bds.model.UpdateIdentityConfigurationDetails + updateIdentityConfigurationDetails = null; + + /** + * Details for updating an identity configuration + * + * @param updateIdentityConfigurationDetails the value to set + * @return this builder instance + */ + public Builder updateIdentityConfigurationDetails( + com.oracle.bmc.bds.model.UpdateIdentityConfigurationDetails + updateIdentityConfigurationDetails) { + this.updateIdentityConfigurationDetails = updateIdentityConfigurationDetails; + 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; + } + + /** + * 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(UpdateIdentityConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + identityConfigurationId(o.getIdentityConfigurationId()); + updateIdentityConfigurationDetails(o.getUpdateIdentityConfigurationDetails()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateIdentityConfigurationRequest 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 UpdateIdentityConfigurationRequest + */ + public UpdateIdentityConfigurationRequest build() { + UpdateIdentityConfigurationRequest 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.bds.model.UpdateIdentityConfigurationDetails body) { + updateIdentityConfigurationDetails(body); + return this; + } + + /** + * Build the instance of UpdateIdentityConfigurationRequest 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 UpdateIdentityConfigurationRequest + */ + public UpdateIdentityConfigurationRequest buildWithoutInvocationCallback() { + UpdateIdentityConfigurationRequest request = new UpdateIdentityConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.identityConfigurationId = identityConfigurationId; + request.updateIdentityConfigurationDetails = updateIdentityConfigurationDetails; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateIdentityConfigurationRequest(bdsInstanceId, identityConfigurationId, + // updateIdentityConfigurationDetails, opcRetryToken, 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() + .bdsInstanceId(bdsInstanceId) + .identityConfigurationId(identityConfigurationId) + .updateIdentityConfigurationDetails(updateIdentityConfigurationDetails) + .opcRetryToken(opcRetryToken) + .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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",identityConfigurationId=").append(String.valueOf(this.identityConfigurationId)); + sb.append(",updateIdentityConfigurationDetails=") + .append(String.valueOf(this.updateIdentityConfigurationDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 UpdateIdentityConfigurationRequest)) { + return false; + } + + UpdateIdentityConfigurationRequest other = (UpdateIdentityConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.identityConfigurationId, other.identityConfigurationId) + && java.util.Objects.equals( + this.updateIdentityConfigurationDetails, + other.updateIdentityConfigurationDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && 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.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.identityConfigurationId == null + ? 43 + : this.identityConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.updateIdentityConfigurationDetails == null + ? 43 + : this.updateIdentityConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.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-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateIamUserSyncConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateIamUserSyncConfigurationResponse.java new file mode 100644 index 00000000000..140017df9f8 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateIamUserSyncConfigurationResponse.java @@ -0,0 +1,187 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ActivateIamUserSyncConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ActivateIamUserSyncConfigurationResponse( + 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< + ActivateIamUserSyncConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ActivateIamUserSyncConfigurationResponse 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 ActivateIamUserSyncConfigurationResponse build() { + return new ActivateIamUserSyncConfigurationResponse( + __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 ActivateIamUserSyncConfigurationResponse)) { + return false; + } + + ActivateIamUserSyncConfigurationResponse other = + (ActivateIamUserSyncConfigurationResponse) 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-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateUpstConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateUpstConfigurationResponse.java new file mode 100644 index 00000000000..afdbbbe7c57 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateUpstConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ActivateUpstConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ActivateUpstConfigurationResponse( + 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< + ActivateUpstConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ActivateUpstConfigurationResponse 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 ActivateUpstConfigurationResponse build() { + return new ActivateUpstConfigurationResponse( + __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 ActivateUpstConfigurationResponse)) { + return false; + } + + ActivateUpstConfigurationResponse other = (ActivateUpstConfigurationResponse) 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-bds/src/main/java/com/oracle/bmc/bds/responses/CreateIdentityConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateIdentityConfigurationResponse.java new file mode 100644 index 00000000000..7142af8f2f1 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateIdentityConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateIdentityConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private CreateIdentityConfigurationResponse( + 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< + CreateIdentityConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateIdentityConfigurationResponse 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 CreateIdentityConfigurationResponse build() { + return new CreateIdentityConfigurationResponse( + __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 CreateIdentityConfigurationResponse)) { + return false; + } + + CreateIdentityConfigurationResponse other = (CreateIdentityConfigurationResponse) 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-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateIamUserSyncConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateIamUserSyncConfigurationResponse.java new file mode 100644 index 00000000000..87eac2d699a --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateIamUserSyncConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeactivateIamUserSyncConfigurationResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeactivateIamUserSyncConfigurationResponse( + 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< + DeactivateIamUserSyncConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeactivateIamUserSyncConfigurationResponse 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 DeactivateIamUserSyncConfigurationResponse build() { + return new DeactivateIamUserSyncConfigurationResponse( + __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 DeactivateIamUserSyncConfigurationResponse)) { + return false; + } + + DeactivateIamUserSyncConfigurationResponse other = + (DeactivateIamUserSyncConfigurationResponse) 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-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateUpstConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateUpstConfigurationResponse.java new file mode 100644 index 00000000000..cbfec7899c7 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateUpstConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeactivateUpstConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeactivateUpstConfigurationResponse( + 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< + DeactivateUpstConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeactivateUpstConfigurationResponse 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 DeactivateUpstConfigurationResponse build() { + return new DeactivateUpstConfigurationResponse( + __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 DeactivateUpstConfigurationResponse)) { + return false; + } + + DeactivateUpstConfigurationResponse other = (DeactivateUpstConfigurationResponse) 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-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteIdentityConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteIdentityConfigurationResponse.java new file mode 100644 index 00000000000..eb1bc9192bc --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteIdentityConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteIdentityConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteIdentityConfigurationResponse( + 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< + DeleteIdentityConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteIdentityConfigurationResponse 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 DeleteIdentityConfigurationResponse build() { + return new DeleteIdentityConfigurationResponse( + __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 DeleteIdentityConfigurationResponse)) { + return false; + } + + DeleteIdentityConfigurationResponse other = (DeleteIdentityConfigurationResponse) 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-bds/src/main/java/com/oracle/bmc/bds/responses/GetIdentityConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetIdentityConfigurationResponse.java new file mode 100644 index 00000000000..336348468f4 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetIdentityConfigurationResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetIdentityConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** 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; + } + + /** The returned {@code IdentityConfiguration} instance. */ + private com.oracle.bmc.bds.model.IdentityConfiguration identityConfiguration; + + /** + * The returned {@code IdentityConfiguration} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.IdentityConfiguration getIdentityConfiguration() { + return identityConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "identityConfiguration" + }) + private GetIdentityConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.IdentityConfiguration identityConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.identityConfiguration = identityConfiguration; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetIdentityConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** The returned {@code IdentityConfiguration} instance. */ + private com.oracle.bmc.bds.model.IdentityConfiguration identityConfiguration; + + /** + * The returned {@code IdentityConfiguration} instance. + * + * @param identityConfiguration the value to set + * @return this builder + */ + public Builder identityConfiguration( + com.oracle.bmc.bds.model.IdentityConfiguration identityConfiguration) { + this.identityConfiguration = identityConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetIdentityConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + identityConfiguration(o.getIdentityConfiguration()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetIdentityConfigurationResponse build() { + return new GetIdentityConfigurationResponse( + __httpStatusCode__, headers, opcRequestId, etag, identityConfiguration); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",identityConfiguration=").append(String.valueOf(identityConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetIdentityConfigurationResponse)) { + return false; + } + + GetIdentityConfigurationResponse other = (GetIdentityConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.identityConfiguration, other.identityConfiguration); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.identityConfiguration == null + ? 43 + : this.identityConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsClusterVersionsResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsClusterVersionsResponse.java new file mode 100644 index 00000000000..86d3fc7e50a --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsClusterVersionsResponse.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsClusterVersionsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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 list of {@code com.oracle.bmc.bds.model.BdsClusterVersionSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.bds.model.BdsClusterVersionSummary} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListBdsClusterVersionsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.items = items; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListBdsClusterVersionsResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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 list of {@code com.oracle.bmc.bds.model.BdsClusterVersionSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.bds.model.BdsClusterVersionSummary} instances. + * + * @param items the value to set + * @return this builder + */ + public Builder items( + java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListBdsClusterVersionsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListBdsClusterVersionsResponse build() { + return new ListBdsClusterVersionsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, items); + } + } + + /** + * 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(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBdsClusterVersionsResponse)) { + return false; + } + + ListBdsClusterVersionsResponse other = (ListBdsClusterVersionsResponse) 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.items, other.items); + } + + @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.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListIdentityConfigurationsResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListIdentityConfigurationsResponse.java new file mode 100644 index 00000000000..49294365a3d --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListIdentityConfigurationsResponse.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListIdentityConfigurationsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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 list of {@code com.oracle.bmc.bds.model.IdentityConfigurationSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.bds.model.IdentityConfigurationSummary} instances. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "items" + }) + private ListIdentityConfigurationsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + java.util.List items) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.items = items; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListIdentityConfigurationsResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this 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 list of {@code com.oracle.bmc.bds.model.IdentityConfigurationSummary} instances. */ + private java.util.List items; + + /** + * A list of {@code com.oracle.bmc.bds.model.IdentityConfigurationSummary} instances. + * + * @param items the value to set + * @return this builder + */ + public Builder items( + java.util.List items) { + this.items = items; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListIdentityConfigurationsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListIdentityConfigurationsResponse build() { + return new ListIdentityConfigurationsResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, items); + } + } + + /** + * 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(",items=").append(String.valueOf(items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListIdentityConfigurationsResponse)) { + return false; + } + + ListIdentityConfigurationsResponse other = (ListIdentityConfigurationsResponse) 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.items, other.items); + } + + @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.items == null ? 43 : this.items.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/RefreshConfidentialApplicationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/RefreshConfidentialApplicationResponse.java new file mode 100644 index 00000000000..73a42bd536f --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/RefreshConfidentialApplicationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class RefreshConfidentialApplicationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private RefreshConfidentialApplicationResponse( + 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< + RefreshConfidentialApplicationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RefreshConfidentialApplicationResponse 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 RefreshConfidentialApplicationResponse build() { + return new RefreshConfidentialApplicationResponse( + __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 RefreshConfidentialApplicationResponse)) { + return false; + } + + RefreshConfidentialApplicationResponse other = (RefreshConfidentialApplicationResponse) 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-bds/src/main/java/com/oracle/bmc/bds/responses/RefreshUpstTokenExchangeKeytabResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/RefreshUpstTokenExchangeKeytabResponse.java new file mode 100644 index 00000000000..6954fdcc0e5 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/RefreshUpstTokenExchangeKeytabResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class RefreshUpstTokenExchangeKeytabResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private RefreshUpstTokenExchangeKeytabResponse( + 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< + RefreshUpstTokenExchangeKeytabResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RefreshUpstTokenExchangeKeytabResponse 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 RefreshUpstTokenExchangeKeytabResponse build() { + return new RefreshUpstTokenExchangeKeytabResponse( + __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 RefreshUpstTokenExchangeKeytabResponse)) { + return false; + } + + RefreshUpstTokenExchangeKeytabResponse other = (RefreshUpstTokenExchangeKeytabResponse) 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-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateIdentityConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateIdentityConfigurationResponse.java new file mode 100644 index 00000000000..85b209f56fe --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateIdentityConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateIdentityConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private UpdateIdentityConfigurationResponse( + 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< + UpdateIdentityConfigurationResponse> { + 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 + * request, provide this request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateIdentityConfigurationResponse 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 UpdateIdentityConfigurationResponse build() { + return new UpdateIdentityConfigurationResponse( + __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 UpdateIdentityConfigurationResponse)) { + return false; + } + + UpdateIdentityConfigurationResponse other = (UpdateIdentityConfigurationResponse) 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-bds/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-bds/reflect-config.json b/bmc-bds/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-bds/reflect-config.json index ffdbb50ec4c..4a16efda354 100644 --- a/bmc-bds/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-bds/reflect-config.json +++ b/bmc-bds/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-bds/reflect-config.json @@ -19,6 +19,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.ActivateIamUserSyncConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.ActivateIamUserSyncConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.ActivateUpstConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.ActivateUpstConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.AddAutoScalePolicyDetails", @@ -387,6 +415,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsClusterVersionSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsClusterVersionSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.BdsInstance", @@ -625,6 +667,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.CreateIdentityConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.CreateIdentityConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.CreateNodeBackupConfigurationDetails", @@ -709,6 +765,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.DeactivateIamUserSyncConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.DeactivateIamUserSyncConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.DeactivateUpstConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.DeactivateUpstConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.DefaultError", @@ -876,6 +960,74 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.IamUserSyncConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.IamUserSyncConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.IamUserSyncConfiguration$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.IamUserSyncConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.IamUserSyncConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.IdentityConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.IdentityConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.IdentityConfiguration$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.IdentityConfigurationSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.IdentityConfigurationSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.InstallOsPatchDetails", @@ -1223,6 +1375,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeTypeShapeConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.NodeTypeShapeConfig$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.OdhPatchingConfig", @@ -1355,6 +1521,34 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.RefreshConfidentialApplicationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.RefreshConfidentialApplicationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.RefreshUpstTokenExchangeKeytabDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.RefreshUpstTokenExchangeKeytabDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.RemoveAutoScalingConfigurationDetails", @@ -1589,6 +1783,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.StartClusterShapeConfigs", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.StartClusterShapeConfigs$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.StopBdsInstanceDetails", @@ -1708,6 +1916,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpdateIdentityConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpdateIdentityConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.UpdateMetricBasedHorizontalScalingPolicyDetails", @@ -1806,6 +2028,40 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpstConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpstConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpstConfiguration$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpstConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpstConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.VerticalScalingScheduleDetails", diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 3882e69fe18..d91f3a8498e 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/BlockchainPlatform.java b/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/BlockchainPlatform.java index 2350059c118..29eb9558116 100644 --- a/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/BlockchainPlatform.java +++ b/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/BlockchainPlatform.java @@ -258,14 +258,16 @@ public Builder platformRole(PlatformRole platformRole) { } /** * Compute shape - STANDARD or ENTERPRISE_SMALL or ENTERPRISE_MEDIUM or ENTERPRISE_LARGE or - * ENTERPRISE_EXTRA_LARGE or ENTERPRISE_CUSTOM + * ENTERPRISE_EXTRA_LARGE or ENTERPRISE_CUSTOM or DIGITAL_ASSETS_MEDIUM or + * DIGITAL_ASSETS_LARGE or DIGITAL_ASSETS_EXTRA_LARGE */ @com.fasterxml.jackson.annotation.JsonProperty("computeShape") private ComputeShape computeShape; /** * Compute shape - STANDARD or ENTERPRISE_SMALL or ENTERPRISE_MEDIUM or ENTERPRISE_LARGE or - * ENTERPRISE_EXTRA_LARGE or ENTERPRISE_CUSTOM + * ENTERPRISE_EXTRA_LARGE or ENTERPRISE_CUSTOM or DIGITAL_ASSETS_MEDIUM or + * DIGITAL_ASSETS_LARGE or DIGITAL_ASSETS_EXTRA_LARGE * * @param computeShape the value to set * @return this builder @@ -793,7 +795,8 @@ public PlatformRole getPlatformRole() { /** * Compute shape - STANDARD or ENTERPRISE_SMALL or ENTERPRISE_MEDIUM or ENTERPRISE_LARGE or - * ENTERPRISE_EXTRA_LARGE or ENTERPRISE_CUSTOM + * ENTERPRISE_EXTRA_LARGE or ENTERPRISE_CUSTOM or DIGITAL_ASSETS_MEDIUM or DIGITAL_ASSETS_LARGE + * or DIGITAL_ASSETS_EXTRA_LARGE */ public enum ComputeShape implements com.oracle.bmc.http.internal.BmcEnum { Standard("STANDARD"), @@ -802,6 +805,9 @@ public enum ComputeShape implements com.oracle.bmc.http.internal.BmcEnum { EnterpriseLarge("ENTERPRISE_LARGE"), EnterpriseExtraLarge("ENTERPRISE_EXTRA_LARGE"), EnterpriseCustom("ENTERPRISE_CUSTOM"), + DigitalAssetsMedium("DIGITAL_ASSETS_MEDIUM"), + DigitalAssetsLarge("DIGITAL_ASSETS_LARGE"), + DigitalAssetsExtraLarge("DIGITAL_ASSETS_EXTRA_LARGE"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -846,14 +852,16 @@ public static ComputeShape create(String key) { }; /** * Compute shape - STANDARD or ENTERPRISE_SMALL or ENTERPRISE_MEDIUM or ENTERPRISE_LARGE or - * ENTERPRISE_EXTRA_LARGE or ENTERPRISE_CUSTOM + * ENTERPRISE_EXTRA_LARGE or ENTERPRISE_CUSTOM or DIGITAL_ASSETS_MEDIUM or DIGITAL_ASSETS_LARGE + * or DIGITAL_ASSETS_EXTRA_LARGE */ @com.fasterxml.jackson.annotation.JsonProperty("computeShape") private final ComputeShape computeShape; /** * Compute shape - STANDARD or ENTERPRISE_SMALL or ENTERPRISE_MEDIUM or ENTERPRISE_LARGE or - * ENTERPRISE_EXTRA_LARGE or ENTERPRISE_CUSTOM + * ENTERPRISE_EXTRA_LARGE or ENTERPRISE_CUSTOM or DIGITAL_ASSETS_MEDIUM or DIGITAL_ASSETS_LARGE + * or DIGITAL_ASSETS_EXTRA_LARGE * * @return the value */ diff --git a/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/WorkRequest.java b/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/WorkRequest.java index e4481323ffa..eebf3ff2fc3 100644 --- a/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/WorkRequest.java +++ b/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/WorkRequest.java @@ -288,6 +288,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { StopPlatform("STOP_PLATFORM"), CustomizePlatform("CUSTOMIZE_PLATFORM"), ScaleStorage("SCALE_STORAGE"), + WorkrequestCleanup("WORKREQUEST_CLEANUP"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/WorkRequestSummary.java b/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/WorkRequestSummary.java index a3846bb34c3..38d11822817 100644 --- a/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/WorkRequestSummary.java +++ b/bmc-blockchain/src/main/java/com/oracle/bmc/blockchain/model/WorkRequestSummary.java @@ -290,6 +290,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { StopPlatform("STOP_PLATFORM"), CustomizePlatform("CUSTOMIZE_PLATFORM"), ScaleStorage("SCALE_STORAGE"), + WorkrequestCleanup("WORKREQUEST_CLEANUP"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 10bcfec7287..68b7e5af82e 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.55.0 + 3.55.1 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,974 +38,974 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-audit - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-core - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-database - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-dns - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-email - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-identity - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-waas - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-ons - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-budget - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-limits - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-functions - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-events - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-dts - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-oce - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-oda - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-integration - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-vault - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-bds - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-cims - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-logging - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-sch - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-rover - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-jms - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-devops - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-waf - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-usage - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-adm - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-waa - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-opa - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-queue - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-redis - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-psql - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-globallydistributeddatabase - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.55.0 + 3.55.1 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.55.0 + 3.55.1 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 95c911a32ba..c2d05b4681f 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index e2172b73aaf..f52ea4360e1 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 67e99c50f16..931b5a2d371 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index af917ecb108..3a887802627 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 9bf010160a6..efd98226d82 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index d63e018a59c..5cf93370dec 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 1354dafec4e..26d2e4b9f7a 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvc.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvc.java index e9002b0debf..76f9c8e9314 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvc.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvc.java @@ -415,6 +415,21 @@ ChangeEnvironmentCompartmentResponse changeEnvironmentCompartment( */ UpdateEnvironmentResponse updateEnvironment(UpdateEnvironmentRequest request); + /** + * Updates the plugin. + * + * @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 UpdatePlugin API. + */ + UpdatePluginResponse updatePlugin(UpdatePluginRequest request); + /** * Gets the pre-configured waiters available for resources for this service. * diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcAsync.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcAsync.java index 7b5e7c0d0bd..d1566ca5702 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcAsync.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcAsync.java @@ -404,4 +404,19 @@ java.util.concurrent.Future updateEnvironment( com.oracle.bmc.responses.AsyncHandler< UpdateEnvironmentRequest, UpdateEnvironmentResponse> handler); + + /** + * Updates the plugin. + * + * @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 updatePlugin( + UpdatePluginRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcAsyncClient.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcAsyncClient.java index b0aba7bb489..eef2cfef8e9 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcAsyncClient.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcAsyncClient.java @@ -853,6 +853,41 @@ public java.util.concurrent.Future updateEnvironment( .callAsync(handler); } + @Override + public java.util.concurrent.Future updatePlugin( + UpdatePluginRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getAgentId(), "agentId must not be blank"); + + Validate.notBlank(request.getPluginName(), "pluginName must not be blank"); + Objects.requireNonNull(request.getUpdatePluginDetails(), "updatePluginDetails is required"); + + return clientCall(request, UpdatePluginResponse::builder) + .logger(LOG, "updatePlugin") + .serviceDetails( + "OcbAgentSvc", + "UpdatePlugin", + "https://docs.oracle.com/iaas/api/#/en/OCB/20220509/Plugin/UpdatePlugin") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdatePluginRequest::builder) + .basePath("/20220509") + .appendPathParam("agents") + .appendPathParam(request.getAgentId()) + .appendPathParam("plugins") + .appendPathParam(request.getPluginName()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", UpdatePluginResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", UpdatePluginResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + /** * Create a new client instance. * diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcClient.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcClient.java index fdfbf5bf54d..2cbdf0d8b68 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcClient.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/OcbAgentSvcClient.java @@ -825,6 +825,39 @@ public UpdateEnvironmentResponse updateEnvironment(UpdateEnvironmentRequest requ .callSync(); } + @Override + public UpdatePluginResponse updatePlugin(UpdatePluginRequest request) { + + Validate.notBlank(request.getAgentId(), "agentId must not be blank"); + + Validate.notBlank(request.getPluginName(), "pluginName must not be blank"); + Objects.requireNonNull(request.getUpdatePluginDetails(), "updatePluginDetails is required"); + + return clientCall(request, UpdatePluginResponse::builder) + .logger(LOG, "updatePlugin") + .serviceDetails( + "OcbAgentSvc", + "UpdatePlugin", + "https://docs.oracle.com/iaas/api/#/en/OCB/20220509/Plugin/UpdatePlugin") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdatePluginRequest::builder) + .basePath("/20220509") + .appendPathParam("agents") + .appendPathParam(request.getAgentId()) + .appendPathParam("plugins") + .appendPathParam(request.getPluginName()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", UpdatePluginResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", UpdatePluginResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public OcbAgentSvcWaiters getWaiters() { return waiters; diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceCredentials.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceCredentials.java index a61558c793d..8c652badce1 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceCredentials.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AssetSourceCredentials.java @@ -51,8 +51,8 @@ public Builder type(AssetSourceCredentialsType type) { * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * secret in a vault. If the type of the credentials is {@code BASIC}, the secret must * contain the username and password in JSON format, which is in the form of {@code { - * "username": "", "password": "" }}. If the type of the credentials is - * {@code API_KEY}, the secret must contain the accessKeyId and secretAccessKey in JSON + * "username": "", "password": "example-password" }}. If the type of the credentials + * is {@code API_KEY}, the secret must contain the accessKeyId and secretAccessKey in JSON * format, which is in the form of {@code { "accessKeyId": "", "secretAccessKey": * "" }}. */ @@ -63,8 +63,8 @@ public Builder type(AssetSourceCredentialsType type) { * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * secret in a vault. If the type of the credentials is {@code BASIC}, the secret must * contain the username and password in JSON format, which is in the form of {@code { - * "username": "", "password": "" }}. If the type of the credentials is - * {@code API_KEY}, the secret must contain the accessKeyId and secretAccessKey in JSON + * "username": "", "password": "example-password" }}. If the type of the credentials + * is {@code API_KEY}, the secret must contain the accessKeyId and secretAccessKey in JSON * format, which is in the form of {@code { "accessKeyId": "", "secretAccessKey": * "" }}. * @@ -126,9 +126,10 @@ public AssetSourceCredentialsType getType() { * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * secret in a vault. If the type of the credentials is {@code BASIC}, the secret must contain * the username and password in JSON format, which is in the form of {@code { "username": - * "", "password": "" }}. If the type of the credentials is {@code API_KEY}, the - * secret must contain the accessKeyId and secretAccessKey in JSON format, which is in the form - * of {@code { "accessKeyId": "", "secretAccessKey": "" }}. + * "", "password": "example-password" }}. If the type of the credentials is {@code + * API_KEY}, the secret must contain the accessKeyId and secretAccessKey in JSON format, which + * is in the form of {@code { "accessKeyId": "", "secretAccessKey": + * "" }}. */ @com.fasterxml.jackson.annotation.JsonProperty("secretId") private final String secretId; @@ -137,9 +138,10 @@ public AssetSourceCredentialsType getType() { * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * secret in a vault. If the type of the credentials is {@code BASIC}, the secret must contain * the username and password in JSON format, which is in the form of {@code { "username": - * "", "password": "" }}. If the type of the credentials is {@code API_KEY}, the - * secret must contain the accessKeyId and secretAccessKey in JSON format, which is in the form - * of {@code { "accessKeyId": "", "secretAccessKey": "" }}. + * "", "password": "example-password" }}. If the type of the credentials is {@code + * API_KEY}, the secret must contain the accessKeyId and secretAccessKey in JSON format, which + * is in the form of {@code { "accessKeyId": "", "secretAccessKey": + * "" }}. * * @return the value */ diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEbsAssetDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEbsAssetDetails.java new file mode 100644 index 00000000000..af564a235f1 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEbsAssetDetails.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.model; + +/** + * AWS EBS type of asset.
+ * 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: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AwsEbsAssetDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AwsEbsAssetDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"awsEbs"}) + public AwsEbsAssetDetails(AwsEbsProperties awsEbs) { + super(); + this.awsEbs = awsEbs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("awsEbs") + private AwsEbsProperties awsEbs; + + public Builder awsEbs(AwsEbsProperties awsEbs) { + this.awsEbs = awsEbs; + this.__explicitlySet__.add("awsEbs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AwsEbsAssetDetails build() { + AwsEbsAssetDetails model = new AwsEbsAssetDetails(this.awsEbs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AwsEbsAssetDetails model) { + if (model.wasPropertyExplicitlySet("awsEbs")) { + this.awsEbs(model.getAwsEbs()); + } + 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("awsEbs") + private final AwsEbsProperties awsEbs; + + public AwsEbsProperties getAwsEbs() { + return awsEbs; + } + + @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("AwsEbsAssetDetails("); + sb.append("super=").append(super.toString()); + sb.append("awsEbs=").append(String.valueOf(this.awsEbs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AwsEbsAssetDetails)) { + return false; + } + + AwsEbsAssetDetails other = (AwsEbsAssetDetails) o; + return java.util.Objects.equals(this.awsEbs, other.awsEbs) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.awsEbs == null ? 43 : this.awsEbs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEc2AssetDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEc2AssetDetails.java new file mode 100644 index 00000000000..3ca2cfd2f2b --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/AwsEc2AssetDetails.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.cloudbridge.model; + +/** + * AWS EC2 type of asset.
+ * 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: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AwsEc2AssetDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AwsEc2AssetDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compute", + "vm", + "awsEc2", + "awsEc2Cost", + "attachedEbsVolumesCost" + }) + public AwsEc2AssetDetails( + ComputeProperties compute, + VmProperties vm, + AwsEc2Properties awsEc2, + MonthlyCostSummary awsEc2Cost, + MonthlyCostSummary attachedEbsVolumesCost) { + super(); + this.compute = compute; + this.vm = vm; + this.awsEc2 = awsEc2; + this.awsEc2Cost = awsEc2Cost; + this.attachedEbsVolumesCost = attachedEbsVolumesCost; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("compute") + private ComputeProperties compute; + + public Builder compute(ComputeProperties compute) { + this.compute = compute; + this.__explicitlySet__.add("compute"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vm") + private VmProperties vm; + + public Builder vm(VmProperties vm) { + this.vm = vm; + this.__explicitlySet__.add("vm"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("awsEc2") + private AwsEc2Properties awsEc2; + + public Builder awsEc2(AwsEc2Properties awsEc2) { + this.awsEc2 = awsEc2; + this.__explicitlySet__.add("awsEc2"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("awsEc2Cost") + private MonthlyCostSummary awsEc2Cost; + + public Builder awsEc2Cost(MonthlyCostSummary awsEc2Cost) { + this.awsEc2Cost = awsEc2Cost; + this.__explicitlySet__.add("awsEc2Cost"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("attachedEbsVolumesCost") + private MonthlyCostSummary attachedEbsVolumesCost; + + public Builder attachedEbsVolumesCost(MonthlyCostSummary attachedEbsVolumesCost) { + this.attachedEbsVolumesCost = attachedEbsVolumesCost; + this.__explicitlySet__.add("attachedEbsVolumesCost"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AwsEc2AssetDetails build() { + AwsEc2AssetDetails model = + new AwsEc2AssetDetails( + this.compute, + this.vm, + this.awsEc2, + this.awsEc2Cost, + this.attachedEbsVolumesCost); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AwsEc2AssetDetails model) { + if (model.wasPropertyExplicitlySet("compute")) { + this.compute(model.getCompute()); + } + if (model.wasPropertyExplicitlySet("vm")) { + this.vm(model.getVm()); + } + if (model.wasPropertyExplicitlySet("awsEc2")) { + this.awsEc2(model.getAwsEc2()); + } + if (model.wasPropertyExplicitlySet("awsEc2Cost")) { + this.awsEc2Cost(model.getAwsEc2Cost()); + } + if (model.wasPropertyExplicitlySet("attachedEbsVolumesCost")) { + this.attachedEbsVolumesCost(model.getAttachedEbsVolumesCost()); + } + 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("compute") + private final ComputeProperties compute; + + public ComputeProperties getCompute() { + return compute; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vm") + private final VmProperties vm; + + public VmProperties getVm() { + return vm; + } + + @com.fasterxml.jackson.annotation.JsonProperty("awsEc2") + private final AwsEc2Properties awsEc2; + + public AwsEc2Properties getAwsEc2() { + return awsEc2; + } + + @com.fasterxml.jackson.annotation.JsonProperty("awsEc2Cost") + private final MonthlyCostSummary awsEc2Cost; + + public MonthlyCostSummary getAwsEc2Cost() { + return awsEc2Cost; + } + + @com.fasterxml.jackson.annotation.JsonProperty("attachedEbsVolumesCost") + private final MonthlyCostSummary attachedEbsVolumesCost; + + public MonthlyCostSummary getAttachedEbsVolumesCost() { + return attachedEbsVolumesCost; + } + + @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("AwsEc2AssetDetails("); + sb.append("super=").append(super.toString()); + sb.append("compute=").append(String.valueOf(this.compute)); + sb.append(", vm=").append(String.valueOf(this.vm)); + sb.append(", awsEc2=").append(String.valueOf(this.awsEc2)); + sb.append(", awsEc2Cost=").append(String.valueOf(this.awsEc2Cost)); + sb.append(", attachedEbsVolumesCost=").append(String.valueOf(this.attachedEbsVolumesCost)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AwsEc2AssetDetails)) { + return false; + } + + AwsEc2AssetDetails other = (AwsEc2AssetDetails) o; + return java.util.Objects.equals(this.compute, other.compute) + && java.util.Objects.equals(this.vm, other.vm) + && java.util.Objects.equals(this.awsEc2, other.awsEc2) + && java.util.Objects.equals(this.awsEc2Cost, other.awsEc2Cost) + && java.util.Objects.equals( + this.attachedEbsVolumesCost, other.attachedEbsVolumesCost) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.compute == null ? 43 : this.compute.hashCode()); + result = (result * PRIME) + (this.vm == null ? 43 : this.vm.hashCode()); + result = (result * PRIME) + (this.awsEc2 == null ? 43 : this.awsEc2.hashCode()); + result = (result * PRIME) + (this.awsEc2Cost == null ? 43 : this.awsEc2Cost.hashCode()); + result = + (result * PRIME) + + (this.attachedEbsVolumesCost == null + ? 43 + : this.attachedEbsVolumesCost.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Disk.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Disk.java index bb688918832..a5d0a496132 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Disk.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/Disk.java @@ -28,7 +28,8 @@ public final class Disk extends com.oracle.bmc.http.client.internal.ExplicitlySe "uuidLun", "sizeInMBs", "location", - "persistentMode" + "persistentMode", + "isCbtEnabled" }) public Disk( String name, @@ -37,7 +38,8 @@ public Disk( String uuidLun, Long sizeInMBs, String location, - String persistentMode) { + String persistentMode, + Boolean isCbtEnabled) { super(); this.name = name; this.bootOrder = bootOrder; @@ -46,6 +48,7 @@ public Disk( this.sizeInMBs = sizeInMBs; this.location = location; this.persistentMode = persistentMode; + this.isCbtEnabled = isCbtEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -155,6 +158,21 @@ public Builder persistentMode(String persistentMode) { this.__explicitlySet__.add("persistentMode"); return this; } + /** Indicates that CBT (change disk tracking) is enabled for this virtual disk. */ + @com.fasterxml.jackson.annotation.JsonProperty("isCbtEnabled") + private Boolean isCbtEnabled; + + /** + * Indicates that CBT (change disk tracking) is enabled for this virtual disk. + * + * @param isCbtEnabled the value to set + * @return this builder + */ + public Builder isCbtEnabled(Boolean isCbtEnabled) { + this.isCbtEnabled = isCbtEnabled; + this.__explicitlySet__.add("isCbtEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -168,7 +186,8 @@ public Disk build() { this.uuidLun, this.sizeInMBs, this.location, - this.persistentMode); + this.persistentMode, + this.isCbtEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -198,6 +217,9 @@ public Builder copy(Disk model) { if (model.wasPropertyExplicitlySet("persistentMode")) { this.persistentMode(model.getPersistentMode()); } + if (model.wasPropertyExplicitlySet("isCbtEnabled")) { + this.isCbtEnabled(model.getIsCbtEnabled()); + } return this; } } @@ -302,6 +324,19 @@ public String getPersistentMode() { return persistentMode; } + /** Indicates that CBT (change disk tracking) is enabled for this virtual disk. */ + @com.fasterxml.jackson.annotation.JsonProperty("isCbtEnabled") + private final Boolean isCbtEnabled; + + /** + * Indicates that CBT (change disk tracking) is enabled for this virtual disk. + * + * @return the value + */ + public Boolean getIsCbtEnabled() { + return isCbtEnabled; + } + @Override public String toString() { return this.toString(true); @@ -324,6 +359,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sizeInMBs=").append(String.valueOf(this.sizeInMBs)); sb.append(", location=").append(String.valueOf(this.location)); sb.append(", persistentMode=").append(String.valueOf(this.persistentMode)); + sb.append(", isCbtEnabled=").append(String.valueOf(this.isCbtEnabled)); sb.append(")"); return sb.toString(); } @@ -345,6 +381,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sizeInMBs, other.sizeInMBs) && java.util.Objects.equals(this.location, other.location) && java.util.Objects.equals(this.persistentMode, other.persistentMode) + && java.util.Objects.equals(this.isCbtEnabled, other.isCbtEnabled) && super.equals(other); } @@ -361,6 +398,7 @@ public int hashCode() { result = (result * PRIME) + (this.persistentMode == null ? 43 : this.persistentMode.hashCode()); + result = (result * PRIME) + (this.isCbtEnabled == null ? 43 : this.isCbtEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/MonthlyCostSummary.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/MonthlyCostSummary.java index d4f0ca50311..6c654f8fe8d 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/MonthlyCostSummary.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/MonthlyCostSummary.java @@ -47,12 +47,12 @@ public Builder amount(Double amount) { this.__explicitlySet__.add("amount"); return this; } - /** Currency code as defined by ISO-4217. */ + /** Currency code */ @com.fasterxml.jackson.annotation.JsonProperty("currencyCode") private String currencyCode; /** - * Currency code as defined by ISO-4217. + * Currency code * * @param currencyCode the value to set * @return this builder @@ -108,12 +108,12 @@ public Double getAmount() { return amount; } - /** Currency code as defined by ISO-4217. */ + /** Currency code */ @com.fasterxml.jackson.annotation.JsonProperty("currencyCode") private final String currencyCode; /** - * Currency code as defined by ISO-4217. + * Currency code * * @return the value */ diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OperationType.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OperationType.java index bc78b3c0186..c8fcd245533 100644 --- a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OperationType.java +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/OperationType.java @@ -26,6 +26,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { RefreshAssetSource("REFRESH_ASSET_SOURCE"), CreateAssetSource("CREATE_ASSET_SOURCE"), UpdateAssetSource("UPDATE_ASSET_SOURCE"), + UpdatePluginState("UPDATE_PLUGIN_STATE"), CloudAwsDiscovery("CLOUD_AWS_DISCOVERY"), CollectAwsRealtimeMetrics("COLLECT_AWS_REALTIME_METRICS"), CollectAwsHistoricalMetrics("COLLECT_AWS_HISTORICAL_METRICS"), diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdatePluginDetails.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdatePluginDetails.java new file mode 100644 index 00000000000..60ed530b8ce --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/model/UpdatePluginDetails.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.cloudbridge.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: 20220509") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdatePluginDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdatePluginDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"desiredState"}) + public UpdatePluginDetails(Plugin.DesiredState desiredState) { + super(); + this.desiredState = desiredState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** State to which the customer wants the plugin to move to. */ + @com.fasterxml.jackson.annotation.JsonProperty("desiredState") + private Plugin.DesiredState desiredState; + + /** + * State to which the customer wants the plugin to move to. + * + * @param desiredState the value to set + * @return this builder + */ + public Builder desiredState(Plugin.DesiredState desiredState) { + this.desiredState = desiredState; + this.__explicitlySet__.add("desiredState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdatePluginDetails build() { + UpdatePluginDetails model = new UpdatePluginDetails(this.desiredState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdatePluginDetails model) { + if (model.wasPropertyExplicitlySet("desiredState")) { + this.desiredState(model.getDesiredState()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** State to which the customer wants the plugin to move to. */ + @com.fasterxml.jackson.annotation.JsonProperty("desiredState") + private final Plugin.DesiredState desiredState; + + /** + * State to which the customer wants the plugin to move to. + * + * @return the value + */ + public Plugin.DesiredState getDesiredState() { + return desiredState; + } + + @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("UpdatePluginDetails("); + sb.append("super=").append(super.toString()); + sb.append("desiredState=").append(String.valueOf(this.desiredState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePluginDetails)) { + return false; + } + + UpdatePluginDetails other = (UpdatePluginDetails) o; + return java.util.Objects.equals(this.desiredState, other.desiredState) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.desiredState == null ? 43 : this.desiredState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/requests/UpdatePluginRequest.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/requests/UpdatePluginRequest.java new file mode 100644 index 00000000000..563e1277894 --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/requests/UpdatePluginRequest.java @@ -0,0 +1,322 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.cloudbridge.requests; + +import com.oracle.bmc.cloudbridge.model.*; +/** + * Example: Click here to see how to use UpdatePluginRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +public class UpdatePluginRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.cloudbridge.model.UpdatePluginDetails> { + + /** Unique Agent identifier path parameter. */ + private String agentId; + + /** Unique Agent identifier path parameter. */ + public String getAgentId() { + return agentId; + } + /** Unique plugin identifier path parameter. */ + private String pluginName; + + /** Unique plugin identifier path parameter. */ + public String getPluginName() { + return pluginName; + } + /** The information to be updated. */ + private com.oracle.bmc.cloudbridge.model.UpdatePluginDetails updatePluginDetails; + + /** The information to be updated. */ + public com.oracle.bmc.cloudbridge.model.UpdatePluginDetails getUpdatePluginDetails() { + return updatePluginDetails; + } + /** + * 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.cloudbridge.model.UpdatePluginDetails getBody$() { + return updatePluginDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdatePluginRequest, com.oracle.bmc.cloudbridge.model.UpdatePluginDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique Agent identifier path parameter. */ + private String agentId = null; + + /** + * Unique Agent identifier path parameter. + * + * @param agentId the value to set + * @return this builder instance + */ + public Builder agentId(String agentId) { + this.agentId = agentId; + return this; + } + + /** Unique plugin identifier path parameter. */ + private String pluginName = null; + + /** + * Unique plugin identifier path parameter. + * + * @param pluginName the value to set + * @return this builder instance + */ + public Builder pluginName(String pluginName) { + this.pluginName = pluginName; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.cloudbridge.model.UpdatePluginDetails updatePluginDetails = null; + + /** + * The information to be updated. + * + * @param updatePluginDetails the value to set + * @return this builder instance + */ + public Builder updatePluginDetails( + com.oracle.bmc.cloudbridge.model.UpdatePluginDetails updatePluginDetails) { + this.updatePluginDetails = updatePluginDetails; + 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(UpdatePluginRequest o) { + agentId(o.getAgentId()); + pluginName(o.getPluginName()); + updatePluginDetails(o.getUpdatePluginDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdatePluginRequest 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 UpdatePluginRequest + */ + public UpdatePluginRequest build() { + UpdatePluginRequest 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.cloudbridge.model.UpdatePluginDetails body) { + updatePluginDetails(body); + return this; + } + + /** + * Build the instance of UpdatePluginRequest 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 UpdatePluginRequest + */ + public UpdatePluginRequest buildWithoutInvocationCallback() { + UpdatePluginRequest request = new UpdatePluginRequest(); + request.agentId = agentId; + request.pluginName = pluginName; + request.updatePluginDetails = updatePluginDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdatePluginRequest(agentId, pluginName, updatePluginDetails, 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() + .agentId(agentId) + .pluginName(pluginName) + .updatePluginDetails(updatePluginDetails) + .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(",agentId=").append(String.valueOf(this.agentId)); + sb.append(",pluginName=").append(String.valueOf(this.pluginName)); + sb.append(",updatePluginDetails=").append(String.valueOf(this.updatePluginDetails)); + 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 UpdatePluginRequest)) { + return false; + } + + UpdatePluginRequest other = (UpdatePluginRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.agentId, other.agentId) + && java.util.Objects.equals(this.pluginName, other.pluginName) + && java.util.Objects.equals(this.updatePluginDetails, other.updatePluginDetails) + && 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.agentId == null ? 43 : this.agentId.hashCode()); + result = (result * PRIME) + (this.pluginName == null ? 43 : this.pluginName.hashCode()); + result = + (result * PRIME) + + (this.updatePluginDetails == null + ? 43 + : this.updatePluginDetails.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-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/responses/UpdatePluginResponse.java b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/responses/UpdatePluginResponse.java new file mode 100644 index 00000000000..c109bf86bef --- /dev/null +++ b/bmc-cloudbridge/src/main/java/com/oracle/bmc/cloudbridge/responses/UpdatePluginResponse.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.cloudbridge.responses; + +import com.oracle.bmc.cloudbridge.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") +public class UpdatePluginResponse 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; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private UpdatePluginResponse( + 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; + } + + /** + * 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdatePluginResponse 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 UpdatePluginResponse build() { + return new UpdatePluginResponse( + __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 UpdatePluginResponse)) { + return false; + } + + UpdatePluginResponse other = (UpdatePluginResponse) 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-cloudbridge/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-cloudbridge/reflect-config.json b/bmc-cloudbridge/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-cloudbridge/reflect-config.json index 1971328ddd8..32b44073508 100644 --- a/bmc-cloudbridge/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-cloudbridge/reflect-config.json +++ b/bmc-cloudbridge/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-cloudbridge/reflect-config.json @@ -378,6 +378,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.cloudbridge.model.AwsEbsAssetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.cloudbridge.model.AwsEbsAssetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.cloudbridge.model.AwsEbsProperties", @@ -406,6 +420,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.cloudbridge.model.AwsEc2AssetDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.cloudbridge.model.AwsEc2AssetDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.cloudbridge.model.AwsEc2Properties", @@ -1369,6 +1397,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.cloudbridge.model.UpdatePluginDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.cloudbridge.model.UpdatePluginDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.cloudbridge.model.UpdateVmAssetDetails", diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 2b237f65cd1..12da1461cf3 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 00d6bb45429..5e124a1aed8 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 0031510ff9c..144b331a99c 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ 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 7690fe00e1e..0a0af9e7196 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.55.0 + 3.55.1 ../pom.xml @@ -68,7 +68,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.55.0 + 3.55.1 @@ -77,7 +77,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.0 + 3.55.1 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 916c632795c..e4c5b987214 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.55.0 + 3.55.1 ../pom.xml @@ -70,7 +70,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.55.0 + 3.55.1 @@ -79,7 +79,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.0 + 3.55.1 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index 93c11243cf3..f181407b36b 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.55.0 + 3.55.1 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index a10c4910c30..a27679b2888 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.55.0 + 3.55.1 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 0779e27fb9b..bf6eb313c05 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml @@ -62,12 +62,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.0 + 3.55.1 @@ -112,7 +112,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.0 + 3.55.1 test diff --git a/bmc-common/src/main/java/com/oracle/bmc/auth/internal/AuthUtils.java b/bmc-common/src/main/java/com/oracle/bmc/auth/internal/AuthUtils.java index 58c0183c9fd..465beeeb7bc 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/auth/internal/AuthUtils.java +++ b/bmc-common/src/main/java/com/oracle/bmc/auth/internal/AuthUtils.java @@ -246,7 +246,7 @@ public static String getTenantIdFromCertificate(X509Certificate certificate) { final String name = principal.getName(); Optional tenancyId = getValue(name, "OU", "opc-tenant"); // IP if (!tenancyId.isPresent()) { - tenancyId = getValue(name, "OU", "opc-identity"); // SP + tenancyId = getValue(name, "O", "opc-identity"); // SP } if (tenancyId.isPresent()) { return tenancyId.get(); diff --git a/bmc-common/src/test/java/com/oracle/bmc/auth/internal/AuthUtilsTest.java b/bmc-common/src/test/java/com/oracle/bmc/auth/internal/AuthUtilsTest.java index bddd25f08bf..473d6916f09 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/auth/internal/AuthUtilsTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/auth/internal/AuthUtilsTest.java @@ -128,6 +128,21 @@ public void testGetTenantIdFromCertificate() throws FileNotFoundException { assertEquals(expected, tenantId); } + @Test + public void testGetTenantIdFromR1SPCertificate() throws FileNotFoundException { + final String certificate = + StreamUtils.toString( + new FileInputStream("src/test/resources/r1_sp_cert.pem"), + StandardCharsets.UTF_8); + final String expected = + "ocid1.tenancy.region1..aaaaaaaay3tnpvhk7bgpgaltjdre5xwoecds53nj46kiy25leg4i2wdr4n6a"; + + final X509Certificate x509Certificate = + (X509Certificate) Pem.decoder().decodeCertificate(certificate); + final String tenantId = AuthUtils.getTenantIdFromCertificate(x509Certificate); + assertEquals(expected, tenantId); + } + @Test public void testToByteArrayFromRSAPrivateKey() throws Exception { final String privateKeyText = diff --git a/bmc-common/src/test/resources/r1_sp_cert.pem b/bmc-common/src/test/resources/r1_sp_cert.pem new file mode 100644 index 00000000000..7903b05f504 --- /dev/null +++ b/bmc-common/src/test/resources/r1_sp_cert.pem @@ -0,0 +1,35 @@ +-----BEGIN CERTIFICATE----- +MIIGGDCCBACgAwIBAgIRAKRDIGm8KpCuGWupfrRwt2cwDQYJKoZIhvcNAQELBQAw +gZoxczBxBgNVBAsTam9wYy1kZXZpY2U6ODc6ODA6NGQ6OWM6ZDg6MzY6MWI6MWM6 +N2I6NzY6MjU6Yzg6ZDI6MDY6Y2U6NDg6NDQ6MGM6YWI6OGY6ODk6NDA6ZTc6MTk6 +MmQ6NDE6ZmM6ZmU6YjA6Y2U6YmQ6YzExIzAhBgNVBAMTGlBLSVNWQyBJbnRlcm1l +ZGlhdGUgcjEgYWQyMB4XDTI0MTEyMjA3MTQyOVoXDTI1MDUyMTA3MTUyOVowgaQx +aTBnBgNVBAoTYG9wYy1pZGVudGl0eTpvY2lkMS50ZW5hbmN5LnJlZ2lvbjEuLmFh +YWFhYWFheTN0bnB2aGs3YmdwZ2FsdGpkcmU1eHdvZWNkczUzbmo0NmtpeTI1bGVn +NGkyd2RyNG42YTEdMBsGA1UECxMUb3BjLWNlcnR0eXBlOnNlcnZpY2UxGDAWBgNV +BAMTD0ROU0NvbnRyb2xQbGFuZTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC +ggIBAM2JiOJw+yvi3VSt81UVUHFSvD+ZT/TIDiwDiQ4lnESSlIcJM5OrryIz5/ee +3XnhMgN4H111Ha21bWj5Rc1Qa8n30uZRQgluAzh855Ese6+1EsD3QL/NXMGirXbL +Heof3PIz8Xbc5feZjbi18i4dUMMVJO5Lr1hzu0EkpnHTDIbKosRRJaV/E72iaC+M +7oIh5OYIeqOdh3w3gyUDSorFDUlGgBXJmrDpYTIbH3zmKuUa9GZDMX9dehlZ/Sxi +WXPSo/1p4GZSNF90MdruWBEUBBUxnyuLJ9hLI+2t1GUBRHOB1wcd9OLKiWC9n9HH +PxIlwkFWhTNvQmN/xQP35FBqL/lX99OuLNU11sHGptgb/JOR2pFRHMgSC+K8hnJn +T+usFR/9btPpg5RKJiyFxAmhRVW6ASLxxLBiUIQ1WMuVIPzYnXt9yXZjW2naarbs +3lMnr8JOFG0aFb09Mv247YDUMtLoardfVENySULHS6RmRKLqY1I1wcziMC+9P0t2 +6mhvZqtyebEV6+UzhLDx81Gxl5BW8e2C+PrXid+/fJUIraAZfHcQw9xZv8Bd3Qub +8fozroPT4Y1axxfjWlH0ufFzSM4nutVQTbAz/U03mF3439C6VQdiMX6e2k87yeiG +kXgzRftErmIV8c3MtPPOA73YuGEMjqJzddEHSu04M+5rvGtNAgMBAAGjTTBLMA4G +A1UdDwEB/wQEAwIHgDAfBgNVHSMEGDAWgBQlEwWewysJr3rUYC+mDMWzEIMwSTAY +BgkrBgEEAW9iCgEECzAJgQdzZXJ2aWNlMA0GCSqGSIb3DQEBCwUAA4ICAQBXymyn +RDwkdAZf3N5kcDCz3a3u8wIeahIFWAizBxmGRvyM5dcIlWqCuSUfFafSBg3VmTlr +pXKJtNafPVLkVPwPfmHXGCRYZQA6bTAw5uBMG1TaitY8eO6KRCKqld4Rrw55/l1c +xqeKKugvaDpgM0IVqf+O6JKnL2/hivw0UoOgYZEuHXwqTC1NihnkL9jcAvz8g3xg +yKPFgNEKGD/aY14d9nBn4VRb+c3v/2ZcWwXi3XTJcMZYvJyGr+vC81qC657pmI66 +soTUPQ7Xr8L7NPc1jlStk6dlqd7+wmPNda7MeGN4YeAcm+TFKYFI3Gd34EGBZk6s +S8gS+rWB7DKoNXWC3AYnrBGDgtBKepIbl79zfAoPlwTEPPTFF6ogu+sAi7oYZPDf +WIeKgQLJ0PU0vhFv0drhhVmORIhFtCPQVdxRd9r8vNowrR7KaM2LgpoNi25sZqut +tETA85Q0g/gMljYjLlU8r7Ubev96eV6sERt5QEXP3TfHqIEpLvhZX382BbS5F7st +ftDfW0Ker6hTYp3OyaSJganeNr6ott1SYiyE4qo+UGJl5uc5SPdHs4KkEOtRGPOs +7j6FGJs+ug+8WJu0l1XGodiHvsUSSB2qmHg9Z2vSKPhwX4dC3LcinYMFZd59fg2f +foiSQornZiYRxJbYAqPZs0AUgCp4OpYLWG3HNw== +-----END CERTIFICATE----- \ No newline at end of file diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 819dbf89023..45d22816b72 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 712889e8040..dc1d2702cc8 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 1a8a79e7ae1..c69607cb709 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index 20b879e3ded..ef8b7b6a8c9 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index dcd6e3f30aa..008fc67703e 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.55.0 + 3.55.1 diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index 3fb603cd312..27c331f0134 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index a7626d4841f..2d16137c40b 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.55.0 + 3.55.1 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java index 77dbf8f5453..a174364d556 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java @@ -63,6 +63,7 @@ public final class AutonomousDatabase "infrastructureType", "isDedicated", "autonomousContainerDatabaseId", + "isBackupRetentionLocked", "timeUndeleted", "timeCreated", "displayName", @@ -188,6 +189,7 @@ public AutonomousDatabase( InfrastructureType infrastructureType, Boolean isDedicated, String autonomousContainerDatabaseId, + Boolean isBackupRetentionLocked, java.util.Date timeUndeleted, java.util.Date timeCreated, String displayName, @@ -312,6 +314,7 @@ public AutonomousDatabase( this.infrastructureType = infrastructureType; this.isDedicated = isDedicated; this.autonomousContainerDatabaseId = autonomousContainerDatabaseId; + this.isBackupRetentionLocked = isBackupRetentionLocked; this.timeUndeleted = timeUndeleted; this.timeCreated = timeCreated; this.displayName = displayName; @@ -1209,6 +1212,21 @@ public Builder autonomousContainerDatabaseId(String autonomousContainerDatabaseI this.__explicitlySet__.add("autonomousContainerDatabaseId"); return this; } + /** Indicates if the Autonomous Database is backup retention locked. */ + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + /** + * Indicates if the Autonomous Database is backup retention locked. + * + * @param isBackupRetentionLocked the value to set + * @return this builder + */ + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } /** The date and time the Autonomous Database was most recently undeleted. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUndeleted") private java.util.Date timeUndeleted; @@ -3100,6 +3118,7 @@ public AutonomousDatabase build() { this.infrastructureType, this.isDedicated, this.autonomousContainerDatabaseId, + this.isBackupRetentionLocked, this.timeUndeleted, this.timeCreated, this.displayName, @@ -3312,6 +3331,9 @@ public Builder copy(AutonomousDatabase model) { if (model.wasPropertyExplicitlySet("autonomousContainerDatabaseId")) { this.autonomousContainerDatabaseId(model.getAutonomousContainerDatabaseId()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("timeUndeleted")) { this.timeUndeleted(model.getTimeUndeleted()); } @@ -4456,6 +4478,19 @@ public String getAutonomousContainerDatabaseId() { return autonomousContainerDatabaseId; } + /** Indicates if the Autonomous Database is backup retention locked. */ + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private final Boolean isBackupRetentionLocked; + + /** + * Indicates if the Autonomous Database is backup retention locked. + * + * @return the value + */ + public Boolean getIsBackupRetentionLocked() { + return isBackupRetentionLocked; + } + /** The date and time the Autonomous Database was most recently undeleted. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUndeleted") private final java.util.Date timeUndeleted; @@ -6934,6 +6969,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isDedicated=").append(String.valueOf(this.isDedicated)); sb.append(", autonomousContainerDatabaseId=") .append(String.valueOf(this.autonomousContainerDatabaseId)); + sb.append(", isBackupRetentionLocked=") + .append(String.valueOf(this.isBackupRetentionLocked)); sb.append(", timeUndeleted=").append(String.valueOf(this.timeUndeleted)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", displayName=").append(String.valueOf(this.displayName)); @@ -7113,6 +7150,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isDedicated, other.isDedicated) && java.util.Objects.equals( this.autonomousContainerDatabaseId, other.autonomousContainerDatabaseId) + && java.util.Objects.equals( + this.isBackupRetentionLocked, other.isBackupRetentionLocked) && java.util.Objects.equals(this.timeUndeleted, other.timeUndeleted) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.displayName, other.displayName) @@ -7359,6 +7398,11 @@ public int hashCode() { + (this.autonomousContainerDatabaseId == null ? 43 : this.autonomousContainerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.isBackupRetentionLocked == null + ? 43 + : this.isBackupRetentionLocked.hashCode()); result = (result * PRIME) + (this.timeUndeleted == null ? 43 : this.timeUndeleted.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java index 7388f7b1514..b660764e0fd 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java @@ -66,6 +66,7 @@ public final class AutonomousDatabaseSummary "infrastructureType", "isDedicated", "autonomousContainerDatabaseId", + "isBackupRetentionLocked", "timeUndeleted", "timeCreated", "displayName", @@ -191,6 +192,7 @@ public AutonomousDatabaseSummary( InfrastructureType infrastructureType, Boolean isDedicated, String autonomousContainerDatabaseId, + Boolean isBackupRetentionLocked, java.util.Date timeUndeleted, java.util.Date timeCreated, String displayName, @@ -315,6 +317,7 @@ public AutonomousDatabaseSummary( this.infrastructureType = infrastructureType; this.isDedicated = isDedicated; this.autonomousContainerDatabaseId = autonomousContainerDatabaseId; + this.isBackupRetentionLocked = isBackupRetentionLocked; this.timeUndeleted = timeUndeleted; this.timeCreated = timeCreated; this.displayName = displayName; @@ -1212,6 +1215,21 @@ public Builder autonomousContainerDatabaseId(String autonomousContainerDatabaseI this.__explicitlySet__.add("autonomousContainerDatabaseId"); return this; } + /** Indicates if the Autonomous Database is backup retention locked. */ + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + /** + * Indicates if the Autonomous Database is backup retention locked. + * + * @param isBackupRetentionLocked the value to set + * @return this builder + */ + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } /** The date and time the Autonomous Database was most recently undeleted. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUndeleted") private java.util.Date timeUndeleted; @@ -3103,6 +3121,7 @@ public AutonomousDatabaseSummary build() { this.infrastructureType, this.isDedicated, this.autonomousContainerDatabaseId, + this.isBackupRetentionLocked, this.timeUndeleted, this.timeCreated, this.displayName, @@ -3315,6 +3334,9 @@ public Builder copy(AutonomousDatabaseSummary model) { if (model.wasPropertyExplicitlySet("autonomousContainerDatabaseId")) { this.autonomousContainerDatabaseId(model.getAutonomousContainerDatabaseId()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("timeUndeleted")) { this.timeUndeleted(model.getTimeUndeleted()); } @@ -4459,6 +4481,19 @@ public String getAutonomousContainerDatabaseId() { return autonomousContainerDatabaseId; } + /** Indicates if the Autonomous Database is backup retention locked. */ + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private final Boolean isBackupRetentionLocked; + + /** + * Indicates if the Autonomous Database is backup retention locked. + * + * @return the value + */ + public Boolean getIsBackupRetentionLocked() { + return isBackupRetentionLocked; + } + /** The date and time the Autonomous Database was most recently undeleted. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUndeleted") private final java.util.Date timeUndeleted; @@ -6937,6 +6972,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isDedicated=").append(String.valueOf(this.isDedicated)); sb.append(", autonomousContainerDatabaseId=") .append(String.valueOf(this.autonomousContainerDatabaseId)); + sb.append(", isBackupRetentionLocked=") + .append(String.valueOf(this.isBackupRetentionLocked)); sb.append(", timeUndeleted=").append(String.valueOf(this.timeUndeleted)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", displayName=").append(String.valueOf(this.displayName)); @@ -7116,6 +7153,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isDedicated, other.isDedicated) && java.util.Objects.equals( this.autonomousContainerDatabaseId, other.autonomousContainerDatabaseId) + && java.util.Objects.equals( + this.isBackupRetentionLocked, other.isBackupRetentionLocked) && java.util.Objects.equals(this.timeUndeleted, other.timeUndeleted) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.displayName, other.displayName) @@ -7362,6 +7401,11 @@ public int hashCode() { + (this.autonomousContainerDatabaseId == null ? 43 : this.autonomousContainerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.isBackupRetentionLocked == null + ? 43 + : this.isBackupRetentionLocked.hashCode()); result = (result * PRIME) + (this.timeUndeleted == null ? 43 : this.timeUndeleted.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java index 2acd29470d5..5d9d1b38b54 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java @@ -115,6 +115,7 @@ public class CreateAutonomousDatabaseBase "isAutoScalingForStorageEnabled", "databaseEdition", "dbToolsDetails", + "isBackupRetentionLocked", "secretId", "secretVersionNumber" }) @@ -169,6 +170,7 @@ protected CreateAutonomousDatabaseBase( Boolean isAutoScalingForStorageEnabled, AutonomousDatabaseSummary.DatabaseEdition databaseEdition, java.util.List dbToolsDetails, + Boolean isBackupRetentionLocked, String secretId, Integer secretVersionNumber) { super(); @@ -222,6 +224,7 @@ protected CreateAutonomousDatabaseBase( this.isAutoScalingForStorageEnabled = isAutoScalingForStorageEnabled; this.databaseEdition = databaseEdition; this.dbToolsDetails = dbToolsDetails; + this.isBackupRetentionLocked = isBackupRetentionLocked; this.secretId = secretId; this.secretVersionNumber = secretVersionNumber; } @@ -1647,6 +1650,19 @@ public java.util.List getDbToolsDetails() { return dbToolsDetails; } + /** True if the Autonomous Database is backup retention locked. */ + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private final Boolean isBackupRetentionLocked; + + /** + * True if the Autonomous Database is backup retention locked. + * + * @return the value + */ + public Boolean getIsBackupRetentionLocked() { + return isBackupRetentionLocked; + } + /** * The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. * @@ -1754,6 +1770,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.isAutoScalingForStorageEnabled)); sb.append(", databaseEdition=").append(String.valueOf(this.databaseEdition)); sb.append(", dbToolsDetails=").append(String.valueOf(this.dbToolsDetails)); + sb.append(", isBackupRetentionLocked=") + .append(String.valueOf(this.isBackupRetentionLocked)); sb.append(", secretId=").append(String.valueOf(this.secretId)); sb.append(", secretVersionNumber=").append(String.valueOf(this.secretVersionNumber)); sb.append(")"); @@ -1831,6 +1849,8 @@ public boolean equals(Object o) { this.isAutoScalingForStorageEnabled, other.isAutoScalingForStorageEnabled) && java.util.Objects.equals(this.databaseEdition, other.databaseEdition) && java.util.Objects.equals(this.dbToolsDetails, other.dbToolsDetails) + && java.util.Objects.equals( + this.isBackupRetentionLocked, other.isBackupRetentionLocked) && java.util.Objects.equals(this.secretId, other.secretId) && java.util.Objects.equals(this.secretVersionNumber, other.secretVersionNumber) && super.equals(other); @@ -1994,6 +2014,11 @@ public int hashCode() { result = (result * PRIME) + (this.dbToolsDetails == null ? 43 : this.dbToolsDetails.hashCode()); + result = + (result * PRIME) + + (this.isBackupRetentionLocked == null + ? 43 + : this.isBackupRetentionLocked.hashCode()); result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); result = (result * PRIME) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java index 49dd3e88dc1..80f243b420a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java @@ -483,6 +483,15 @@ public Builder dbToolsDetails(java.util.List dbToolsDetails) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -591,6 +600,7 @@ public CreateAutonomousDatabaseCloneDetails build() { this.isAutoScalingForStorageEnabled, this.databaseEdition, this.dbToolsDetails, + this.isBackupRetentionLocked, this.secretId, this.secretVersionNumber, this.sourceId, @@ -755,6 +765,9 @@ public Builder copy(CreateAutonomousDatabaseCloneDetails model) { if (model.wasPropertyExplicitlySet("dbToolsDetails")) { this.dbToolsDetails(model.getDbToolsDetails()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -832,6 +845,7 @@ public CreateAutonomousDatabaseCloneDetails( Boolean isAutoScalingForStorageEnabled, AutonomousDatabaseSummary.DatabaseEdition databaseEdition, java.util.List dbToolsDetails, + Boolean isBackupRetentionLocked, String secretId, Integer secretVersionNumber, String sourceId, @@ -887,6 +901,7 @@ public CreateAutonomousDatabaseCloneDetails( isAutoScalingForStorageEnabled, databaseEdition, dbToolsDetails, + isBackupRetentionLocked, secretId, secretVersionNumber); this.sourceId = sourceId; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java index ba07ce31203..a57b367f203 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java @@ -483,6 +483,15 @@ public Builder dbToolsDetails(java.util.List dbToolsDetails) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -557,6 +566,7 @@ public CreateAutonomousDatabaseDetails build() { this.isAutoScalingForStorageEnabled, this.databaseEdition, this.dbToolsDetails, + this.isBackupRetentionLocked, this.secretId, this.secretVersionNumber); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -719,6 +729,9 @@ public Builder copy(CreateAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("dbToolsDetails")) { this.dbToolsDetails(model.getDbToolsDetails()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -790,6 +803,7 @@ public CreateAutonomousDatabaseDetails( Boolean isAutoScalingForStorageEnabled, AutonomousDatabaseSummary.DatabaseEdition databaseEdition, java.util.List dbToolsDetails, + Boolean isBackupRetentionLocked, String secretId, Integer secretVersionNumber) { super( @@ -843,6 +857,7 @@ public CreateAutonomousDatabaseDetails( isAutoScalingForStorageEnabled, databaseEdition, dbToolsDetails, + isBackupRetentionLocked, secretId, secretVersionNumber); } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java index e7187f63d5a..ea1c18d1e75 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java @@ -484,6 +484,15 @@ public Builder dbToolsDetails(java.util.List dbToolsDetails) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -594,6 +603,7 @@ public CreateAutonomousDatabaseFromBackupDetails build() { this.isAutoScalingForStorageEnabled, this.databaseEdition, this.dbToolsDetails, + this.isBackupRetentionLocked, this.secretId, this.secretVersionNumber, this.autonomousDatabaseBackupId, @@ -758,6 +768,9 @@ public Builder copy(CreateAutonomousDatabaseFromBackupDetails model) { if (model.wasPropertyExplicitlySet("dbToolsDetails")) { this.dbToolsDetails(model.getDbToolsDetails()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -835,6 +848,7 @@ public CreateAutonomousDatabaseFromBackupDetails( Boolean isAutoScalingForStorageEnabled, AutonomousDatabaseSummary.DatabaseEdition databaseEdition, java.util.List dbToolsDetails, + Boolean isBackupRetentionLocked, String secretId, Integer secretVersionNumber, String autonomousDatabaseBackupId, @@ -890,6 +904,7 @@ public CreateAutonomousDatabaseFromBackupDetails( isAutoScalingForStorageEnabled, databaseEdition, dbToolsDetails, + isBackupRetentionLocked, secretId, secretVersionNumber); this.autonomousDatabaseBackupId = autonomousDatabaseBackupId; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java index 69e712e13b5..1da3e36bd5d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java @@ -485,6 +485,15 @@ public Builder dbToolsDetails(java.util.List dbToolsDetails) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -628,6 +637,7 @@ public CreateAutonomousDatabaseFromBackupTimestampDetails build() { this.isAutoScalingForStorageEnabled, this.databaseEdition, this.dbToolsDetails, + this.isBackupRetentionLocked, this.secretId, this.secretVersionNumber, this.autonomousDatabaseId, @@ -794,6 +804,9 @@ public Builder copy(CreateAutonomousDatabaseFromBackupTimestampDetails model) { if (model.wasPropertyExplicitlySet("dbToolsDetails")) { this.dbToolsDetails(model.getDbToolsDetails()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -878,6 +891,7 @@ public CreateAutonomousDatabaseFromBackupTimestampDetails( Boolean isAutoScalingForStorageEnabled, AutonomousDatabaseSummary.DatabaseEdition databaseEdition, java.util.List dbToolsDetails, + Boolean isBackupRetentionLocked, String secretId, Integer secretVersionNumber, String autonomousDatabaseId, @@ -935,6 +949,7 @@ public CreateAutonomousDatabaseFromBackupTimestampDetails( isAutoScalingForStorageEnabled, databaseEdition, dbToolsDetails, + isBackupRetentionLocked, secretId, secretVersionNumber); this.autonomousDatabaseId = autonomousDatabaseId; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java index 3bb51d8c362..237e4568b28 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java @@ -498,6 +498,15 @@ public Builder dbToolsDetails(java.util.List dbToolsDetails) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -593,6 +602,7 @@ public CreateCrossRegionAutonomousDatabaseDataGuardDetails build() { this.isAutoScalingForStorageEnabled, this.databaseEdition, this.dbToolsDetails, + this.isBackupRetentionLocked, this.secretId, this.secretVersionNumber, this.sourceId); @@ -756,6 +766,9 @@ public Builder copy(CreateCrossRegionAutonomousDatabaseDataGuardDetails model) { if (model.wasPropertyExplicitlySet("dbToolsDetails")) { this.dbToolsDetails(model.getDbToolsDetails()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -830,6 +843,7 @@ public CreateCrossRegionAutonomousDatabaseDataGuardDetails( Boolean isAutoScalingForStorageEnabled, AutonomousDatabaseSummary.DatabaseEdition databaseEdition, java.util.List dbToolsDetails, + Boolean isBackupRetentionLocked, String secretId, Integer secretVersionNumber, String sourceId) { @@ -884,6 +898,7 @@ public CreateCrossRegionAutonomousDatabaseDataGuardDetails( isAutoScalingForStorageEnabled, databaseEdition, dbToolsDetails, + isBackupRetentionLocked, secretId, secretVersionNumber); this.sourceId = sourceId; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java index fa71a5668c7..2410cd7f8bb 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java @@ -496,6 +496,15 @@ public Builder dbToolsDetails(java.util.List dbToolsDetails) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -636,6 +645,7 @@ public CreateCrossRegionDisasterRecoveryDetails build() { this.isAutoScalingForStorageEnabled, this.databaseEdition, this.dbToolsDetails, + this.isBackupRetentionLocked, this.secretId, this.secretVersionNumber, this.sourceId, @@ -801,6 +811,9 @@ public Builder copy(CreateCrossRegionDisasterRecoveryDetails model) { if (model.wasPropertyExplicitlySet("dbToolsDetails")) { this.dbToolsDetails(model.getDbToolsDetails()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -881,6 +894,7 @@ public CreateCrossRegionDisasterRecoveryDetails( Boolean isAutoScalingForStorageEnabled, AutonomousDatabaseSummary.DatabaseEdition databaseEdition, java.util.List dbToolsDetails, + Boolean isBackupRetentionLocked, String secretId, Integer secretVersionNumber, String sourceId, @@ -937,6 +951,7 @@ public CreateCrossRegionDisasterRecoveryDetails( isAutoScalingForStorageEnabled, databaseEdition, dbToolsDetails, + isBackupRetentionLocked, secretId, secretVersionNumber); this.sourceId = sourceId; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossTenancyDisasterRecoveryDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossTenancyDisasterRecoveryDetails.java index cd03e18b9ee..4dff9c79ee7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossTenancyDisasterRecoveryDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossTenancyDisasterRecoveryDetails.java @@ -494,6 +494,15 @@ public Builder dbToolsDetails(java.util.List dbToolsDetails) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -634,6 +643,7 @@ public CreateCrossTenancyDisasterRecoveryDetails build() { this.isAutoScalingForStorageEnabled, this.databaseEdition, this.dbToolsDetails, + this.isBackupRetentionLocked, this.secretId, this.secretVersionNumber, this.sourceId, @@ -799,6 +809,9 @@ public Builder copy(CreateCrossTenancyDisasterRecoveryDetails model) { if (model.wasPropertyExplicitlySet("dbToolsDetails")) { this.dbToolsDetails(model.getDbToolsDetails()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -879,6 +892,7 @@ public CreateCrossTenancyDisasterRecoveryDetails( Boolean isAutoScalingForStorageEnabled, AutonomousDatabaseSummary.DatabaseEdition databaseEdition, java.util.List dbToolsDetails, + Boolean isBackupRetentionLocked, String secretId, Integer secretVersionNumber, String sourceId, @@ -935,6 +949,7 @@ public CreateCrossTenancyDisasterRecoveryDetails( isAutoScalingForStorageEnabled, databaseEdition, dbToolsDetails, + isBackupRetentionLocked, secretId, secretVersionNumber); this.sourceId = sourceId; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateRefreshableAutonomousDatabaseCloneDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateRefreshableAutonomousDatabaseCloneDetails.java index 8f190ffee0a..dfc2c0bed56 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateRefreshableAutonomousDatabaseCloneDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateRefreshableAutonomousDatabaseCloneDetails.java @@ -484,6 +484,15 @@ public Builder dbToolsDetails(java.util.List dbToolsDetails) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -690,6 +699,7 @@ public CreateRefreshableAutonomousDatabaseCloneDetails build() { this.isAutoScalingForStorageEnabled, this.databaseEdition, this.dbToolsDetails, + this.isBackupRetentionLocked, this.secretId, this.secretVersionNumber, this.sourceId, @@ -858,6 +868,9 @@ public Builder copy(CreateRefreshableAutonomousDatabaseCloneDetails model) { if (model.wasPropertyExplicitlySet("dbToolsDetails")) { this.dbToolsDetails(model.getDbToolsDetails()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -947,6 +960,7 @@ public CreateRefreshableAutonomousDatabaseCloneDetails( Boolean isAutoScalingForStorageEnabled, AutonomousDatabaseSummary.DatabaseEdition databaseEdition, java.util.List dbToolsDetails, + Boolean isBackupRetentionLocked, String secretId, Integer secretVersionNumber, String sourceId, @@ -1006,6 +1020,7 @@ public CreateRefreshableAutonomousDatabaseCloneDetails( isAutoScalingForStorageEnabled, databaseEdition, dbToolsDetails, + isBackupRetentionLocked, secretId, secretVersionNumber); this.sourceId = sourceId; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UndeleteAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UndeleteAutonomousDatabaseDetails.java index a48a390a765..662013f933d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UndeleteAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UndeleteAutonomousDatabaseDetails.java @@ -483,6 +483,15 @@ public Builder dbToolsDetails(java.util.List dbToolsDetails) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("secretId") private String secretId; @@ -576,6 +585,7 @@ public UndeleteAutonomousDatabaseDetails build() { this.isAutoScalingForStorageEnabled, this.databaseEdition, this.dbToolsDetails, + this.isBackupRetentionLocked, this.secretId, this.secretVersionNumber, this.sourceId); @@ -739,6 +749,9 @@ public Builder copy(UndeleteAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("dbToolsDetails")) { this.dbToolsDetails(model.getDbToolsDetails()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("secretId")) { this.secretId(model.getSecretId()); } @@ -813,6 +826,7 @@ public UndeleteAutonomousDatabaseDetails( Boolean isAutoScalingForStorageEnabled, AutonomousDatabaseSummary.DatabaseEdition databaseEdition, java.util.List dbToolsDetails, + Boolean isBackupRetentionLocked, String secretId, Integer secretVersionNumber, String sourceId) { @@ -867,6 +881,7 @@ public UndeleteAutonomousDatabaseDetails( isAutoScalingForStorageEnabled, databaseEdition, dbToolsDetails, + isBackupRetentionLocked, secretId, secretVersionNumber); this.sourceId = sourceId; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java index c1f28392c08..b0a0b124a4a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java @@ -77,6 +77,7 @@ public final class UpdateAutonomousDatabaseDetails "isMtlsConnectionRequired", "resourcePoolLeaderId", "resourcePoolSummary", + "isBackupRetentionLocked", "scheduledOperations", "isAutoScalingForStorageEnabled", "databaseEdition", @@ -131,6 +132,7 @@ public UpdateAutonomousDatabaseDetails( Boolean isMtlsConnectionRequired, String resourcePoolLeaderId, ResourcePoolSummary resourcePoolSummary, + Boolean isBackupRetentionLocked, java.util.List scheduledOperations, Boolean isAutoScalingForStorageEnabled, AutonomousDatabaseSummary.DatabaseEdition databaseEdition, @@ -184,6 +186,7 @@ public UpdateAutonomousDatabaseDetails( this.isMtlsConnectionRequired = isMtlsConnectionRequired; this.resourcePoolLeaderId = resourcePoolLeaderId; this.resourcePoolSummary = resourcePoolSummary; + this.isBackupRetentionLocked = isBackupRetentionLocked; this.scheduledOperations = scheduledOperations; this.isAutoScalingForStorageEnabled = isAutoScalingForStorageEnabled; this.databaseEdition = databaseEdition; @@ -1578,6 +1581,21 @@ public Builder resourcePoolSummary(ResourcePoolSummary resourcePoolSummary) { this.__explicitlySet__.add("resourcePoolSummary"); return this; } + /** True if the Autonomous Database is backup retention locked. */ + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private Boolean isBackupRetentionLocked; + + /** + * True if the Autonomous Database is backup retention locked. + * + * @param isBackupRetentionLocked the value to set + * @return this builder + */ + public Builder isBackupRetentionLocked(Boolean isBackupRetentionLocked) { + this.isBackupRetentionLocked = isBackupRetentionLocked; + this.__explicitlySet__.add("isBackupRetentionLocked"); + return this; + } /** * The list of scheduled operations. Consists of values such as dayOfWeek, * scheduledStartTime, scheduledStopTime. @@ -1782,6 +1800,7 @@ public UpdateAutonomousDatabaseDetails build() { this.isMtlsConnectionRequired, this.resourcePoolLeaderId, this.resourcePoolSummary, + this.isBackupRetentionLocked, this.scheduledOperations, this.isAutoScalingForStorageEnabled, this.databaseEdition, @@ -1933,6 +1952,9 @@ public Builder copy(UpdateAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("resourcePoolSummary")) { this.resourcePoolSummary(model.getResourcePoolSummary()); } + if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { + this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); + } if (model.wasPropertyExplicitlySet("scheduledOperations")) { this.scheduledOperations(model.getScheduledOperations()); } @@ -3467,6 +3489,19 @@ public ResourcePoolSummary getResourcePoolSummary() { return resourcePoolSummary; } + /** True if the Autonomous Database is backup retention locked. */ + @com.fasterxml.jackson.annotation.JsonProperty("isBackupRetentionLocked") + private final Boolean isBackupRetentionLocked; + + /** + * True if the Autonomous Database is backup retention locked. + * + * @return the value + */ + public Boolean getIsBackupRetentionLocked() { + return isBackupRetentionLocked; + } + /** * The list of scheduled operations. Consists of values such as dayOfWeek, scheduledStartTime, * scheduledStopTime. @@ -3669,6 +3704,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.isMtlsConnectionRequired)); sb.append(", resourcePoolLeaderId=").append(String.valueOf(this.resourcePoolLeaderId)); sb.append(", resourcePoolSummary=").append(String.valueOf(this.resourcePoolSummary)); + sb.append(", isBackupRetentionLocked=") + .append(String.valueOf(this.isBackupRetentionLocked)); sb.append(", scheduledOperations=").append(String.valueOf(this.scheduledOperations)); sb.append(", isAutoScalingForStorageEnabled=") .append(String.valueOf(this.isAutoScalingForStorageEnabled)); @@ -3747,6 +3784,8 @@ public boolean equals(Object o) { this.isMtlsConnectionRequired, other.isMtlsConnectionRequired) && java.util.Objects.equals(this.resourcePoolLeaderId, other.resourcePoolLeaderId) && java.util.Objects.equals(this.resourcePoolSummary, other.resourcePoolSummary) + && java.util.Objects.equals( + this.isBackupRetentionLocked, other.isBackupRetentionLocked) && java.util.Objects.equals(this.scheduledOperations, other.scheduledOperations) && java.util.Objects.equals( this.isAutoScalingForStorageEnabled, other.isAutoScalingForStorageEnabled) @@ -3907,6 +3946,11 @@ public int hashCode() { + (this.resourcePoolSummary == null ? 43 : this.resourcePoolSummary.hashCode()); + result = + (result * PRIME) + + (this.isBackupRetentionLocked == null + ? 43 + : this.isBackupRetentionLocked.hashCode()); result = (result * PRIME) + (this.scheduledOperations == null diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 4279ef69c16..2c51883ce58 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index cf0dac52e43..cc1d83b2ef7 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 422042571a2..ee20ce541d0 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 5b40520f4c8..49d8a9d9ae9 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 0bb1d696c15..6f891609d3a 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 880721e4aee..093055df6a1 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 78e3e758db3..c80a60f527f 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index f3b37821219..f1604aef3fb 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index ae3fbad8bf2..105fe8ba222 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 9921854cf40..08658f21776 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateJobRunDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateJobRunDetails.java index 7d8a82a6307..c166d9cf0e0 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateJobRunDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreateJobRunDetails.java @@ -61,14 +61,14 @@ public CreateJobRunDetails( public static class Builder { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the project to associate the job with. + * of the project to associate the job run with. */ @com.fasterxml.jackson.annotation.JsonProperty("projectId") private String projectId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the project to associate the job with. + * of the project to associate the job run with. * * @param projectId the value to set * @return this builder @@ -80,14 +80,14 @@ public Builder projectId(String projectId) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the compartment where you want to create the job. + * of the compartment where you want to create the job run. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the compartment where you want to create the job. + * of the compartment where you want to create the job run. * * @param compartmentId the value to set * @return this builder @@ -275,14 +275,14 @@ public Builder toBuilder() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the project to associate the job with. + * the project to associate the job run with. */ @com.fasterxml.jackson.annotation.JsonProperty("projectId") private final String projectId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the project to associate the job with. + * the project to associate the job run with. * * @return the value */ @@ -292,14 +292,14 @@ public String getProjectId() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the compartment where you want to create the job. + * the compartment where you want to create the job run. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the compartment where you want to create the job. + * the compartment where you want to create the job run. * * @return the value */ diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/DataScienceResourceType.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/DataScienceResourceType.java index 6a038633da4..19a296a1635 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/DataScienceResourceType.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/DataScienceResourceType.java @@ -8,6 +8,7 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") public enum DataScienceResourceType implements com.oracle.bmc.http.internal.BmcEnum { NotebookSession("NOTEBOOK_SESSION"), + ModelDeployment("MODEL_DEPLOYMENT"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/InstanceConfiguration.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/InstanceConfiguration.java index db2284b9b2c..61fba1211e1 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/InstanceConfiguration.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/InstanceConfiguration.java @@ -26,16 +26,19 @@ public final class InstanceConfiguration @java.beans.ConstructorProperties({ "instanceShapeName", "modelDeploymentInstanceShapeConfigDetails", - "subnetId" + "subnetId", + "privateEndpointId" }) public InstanceConfiguration( String instanceShapeName, ModelDeploymentInstanceShapeConfigDetails modelDeploymentInstanceShapeConfigDetails, - String subnetId) { + String subnetId, + String privateEndpointId) { super(); this.instanceShapeName = instanceShapeName; this.modelDeploymentInstanceShapeConfigDetails = modelDeploymentInstanceShapeConfigDetails; this.subnetId = subnetId; + this.privateEndpointId = privateEndpointId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -90,6 +93,21 @@ public Builder subnetId(String subnetId) { this.__explicitlySet__.add("subnetId"); return this; } + /** The OCID of a Data Science private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointId") + private String privateEndpointId; + + /** + * The OCID of a Data Science private endpoint. + * + * @param privateEndpointId the value to set + * @return this builder + */ + public Builder privateEndpointId(String privateEndpointId) { + this.privateEndpointId = privateEndpointId; + this.__explicitlySet__.add("privateEndpointId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -99,7 +117,8 @@ public InstanceConfiguration build() { new InstanceConfiguration( this.instanceShapeName, this.modelDeploymentInstanceShapeConfigDetails, - this.subnetId); + this.subnetId, + this.privateEndpointId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -118,6 +137,9 @@ public Builder copy(InstanceConfiguration model) { if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("privateEndpointId")) { + this.privateEndpointId(model.getPrivateEndpointId()); + } return this; } } @@ -172,6 +194,19 @@ public String getSubnetId() { return subnetId; } + /** The OCID of a Data Science private endpoint. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointId") + private final String privateEndpointId; + + /** + * The OCID of a Data Science private endpoint. + * + * @return the value + */ + public String getPrivateEndpointId() { + return privateEndpointId; + } + @Override public String toString() { return this.toString(true); @@ -191,6 +226,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", modelDeploymentInstanceShapeConfigDetails=") .append(String.valueOf(this.modelDeploymentInstanceShapeConfigDetails)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", privateEndpointId=").append(String.valueOf(this.privateEndpointId)); sb.append(")"); return sb.toString(); } @@ -210,6 +246,7 @@ public boolean equals(Object o) { this.modelDeploymentInstanceShapeConfigDetails, other.modelDeploymentInstanceShapeConfigDetails) && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) && super.equals(other); } @@ -226,6 +263,9 @@ public int hashCode() { ? 43 : this.modelDeploymentInstanceShapeConfigDetails.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobRun.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobRun.java index ba22dd2c5b3..df7ab52fad7 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobRun.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobRun.java @@ -185,14 +185,14 @@ public Builder createdBy(String createdBy) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the project to associate the job with. + * of the project to associate the job run with. */ @com.fasterxml.jackson.annotation.JsonProperty("projectId") private String projectId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the project to associate the job with. + * of the project to associate the job run with. * * @param projectId the value to set * @return this builder @@ -204,14 +204,14 @@ public Builder projectId(String projectId) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the compartment where you want to create the job. + * of the compartment where you want to create the job run. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the compartment where you want to create the job. + * of the compartment where you want to create the job run. * * @param compartmentId the value to set * @return this builder @@ -223,14 +223,14 @@ public Builder compartmentId(String compartmentId) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the job run. + * of the job. */ @com.fasterxml.jackson.annotation.JsonProperty("jobId") private String jobId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the job run. + * of the job. * * @param jobId the value to set * @return this builder @@ -593,14 +593,14 @@ public String getCreatedBy() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the project to associate the job with. + * the project to associate the job run with. */ @com.fasterxml.jackson.annotation.JsonProperty("projectId") private final String projectId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the project to associate the job with. + * the project to associate the job run with. * * @return the value */ @@ -610,14 +610,14 @@ public String getProjectId() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the compartment where you want to create the job. + * the compartment where you want to create the job run. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the compartment where you want to create the job. + * the compartment where you want to create the job run. * * @return the value */ @@ -627,14 +627,14 @@ public String getCompartmentId() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the job run. + * the job. */ @com.fasterxml.jackson.annotation.JsonProperty("jobId") private final String jobId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the job run. + * the job. * * @return the value */ diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobRunSummary.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobRunSummary.java index 52fac9ee4c5..95557b49383 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobRunSummary.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobRunSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.datascience.model; /** - * Summary information for a Job.
+ * Summary information for a job run.
* 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 @@ -165,14 +165,14 @@ public Builder createdBy(String createdBy) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the project to associate the job with. + * of the project to associate the job run with. */ @com.fasterxml.jackson.annotation.JsonProperty("projectId") private String projectId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the project to associate the job with. + * of the project to associate the job run with. * * @param projectId the value to set * @return this builder @@ -184,14 +184,14 @@ public Builder projectId(String projectId) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the compartment where you want to create the job. + * of the compartment where you want to create the job run. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the compartment where you want to create the job. + * of the compartment where you want to create the job run. * * @param compartmentId the value to set * @return this builder @@ -203,14 +203,14 @@ public Builder compartmentId(String compartmentId) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the job run. + * of the job. */ @com.fasterxml.jackson.annotation.JsonProperty("jobId") private String jobId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the job run. + * of the job. * * @param jobId the value to set * @return this builder @@ -235,12 +235,12 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** The state of the job. */ + /** The state of the job run. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private JobRunLifecycleState lifecycleState; /** - * The state of the job. + * The state of the job run. * * @param lifecycleState the value to set * @return this builder @@ -477,14 +477,14 @@ public String getCreatedBy() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the project to associate the job with. + * the project to associate the job run with. */ @com.fasterxml.jackson.annotation.JsonProperty("projectId") private final String projectId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the project to associate the job with. + * the project to associate the job run with. * * @return the value */ @@ -494,14 +494,14 @@ public String getProjectId() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the compartment where you want to create the job. + * the compartment where you want to create the job run. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the compartment where you want to create the job. + * the compartment where you want to create the job run. * * @return the value */ @@ -511,14 +511,14 @@ public String getCompartmentId() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the job run. + * the job. */ @com.fasterxml.jackson.annotation.JsonProperty("jobId") private final String jobId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the job run. + * the job. * * @return the value */ @@ -539,12 +539,12 @@ public String getDisplayName() { return displayName; } - /** The state of the job. */ + /** The state of the job run. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final JobRunLifecycleState lifecycleState; /** - * The state of the job. + * The state of the job run. * * @return the value */ diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobSummary.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobSummary.java index 78714f5e46c..9269cec27c7 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobSummary.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/JobSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.datascience.model; /** - * Summary information for a Job.
+ * Summary information for a 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 diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/Metadata.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/Metadata.java index 84be57a4263..50054b3d58a 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/Metadata.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/Metadata.java @@ -35,7 +35,7 @@ public static class Builder { /** * Key of the model Metadata. The key can either be user defined or OCI defined. List of OCI * defined keys: * useCaseType * libraryName * libraryVersion * estimatorClass * - * hyperParameters * testartifactresults + * hyperParameters * testArtifactresults */ @com.fasterxml.jackson.annotation.JsonProperty("key") private String key; @@ -43,7 +43,7 @@ public static class Builder { /** * Key of the model Metadata. The key can either be user defined or OCI defined. List of OCI * defined keys: * useCaseType * libraryName * libraryVersion * estimatorClass * - * hyperParameters * testartifactresults + * hyperParameters * testArtifactresults * * @param key the value to set * @return this builder @@ -102,7 +102,7 @@ public Builder description(String description) { /** * Category of model metadata which should be null for defined metadata.For custom metadata * is should be one of the following values "Performance,Training Profile,Training and - * Validation Datasets,Training Environment,other". + * Validation Datasets,Training Environment,Reports,Readme,other". */ @com.fasterxml.jackson.annotation.JsonProperty("category") private String category; @@ -110,7 +110,7 @@ public Builder description(String description) { /** * Category of model metadata which should be null for defined metadata.For custom metadata * is should be one of the following values "Performance,Training Profile,Training and - * Validation Datasets,Training Environment,other". + * Validation Datasets,Training Environment,Reports,Readme,other". * * @param category the value to set * @return this builder @@ -162,7 +162,7 @@ public Builder toBuilder() { /** * Key of the model Metadata. The key can either be user defined or OCI defined. List of OCI * defined keys: * useCaseType * libraryName * libraryVersion * estimatorClass * hyperParameters - * * testartifactresults + * * testArtifactresults */ @com.fasterxml.jackson.annotation.JsonProperty("key") private final String key; @@ -170,7 +170,7 @@ public Builder toBuilder() { /** * Key of the model Metadata. The key can either be user defined or OCI defined. List of OCI * defined keys: * useCaseType * libraryName * libraryVersion * estimatorClass * hyperParameters - * * testartifactresults + * * testArtifactresults * * @return the value */ @@ -223,7 +223,7 @@ public String getDescription() { /** * Category of model metadata which should be null for defined metadata.For custom metadata is * should be one of the following values "Performance,Training Profile,Training and Validation - * Datasets,Training Environment,other". + * Datasets,Training Environment,Reports,Readme,other". */ @com.fasterxml.jackson.annotation.JsonProperty("category") private final String category; @@ -231,7 +231,7 @@ public String getDescription() { /** * Category of model metadata which should be null for defined metadata.For custom metadata is * should be one of the following values "Performance,Training Profile,Training and Validation - * Datasets,Training Environment,other". + * Datasets,Training Environment,Reports,Readme,other". * * @return the value */ diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index 3654cb8a190..848045c0b03 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index d4910b9e7ab..603a29d7e51 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 71e8d7b7d0e..701e820a5da 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 608a68e5d57..4d55f2f0355 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 5cac4d9a7a9..1104f4fb92b 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 56048526632..3f0d87b6693 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.55.0 + 3.55.1 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index 4a2971bce52..a2b68b3cd7f 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index b12b86e267b..75aec361a67 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index fe9282aa1fc..233ae825fad 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 8cc377e66f4..5d43772a0f6 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 50f90bb91f7..05fd34b5171 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.55.0 + 3.55.1 com.fasterxml.jackson.core @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.0 + 3.55.1 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index c1074756e46..043b135091e 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.55.0 + 3.55.1 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 5f621c1ac3a..b538706d2fd 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 9c3d9c75bd9..a38360be8b3 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.0 + 3.55.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.0 + 3.55.1 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index bc6fe8ec705..2c8ebe10dfd 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index b6be9187e70..8520687ae3e 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 87a51678825..016b7167933 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index e8509826acf..2c80efa5e54 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.0 + 3.55.1 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 4c30aa36adf..113c66fe8ac 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index f286a628df1..eb29faa08e0 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 6eb3d8229d4..2bc66ace7b5 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index d07a5d1cc23..4d16a3ab91d 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/GenerativeAiAgent.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/GenerativeAiAgent.java index 59088e9f14d..e8152496e25 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/GenerativeAiAgent.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/GenerativeAiAgent.java @@ -8,9 +8,7 @@ import com.oracle.bmc.generativeaiagent.responses.*; /** - * **Generative AI Agents API** - * - *

OCI Generative AI Agents is a fully managed service that combines the power of large language + * OCI Generative AI Agents is a fully managed service that combines the power of large language * models (LLMs) with an intelligent retrieval system to create contextually relevant answers by * searching your knowledge base, making your AI applications smart and efficient. * @@ -82,9 +80,7 @@ public interface GenerativeAiAgent extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * **CancelWorkRequest** - * - *

Cancels a work request. + * Cancels a work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -100,9 +96,7 @@ public interface GenerativeAiAgent extends AutoCloseable { CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request); /** - * **ChangeAgentCompartment** - * - *

Moves an agent into a different compartment within the same tenancy. For information about + * Moves an agent into a different compartment within the same tenancy. For information about * moving resources between compartments, see [Moving Resources to a Different * Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * @@ -120,10 +114,8 @@ public interface GenerativeAiAgent extends AutoCloseable { ChangeAgentCompartmentResponse changeAgentCompartment(ChangeAgentCompartmentRequest request); /** - * **ChangeAgentEndpointCompartment** - * - *

Moves an endpoint into a different compartment within the same tenancy. For information - * about moving resources between compartments, see [Moving Resources to a Different + * Moves an endpoint into a different compartment within the same tenancy. For information about + * moving resources between compartments, see [Moving Resources to a Different * Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * @param request The request object containing the details to send @@ -141,10 +133,8 @@ ChangeAgentEndpointCompartmentResponse changeAgentEndpointCompartment( ChangeAgentEndpointCompartmentRequest request); /** - * **ChangeKnowledgeBaseCompartment** - * - *

Moves a knowledge base into a different compartment within the same tenancy. For - * information about moving resources between compartments, see [Moving Resources to a Different + * Moves a knowledge base into a different compartment within the same tenancy. For information + * about moving resources between compartments, see [Moving Resources to a Different * Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * @param request The request object containing the details to send @@ -162,9 +152,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( ChangeKnowledgeBaseCompartmentRequest request); /** - * **CreateAgent** - * - *

Creates an agent. + * Creates an agent. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -179,9 +167,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( CreateAgentResponse createAgent(CreateAgentRequest request); /** - * **CreateAgentEndpoint** - * - *

Creates an endpoint. + * Creates an endpoint. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -197,9 +183,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( CreateAgentEndpointResponse createAgentEndpoint(CreateAgentEndpointRequest request); /** - * **CreateDataIngestionJob** - * - *

Creates a data ingestion job. + * Creates a data ingestion job. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -215,9 +199,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( CreateDataIngestionJobResponse createDataIngestionJob(CreateDataIngestionJobRequest request); /** - * **CreateDataSource** - * - *

Creates a data source. + * Creates a data source. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -233,9 +215,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( CreateDataSourceResponse createDataSource(CreateDataSourceRequest request); /** - * **CreateKnowledgeBase** - * - *

Creates a knowledge base. + * Creates a knowledge base. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -251,9 +231,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( CreateKnowledgeBaseResponse createKnowledgeBase(CreateKnowledgeBaseRequest request); /** - * **DeleteAgent** - * - *

Deletes an agent. + * Deletes an agent. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -268,9 +246,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( DeleteAgentResponse deleteAgent(DeleteAgentRequest request); /** - * **DeleteAgentEndpoint** - * - *

Deletes an endpoint. + * Deletes an endpoint. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -286,9 +262,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( DeleteAgentEndpointResponse deleteAgentEndpoint(DeleteAgentEndpointRequest request); /** - * **DeleteDataIngestionJob** - * - *

Deletes a data ingestion job. + * Deletes a data ingestion job. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -304,9 +278,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( DeleteDataIngestionJobResponse deleteDataIngestionJob(DeleteDataIngestionJobRequest request); /** - * **DeleteDataSource** - * - *

Deletes a data source. + * Deletes a data source. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -322,9 +294,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( DeleteDataSourceResponse deleteDataSource(DeleteDataSourceRequest request); /** - * **DeleteKnowledgeBase** - * - *

Deletes a knowledge base. + * Deletes a knowledge base. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -340,9 +310,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( DeleteKnowledgeBaseResponse deleteKnowledgeBase(DeleteKnowledgeBaseRequest request); /** - * **GetAgent** - * - *

Gets information about an agent. + * Gets information about an agent. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -357,9 +325,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( GetAgentResponse getAgent(GetAgentRequest request); /** - * **GetAgentEndpoint** - * - *

Gets information about an endpoint. + * Gets information about an endpoint. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -375,9 +341,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( GetAgentEndpointResponse getAgentEndpoint(GetAgentEndpointRequest request); /** - * **GetDataIngestionJob** - * - *

Gets information about a data ingestion job. + * Gets information about a data ingestion job. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -393,9 +357,7 @@ ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment( GetDataIngestionJobResponse getDataIngestionJob(GetDataIngestionJobRequest request); /** - * **GetDataIngestionJobLogContent** - * - *

Returns the raw log file for the specified data ingestion job in text format. + * Returns the raw log file for the specified data ingestion job in text format. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -412,9 +374,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( GetDataIngestionJobLogContentRequest request); /** - * **GetDataSource** - * - *

Gets information about a data source. + * Gets information about a data source. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -429,9 +389,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( GetDataSourceResponse getDataSource(GetDataSourceRequest request); /** - * **GetKnowledgeBase** - * - *

Gets information about a knowledge base. + * Gets information about a knowledge base. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -447,9 +405,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( GetKnowledgeBaseResponse getKnowledgeBase(GetKnowledgeBaseRequest request); /** - * **GetWorkRequest** - * - *

Gets the details of a work request. + * Gets the details of a work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -464,9 +420,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); /** - * **ListAgentEndpoints** - * - *

Gets a list of endpoints. + * Gets a list of endpoints. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -482,9 +436,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( ListAgentEndpointsResponse listAgentEndpoints(ListAgentEndpointsRequest request); /** - * **ListAgents** - * - *

Gets a list of agents. + * Gets a list of agents. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -499,9 +451,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( ListAgentsResponse listAgents(ListAgentsRequest request); /** - * **ListDataIngestionJobs** - * - *

Gets a list of data ingestion jobs. + * Gets a list of data ingestion jobs. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -517,9 +467,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( ListDataIngestionJobsResponse listDataIngestionJobs(ListDataIngestionJobsRequest request); /** - * **ListDataSources** - * - *

Gets a list of data sources. + * Gets a list of data sources. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -535,9 +483,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( ListDataSourcesResponse listDataSources(ListDataSourcesRequest request); /** - * **ListKnowledgeBases** - * - *

Gets a list of knowledge bases. + * Gets a list of knowledge bases. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -553,9 +499,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( ListKnowledgeBasesResponse listKnowledgeBases(ListKnowledgeBasesRequest request); /** - * **ListWorkRequestErrors** - * - *

Lists the errors for a work request. + * Lists the errors for a work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -571,9 +515,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); /** - * **ListWorkRequestLogs** - * - *

Lists the logs for a work request. + * Lists the logs for a work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -589,9 +531,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); /** - * **ListWorkRequests** - * - *

Lists the work requests in a compartment. + * 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 @@ -607,9 +547,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); /** - * **UpdateAgent** - * - *

Updates an agent. + * Updates an agent. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -624,9 +562,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( UpdateAgentResponse updateAgent(UpdateAgentRequest request); /** - * **UpdateAgentEndpoint** - * - *

Updates an endpoint. + * Updates an endpoint. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -642,9 +578,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( UpdateAgentEndpointResponse updateAgentEndpoint(UpdateAgentEndpointRequest request); /** - * **UpdateDataSource** - * - *

Updates a data source. + * Updates a data source. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -660,9 +594,7 @@ GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent( UpdateDataSourceResponse updateDataSource(UpdateDataSourceRequest request); /** - * **UpdateKnowledgeBase** - * - *

Updates a knowledge base. + * Updates a knowledge base. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/GenerativeAiAgentAsync.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/GenerativeAiAgentAsync.java index 750a44265bf..a58affe4beb 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/GenerativeAiAgentAsync.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/GenerativeAiAgentAsync.java @@ -8,9 +8,7 @@ import com.oracle.bmc.generativeaiagent.responses.*; /** - * **Generative AI Agents API** - * - *

OCI Generative AI Agents is a fully managed service that combines the power of large language + * OCI Generative AI Agents is a fully managed service that combines the power of large language * models (LLMs) with an intelligent retrieval system to create contextually relevant answers by * searching your knowledge base, making your AI applications smart and efficient. * @@ -79,9 +77,7 @@ public interface GenerativeAiAgentAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * **CancelWorkRequest** - * - *

Cancels a work request. + * Cancels a work request. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -97,9 +93,7 @@ java.util.concurrent.Future cancelWorkRequest( handler); /** - * **ChangeAgentCompartment** - * - *

Moves an agent into a different compartment within the same tenancy. For information about + * Moves an agent into a different compartment within the same tenancy. For information about * moving resources between compartments, see [Moving Resources to a Different * Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * @@ -117,10 +111,8 @@ java.util.concurrent.Future changeAgentCompartme handler); /** - * **ChangeAgentEndpointCompartment** - * - *

Moves an endpoint into a different compartment within the same tenancy. For information - * about moving resources between compartments, see [Moving Resources to a Different + * Moves an endpoint into a different compartment within the same tenancy. For information about + * moving resources between compartments, see [Moving Resources to a Different * Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * @param request The request object containing the details to send @@ -139,10 +131,8 @@ java.util.concurrent.Future changeAgentCompartme handler); /** - * **ChangeKnowledgeBaseCompartment** - * - *

Moves a knowledge base into a different compartment within the same tenancy. For - * information about moving resources between compartments, see [Moving Resources to a Different + * Moves a knowledge base into a different compartment within the same tenancy. For information + * about moving resources between compartments, see [Moving Resources to a Different * Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * @param request The request object containing the details to send @@ -161,9 +151,7 @@ java.util.concurrent.Future changeAgentCompartme handler); /** - * **CreateAgent** - * - *

Creates an agent. + * Creates an agent. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -177,9 +165,7 @@ java.util.concurrent.Future createAgent( com.oracle.bmc.responses.AsyncHandler handler); /** - * **CreateAgentEndpoint** - * - *

Creates an endpoint. + * Creates an endpoint. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -195,9 +181,7 @@ java.util.concurrent.Future createAgentEndpoint( handler); /** - * **CreateDataIngestionJob** - * - *

Creates a data ingestion job. + * Creates a data ingestion job. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -213,9 +197,7 @@ java.util.concurrent.Future createDataIngestionJ handler); /** - * **CreateDataSource** - * - *

Creates a data source. + * Creates a data source. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -230,9 +212,7 @@ java.util.concurrent.Future createDataSource( handler); /** - * **CreateKnowledgeBase** - * - *

Creates a knowledge base. + * Creates a knowledge base. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -248,9 +228,7 @@ java.util.concurrent.Future createKnowledgeBase( handler); /** - * **DeleteAgent** - * - *

Deletes an agent. + * Deletes an agent. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -264,9 +242,7 @@ java.util.concurrent.Future deleteAgent( com.oracle.bmc.responses.AsyncHandler handler); /** - * **DeleteAgentEndpoint** - * - *

Deletes an endpoint. + * Deletes an endpoint. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -282,9 +258,7 @@ java.util.concurrent.Future deleteAgentEndpoint( handler); /** - * **DeleteDataIngestionJob** - * - *

Deletes a data ingestion job. + * Deletes a data ingestion job. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -300,9 +274,7 @@ java.util.concurrent.Future deleteDataIngestionJ handler); /** - * **DeleteDataSource** - * - *

Deletes a data source. + * Deletes a data source. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -317,9 +289,7 @@ java.util.concurrent.Future deleteDataSource( handler); /** - * **DeleteKnowledgeBase** - * - *

Deletes a knowledge base. + * Deletes a knowledge base. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -335,9 +305,7 @@ java.util.concurrent.Future deleteKnowledgeBase( handler); /** - * **GetAgent** - * - *

Gets information about an agent. + * Gets information about an agent. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -351,9 +319,7 @@ java.util.concurrent.Future getAgent( com.oracle.bmc.responses.AsyncHandler handler); /** - * **GetAgentEndpoint** - * - *

Gets information about an endpoint. + * Gets information about an endpoint. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -368,9 +334,7 @@ java.util.concurrent.Future getAgentEndpoint( handler); /** - * **GetDataIngestionJob** - * - *

Gets information about a data ingestion job. + * Gets information about a data ingestion job. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -386,9 +350,7 @@ java.util.concurrent.Future getDataIngestionJob( handler); /** - * **GetDataIngestionJobLogContent** - * - *

Returns the raw log file for the specified data ingestion job in text format. + * Returns the raw log file for the specified data ingestion job in text format. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -406,9 +368,7 @@ java.util.concurrent.Future getDataIngestionJob( handler); /** - * **GetDataSource** - * - *

Gets information about a data source. + * Gets information about a data source. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -423,9 +383,7 @@ java.util.concurrent.Future getDataSource( handler); /** - * **GetKnowledgeBase** - * - *

Gets information about a knowledge base. + * Gets information about a knowledge base. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -440,9 +398,7 @@ java.util.concurrent.Future getKnowledgeBase( handler); /** - * **GetWorkRequest** - * - *

Gets the details of a work request. + * Gets the details of a work request. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -457,9 +413,7 @@ java.util.concurrent.Future getWorkRequest( handler); /** - * **ListAgentEndpoints** - * - *

Gets a list of endpoints. + * Gets a list of endpoints. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -475,9 +429,7 @@ java.util.concurrent.Future listAgentEndpoints( handler); /** - * **ListAgents** - * - *

Gets a list of agents. + * Gets a list of agents. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -491,9 +443,7 @@ java.util.concurrent.Future listAgents( com.oracle.bmc.responses.AsyncHandler handler); /** - * **ListDataIngestionJobs** - * - *

Gets a list of data ingestion jobs. + * Gets a list of data ingestion jobs. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -509,9 +459,7 @@ java.util.concurrent.Future listDataIngestionJobs handler); /** - * **ListDataSources** - * - *

Gets a list of data sources. + * Gets a list of data sources. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -526,9 +474,7 @@ java.util.concurrent.Future listDataSources( handler); /** - * **ListKnowledgeBases** - * - *

Gets a list of knowledge bases. + * Gets a list of knowledge bases. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -544,9 +490,7 @@ java.util.concurrent.Future listKnowledgeBases( handler); /** - * **ListWorkRequestErrors** - * - *

Lists the errors for a work request. + * Lists the errors for a work request. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -562,9 +506,7 @@ java.util.concurrent.Future listWorkRequestErrors handler); /** - * **ListWorkRequestLogs** - * - *

Lists the logs for a work request. + * Lists the logs for a work request. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -580,9 +522,7 @@ java.util.concurrent.Future listWorkRequestLogs( handler); /** - * **ListWorkRequests** - * - *

Lists the work requests in a compartment. + * 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. @@ -597,9 +537,7 @@ java.util.concurrent.Future listWorkRequests( handler); /** - * **UpdateAgent** - * - *

Updates an agent. + * Updates an agent. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -613,9 +551,7 @@ java.util.concurrent.Future updateAgent( com.oracle.bmc.responses.AsyncHandler handler); /** - * **UpdateAgentEndpoint** - * - *

Updates an endpoint. + * Updates an endpoint. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -631,9 +567,7 @@ java.util.concurrent.Future updateAgentEndpoint( handler); /** - * **UpdateDataSource** - * - *

Updates a data source. + * Updates a data source. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -648,9 +582,7 @@ java.util.concurrent.Future updateDataSource( handler); /** - * **UpdateKnowledgeBase** - * - *

Updates a knowledge base. + * Updates a knowledge base. * * @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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/Agent.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/Agent.java index 3c2b80bcae3..9a392294679 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/Agent.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/Agent.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **Agent** - * - *

An agent is an LLM-based autonomous system that understands and generates human-like text, + * An agent is an LLM-based autonomous system that understands and generates human-like text, * enabling natural-language processing interactions. OCI Generative AI Agents supports * retrieval-augmented generation (RAG) agents. A RAG agent connects to a data source, retrieves * data, and augments model responses with the information from the data sources to generate more diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentCollection.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentCollection.java index d98a46a6b31..aec188b470f 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentCollection.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentCollection.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **AgentCollection** - * - *

Results of an agent search. Contains both AgentSummary items and other information, such as + * Results of an agent search. Contains both AgentSummary 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpoint.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpoint.java index 0fe229bd288..84b6d815236 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpoint.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpoint.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **AgentEndpoint** - * - *

The endpoint to access a deployed agent. + * The endpoint to access a deployed agent. * *

To use any of the API operations, you must be authorized in an IAM policy. If you're not * authorized, talk to an administrator. If you're an administrator who needs to write policies to diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpointCollection.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpointCollection.java index e0f3daeaa39..350ac132f62 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpointCollection.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpointCollection.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **AgentEndpointCollection** - * - *

Results of an agentEndpoint search. Contains both AgentEndpointSummary items and other + * Results of an agentEndpoint search. Contains both AgentEndpointSummary 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpointSummary.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpointSummary.java index 44cfd9b9c08..ea1d8a4577a 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpointSummary.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentEndpointSummary.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **AgentEndpointSummary** - * - *

Summary information about an endpoint.
+ * Summary information about an endpoint.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentSummary.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentSummary.java index 7058c41db58..380c0b5e45f 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentSummary.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/AgentSummary.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **AgentSummary** - * - *

Summary information about an agent.
+ * Summary information about an agent.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/BasicAuthSecret.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/BasicAuthSecret.java index 26f4e064a38..1fc15559249 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/BasicAuthSecret.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/BasicAuthSecret.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **BasicAuthSecret** - * - *

The details of Basic authentication configured as in OpenSearch.
+ * The details of Basic authentication configured as in OpenSearch.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeAgentCompartmentDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeAgentCompartmentDetails.java index ab86456e7df..9e8191024fb 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeAgentCompartmentDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeAgentCompartmentDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **ChangeAgentCompartmentDetails** - * - *

The configuration details for the move operation.
+ * The configuration details for the move operation.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeAgentEndpointCompartmentDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeAgentEndpointCompartmentDetails.java index 180324d7ead..70b9c7df7e9 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeAgentEndpointCompartmentDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeAgentEndpointCompartmentDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **ChangeAgentEndpointCompartmentDetails** - * - *

The configuration details for the move operation.
+ * The configuration details for the move operation.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeKnowledgeBaseCompartmentDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeKnowledgeBaseCompartmentDetails.java index a9c0f9a7f24..87e9a449ab3 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeKnowledgeBaseCompartmentDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ChangeKnowledgeBaseCompartmentDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **ChangeKnowledgeBaseCompartmentDetails** - * - *

The configuration details for the move operation.
+ * The configuration details for the move operation.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateAgentDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateAgentDetails.java index 452451215f9..4ddbe4a2cf5 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateAgentDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateAgentDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **CreateAgentDetails** - * - *

The data to create an agent.
+ * The data to create an agent.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateAgentEndpointDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateAgentEndpointDetails.java index dccd0d203fd..5b5689bbd51 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateAgentEndpointDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateAgentEndpointDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **CreateAgentEndpointDetails** - * - *

The data to create an endpoint.
+ * The data to create an endpoint.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateDataIngestionJobDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateDataIngestionJobDetails.java index d2ade0a1fee..a6de7cefc55 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateDataIngestionJobDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateDataIngestionJobDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **CreateDataIngestionJobDetails** - * - *

The data to create a data ingestion job.
+ * The data to create a data ingestion 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateDataSourceDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateDataSourceDetails.java index fd2acccec07..672b887b364 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateDataSourceDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateDataSourceDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **CreateDataSourceDetails** - * - *

The data to create a data source.
+ * The data to create a data source.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateKnowledgeBaseDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateKnowledgeBaseDetails.java index c44115e832a..ee021784232 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateKnowledgeBaseDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/CreateKnowledgeBaseDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **CreateKnowledgeBaseDetails** - * - *

The data to create a knowledge base.
+ * The data to create a knowledge base.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJob.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJob.java index e0e7eea15cc..6dd830b1d81 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJob.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJob.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DataIngestionJob** - * - *

When you create a data source, you specify the location of the data files. To make those files + * When you create a data source, you specify the location of the data files. To make those files * usable by an agent, you must download them into the agent's associated knowledge base, a process * known as data ingestion. Data ingestion is a process that extracts data from data source * documents, converts it into a structured format suitable for analysis, and then stores it in a @@ -40,6 +38,7 @@ public final class DataIngestionJob "description", "compartmentId", "dataSourceId", + "knowledgeBaseId", "dataIngestionJobStatistics", "timeCreated", "timeUpdated", @@ -55,6 +54,7 @@ public DataIngestionJob( String description, String compartmentId, String dataSourceId, + String knowledgeBaseId, DataIngestionJobStatistics dataIngestionJobStatistics, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -69,6 +69,7 @@ public DataIngestionJob( this.description = description; this.compartmentId = compartmentId; this.dataSourceId = dataSourceId; + this.knowledgeBaseId = knowledgeBaseId; this.dataIngestionJobStatistics = dataIngestionJobStatistics; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; @@ -168,6 +169,25 @@ public Builder dataSourceId(String dataSourceId) { this.__explicitlySet__.add("dataSourceId"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the parent KnowledgeBase. + */ + @com.fasterxml.jackson.annotation.JsonProperty("knowledgeBaseId") + private String knowledgeBaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the parent KnowledgeBase. + * + * @param knowledgeBaseId the value to set + * @return this builder + */ + public Builder knowledgeBaseId(String knowledgeBaseId) { + this.knowledgeBaseId = knowledgeBaseId; + this.__explicitlySet__.add("knowledgeBaseId"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("dataIngestionJobStatistics") private DataIngestionJobStatistics dataIngestionJobStatistics; @@ -344,6 +364,7 @@ public DataIngestionJob build() { this.description, this.compartmentId, this.dataSourceId, + this.knowledgeBaseId, this.dataIngestionJobStatistics, this.timeCreated, this.timeUpdated, @@ -375,6 +396,9 @@ public Builder copy(DataIngestionJob model) { if (model.wasPropertyExplicitlySet("dataSourceId")) { this.dataSourceId(model.getDataSourceId()); } + if (model.wasPropertyExplicitlySet("knowledgeBaseId")) { + this.knowledgeBaseId(model.getKnowledgeBaseId()); + } if (model.wasPropertyExplicitlySet("dataIngestionJobStatistics")) { this.dataIngestionJobStatistics(model.getDataIngestionJobStatistics()); } @@ -489,6 +513,23 @@ public String getDataSourceId() { return dataSourceId; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the parent KnowledgeBase. + */ + @com.fasterxml.jackson.annotation.JsonProperty("knowledgeBaseId") + private final String knowledgeBaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the parent KnowledgeBase. + * + * @return the value + */ + public String getKnowledgeBaseId() { + return knowledgeBaseId; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataIngestionJobStatistics") private final DataIngestionJobStatistics dataIngestionJobStatistics; @@ -704,6 +745,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", dataSourceId=").append(String.valueOf(this.dataSourceId)); + sb.append(", knowledgeBaseId=").append(String.valueOf(this.knowledgeBaseId)); sb.append(", dataIngestionJobStatistics=") .append(String.valueOf(this.dataIngestionJobStatistics)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -732,6 +774,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.dataSourceId, other.dataSourceId) + && java.util.Objects.equals(this.knowledgeBaseId, other.knowledgeBaseId) && java.util.Objects.equals( this.dataIngestionJobStatistics, other.dataIngestionJobStatistics) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -755,6 +798,9 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.dataSourceId == null ? 43 : this.dataSourceId.hashCode()); + result = + (result * PRIME) + + (this.knowledgeBaseId == null ? 43 : this.knowledgeBaseId.hashCode()); result = (result * PRIME) + (this.dataIngestionJobStatistics == null diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobCollection.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobCollection.java index 91497dc2f23..b8fbc567eb3 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobCollection.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobCollection.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DataIngestionJobCollection** - * - *

Results of a data ingestion job search. Contains both DataIngestionJobSummary items and other + * Results of a data ingestion job search. Contains both DataIngestionJobSummary 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobStatistics.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobStatistics.java index 055d14be37f..887b6919bf5 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobStatistics.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobStatistics.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DataIngestionJobStatistics** - * - *

The statistics of data ingestion job.
+ * The statistics of data ingestion 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobSummary.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobSummary.java index fabe764efc7..3a85fea90ca 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobSummary.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataIngestionJobSummary.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DataIngestionJobSummary** - * - *

Summary information about a data ingestion job.
+ * Summary information about a data ingestion 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSource.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSource.java index 4e87526dd2a..6908c463019 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSource.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSource.java @@ -5,11 +5,9 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DataSource** - * - *

A data source points to the source of your data. After you add a data source to a knowledge - * base, you must ingest the data source's data, so that agents using the knowledge base can refer - * to the data. + * A data source points to the source of your data. After you add a data source to a knowledge base, + * you must ingest the data source's data, so that agents using the knowledge base can refer to the + * data. * *

To use any of the API operations, you must be authorized in an IAM policy. If you're not * authorized, talk to an administrator. If you're an administrator who needs to write policies to diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceCollection.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceCollection.java index f5b0c377d1d..8f6a265c8c3 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceCollection.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceCollection.java @@ -5,10 +5,8 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DataSourceCollection** - * - *

Results of a dataSource search. Contains both DataSourceSummary items and other information, - * such as metadata.
+ * Results of a dataSource search. Contains both DataSourceSummary 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceConfig.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceConfig.java index 51fd518bb13..8972b3dc12b 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceConfig.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceConfig.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DataSourceConfig** - * - *

The details of data source.
+ * The details of data source.
* 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 @@ -32,9 +30,27 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public class DataSourceConfig extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({}) - protected DataSourceConfig() { + @java.beans.ConstructorProperties({"shouldEnableMultiModality"}) + protected DataSourceConfig(Boolean shouldEnableMultiModality) { super(); + this.shouldEnableMultiModality = shouldEnableMultiModality; + } + + /** + * Flag to enable or disable multi modality such as image processing while ingestion of data. + * True enable the processing and false exclude the multi modality contents during ingestion. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shouldEnableMultiModality") + private final Boolean shouldEnableMultiModality; + + /** + * Flag to enable or disable multi modality such as image processing while ingestion of data. + * True enable the processing and false exclude the multi modality contents during ingestion. + * + * @return the value + */ + public Boolean getShouldEnableMultiModality() { + return shouldEnableMultiModality; } @Override @@ -52,6 +68,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("DataSourceConfig("); sb.append("super=").append(super.toString()); + sb.append("shouldEnableMultiModality=") + .append(String.valueOf(this.shouldEnableMultiModality)); sb.append(")"); return sb.toString(); } @@ -66,13 +84,20 @@ public boolean equals(Object o) { } DataSourceConfig other = (DataSourceConfig) o; - return super.equals(other); + return java.util.Objects.equals( + this.shouldEnableMultiModality, other.shouldEnableMultiModality) + && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.shouldEnableMultiModality == null + ? 43 + : this.shouldEnableMultiModality.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceSummary.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceSummary.java index eee1bf44533..8ec270ffb8e 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceSummary.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DataSourceSummary.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DataSourceSummary** - * - *

Summary information about a data source.
+ * Summary information about a data source.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseConnection.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseConnection.java index 67e44304702..e4a7d5a4043 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseConnection.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseConnection.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DatabaseConnection** - * - *

The connection type for Databases.
+ * The connection type for Databases.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseFunction.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseFunction.java index fa7dfbc3674..5c0936b1b96 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseFunction.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseFunction.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DatabaseFunction** - * - *

The details of Database function.
+ * The details of Database function.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseToolConnection.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseToolConnection.java index 37a674b7ea3..af99cae02d8 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseToolConnection.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DatabaseToolConnection.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DatabaseToolConnection** - * - *

The details of the customer Database Tools Connection.
+ * The details of the customer Database Tools Connection.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DefaultIndexConfig.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DefaultIndexConfig.java index f5553de9437..817930ea1bd 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DefaultIndexConfig.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/DefaultIndexConfig.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **DefaultIndexConfig** - * - *

The default index is service managed vector store on behalf of the customer.
+ * The default index is service managed vector store on behalf of the customer.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IdcsSecret.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IdcsSecret.java index 4a057085faf..eece2f887f5 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IdcsSecret.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IdcsSecret.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **IdcsSecret** - * - *

The details of IDCS configured as OpenID setting in OpenSearch.
+ * The details of IDCS configured as OpenID setting in OpenSearch.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/Index.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/Index.java index 8ee7f65de8d..6fd3310b31d 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/Index.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/Index.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **Index** - * - *

OCI OpenSearch index details.
+ * OCI OpenSearch index 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IndexConfig.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IndexConfig.java index 97071706a81..b2b0879afd3 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IndexConfig.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IndexConfig.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **IndexConfig** - * - *

The index configuration of Knowledge bases.
+ * The index configuration of Knowledge bases.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IndexSchema.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IndexSchema.java index 915b364e4d5..72de2c4c293 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IndexSchema.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/IndexSchema.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **IndexSchema** - * - *

The index schema details.
+ * The index schema 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBase.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBase.java index b6e6be4f250..d4977e3fdb1 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBase.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBase.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **KnowledgeBase** - * - *

A knowledge base is the base for all the data sources that an agent can use to retrieve + * A knowledge base is the base for all the data sources that an agent can use to retrieve * information for its responses. * *

To use any of the API operations, you must be authorized in an IAM policy. If you're not @@ -36,6 +34,7 @@ public final class KnowledgeBase extends com.oracle.bmc.http.client.internal.Exp "description", "compartmentId", "indexConfig", + "knowledgeBaseStatistics", "timeCreated", "timeUpdated", "lifecycleState", @@ -50,6 +49,7 @@ public KnowledgeBase( String description, String compartmentId, IndexConfig indexConfig, + KnowledgeBaseStatistics knowledgeBaseStatistics, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -63,6 +63,7 @@ public KnowledgeBase( this.description = description; this.compartmentId = compartmentId; this.indexConfig = indexConfig; + this.knowledgeBaseStatistics = knowledgeBaseStatistics; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -151,6 +152,15 @@ public Builder indexConfig(IndexConfig indexConfig) { this.__explicitlySet__.add("indexConfig"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("knowledgeBaseStatistics") + private KnowledgeBaseStatistics knowledgeBaseStatistics; + + public Builder knowledgeBaseStatistics(KnowledgeBaseStatistics knowledgeBaseStatistics) { + this.knowledgeBaseStatistics = knowledgeBaseStatistics; + this.__explicitlySet__.add("knowledgeBaseStatistics"); + return this; + } /** * The date and time the knowledge base was created, in the format defined by [RFC * 3339](https://tools.ietf.org/html/rfc3339). @@ -317,6 +327,7 @@ public KnowledgeBase build() { this.description, this.compartmentId, this.indexConfig, + this.knowledgeBaseStatistics, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -347,6 +358,9 @@ public Builder copy(KnowledgeBase model) { if (model.wasPropertyExplicitlySet("indexConfig")) { this.indexConfig(model.getIndexConfig()); } + if (model.wasPropertyExplicitlySet("knowledgeBaseStatistics")) { + this.knowledgeBaseStatistics(model.getKnowledgeBaseStatistics()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -448,6 +462,13 @@ public IndexConfig getIndexConfig() { return indexConfig; } + @com.fasterxml.jackson.annotation.JsonProperty("knowledgeBaseStatistics") + private final KnowledgeBaseStatistics knowledgeBaseStatistics; + + public KnowledgeBaseStatistics getKnowledgeBaseStatistics() { + return knowledgeBaseStatistics; + } + /** * The date and time the knowledge base was created, in the format defined by [RFC * 3339](https://tools.ietf.org/html/rfc3339). @@ -656,6 +677,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", indexConfig=").append(String.valueOf(this.indexConfig)); + sb.append(", knowledgeBaseStatistics=") + .append(String.valueOf(this.knowledgeBaseStatistics)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -682,6 +705,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.indexConfig, other.indexConfig) + && java.util.Objects.equals( + this.knowledgeBaseStatistics, other.knowledgeBaseStatistics) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -703,6 +728,11 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.indexConfig == null ? 43 : this.indexConfig.hashCode()); + result = + (result * PRIME) + + (this.knowledgeBaseStatistics == null + ? 43 + : this.knowledgeBaseStatistics.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBaseCollection.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBaseCollection.java index a33478ff559..c368abcbcf9 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBaseCollection.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBaseCollection.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **KnowledgeBaseCollection** - * - *

Results of a knowledge base search. Contains both KnowledgeBaseSummary items and other + * Results of a knowledge base search. Contains both KnowledgeBaseSummary 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBaseStatistics.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBaseStatistics.java new file mode 100644 index 00000000000..60d022786c8 --- /dev/null +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBaseStatistics.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.generativeaiagent.model; + +/** + * Statistics for Default Knowledge Base.
+ * 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: 20240531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = KnowledgeBaseStatistics.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class KnowledgeBaseStatistics + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"sizeInBytes"}) + public KnowledgeBaseStatistics(Integer sizeInBytes) { + super(); + this.sizeInBytes = sizeInBytes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Knowledge Base size in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private Integer sizeInBytes; + + /** + * Knowledge Base size in bytes. + * + * @param sizeInBytes the value to set + * @return this builder + */ + public Builder sizeInBytes(Integer sizeInBytes) { + this.sizeInBytes = sizeInBytes; + this.__explicitlySet__.add("sizeInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public KnowledgeBaseStatistics build() { + KnowledgeBaseStatistics model = new KnowledgeBaseStatistics(this.sizeInBytes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(KnowledgeBaseStatistics model) { + if (model.wasPropertyExplicitlySet("sizeInBytes")) { + this.sizeInBytes(model.getSizeInBytes()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Knowledge Base size in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private final Integer sizeInBytes; + + /** + * Knowledge Base size in bytes. + * + * @return the value + */ + public Integer getSizeInBytes() { + return sizeInBytes; + } + + @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("KnowledgeBaseStatistics("); + sb.append("super=").append(super.toString()); + sb.append("sizeInBytes=").append(String.valueOf(this.sizeInBytes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof KnowledgeBaseStatistics)) { + return false; + } + + KnowledgeBaseStatistics other = (KnowledgeBaseStatistics) o; + return java.util.Objects.equals(this.sizeInBytes, other.sizeInBytes) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.sizeInBytes == null ? 43 : this.sizeInBytes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBaseSummary.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBaseSummary.java index 44bf676c01c..de00775f7dc 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBaseSummary.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/KnowledgeBaseSummary.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **KnowledgeBaseSummary** - * - *

Summary information about a knowledge base.
+ * Summary information about a knowledge base.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ObjectStoragePrefix.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ObjectStoragePrefix.java index 6c707ad914d..155fc7fc926 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ObjectStoragePrefix.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/ObjectStoragePrefix.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **ObjectStoragePrefix** - * - *

The details of OCI Object Storage object.
+ * The details of OCI Object Storage object.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciDatabaseConfig.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciDatabaseConfig.java index ce1584e72a3..43d1553e68d 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciDatabaseConfig.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciDatabaseConfig.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **OciDatabaseConfig** - * - *

The details of the customer Database Connection.
+ * The details of the customer Database Connection.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciObjectStorageDataSourceConfig.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciObjectStorageDataSourceConfig.java index 4c1deb5d7f6..e06ac3d412d 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciObjectStorageDataSourceConfig.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciObjectStorageDataSourceConfig.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **OciObjectStorageDataSourceConfig** - * - *

The details of OCI Search with OpenSearch data source information.
+ * The details of OCI Search with OpenSearch data source 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 @@ -29,6 +27,14 @@ public final class OciObjectStorageDataSourceConfig extends DataSourceConfig { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("shouldEnableMultiModality") + private Boolean shouldEnableMultiModality; + + public Builder shouldEnableMultiModality(Boolean shouldEnableMultiModality) { + this.shouldEnableMultiModality = shouldEnableMultiModality; + this.__explicitlySet__.add("shouldEnableMultiModality"); + return this; + } /** * The locations of data items in Object Storage, can either be an object (File) or a prefix * (folder). @@ -55,7 +61,8 @@ public Builder objectStoragePrefixes( public OciObjectStorageDataSourceConfig build() { OciObjectStorageDataSourceConfig model = - new OciObjectStorageDataSourceConfig(this.objectStoragePrefixes); + new OciObjectStorageDataSourceConfig( + this.shouldEnableMultiModality, this.objectStoragePrefixes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -64,6 +71,9 @@ public OciObjectStorageDataSourceConfig build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(OciObjectStorageDataSourceConfig model) { + if (model.wasPropertyExplicitlySet("shouldEnableMultiModality")) { + this.shouldEnableMultiModality(model.getShouldEnableMultiModality()); + } if (model.wasPropertyExplicitlySet("objectStoragePrefixes")) { this.objectStoragePrefixes(model.getObjectStoragePrefixes()); } @@ -82,8 +92,9 @@ public Builder toBuilder() { @Deprecated public OciObjectStorageDataSourceConfig( + Boolean shouldEnableMultiModality, java.util.List objectStoragePrefixes) { - super(); + super(shouldEnableMultiModality); this.objectStoragePrefixes = objectStoragePrefixes; } diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciOpenSearchIndexConfig.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciOpenSearchIndexConfig.java index a30bfb81d71..af7273cdcae 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciOpenSearchIndexConfig.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OciOpenSearchIndexConfig.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **OciOpenSearchIndexConfig** - * - *

The details of customer managed OCI OpenSearch.
+ * The details of customer managed OCI OpenSearch.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OperationType.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OperationType.java index f1a917f29ef..182d9688972 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OperationType.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/OperationType.java @@ -24,6 +24,9 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { MoveKnowledgeBase("MOVE_KNOWLEDGE_BASE"), CreateDataIngestionJob("CREATE_DATA_INGESTION_JOB"), DeleteDataIngestionJob("DELETE_DATA_INGESTION_JOB"), + CreateTool("CREATE_TOOL"), + UpdateTool("UPDATE_TOOL"), + DeleteTool("DELETE_TOOL"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SecretDetail.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SecretDetail.java index 36841015687..fa3e1e55db5 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SecretDetail.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SecretDetail.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **SecretDetail** - * - *

The details of configured security configuration on OpenSearch.
+ * The details of configured security configuration on OpenSearch.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SessionConfig.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SessionConfig.java index d53f7b2f522..df01e198fa3 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SessionConfig.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SessionConfig.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **SessionConfig** - * - *

Session Configuration on AgentEndpoint.
+ * Session Configuration on AgentEndpoint.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SortOrder.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SortOrder.java index bb836e8ee17..0a299f7e8c0 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SortOrder.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/SortOrder.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **SortOrder** - * - *

The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The {@code + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The {@code * displayName} sort order is case sensitive. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240531") diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateAgentDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateAgentDetails.java index f572fa4cfcf..126fb5f9ef9 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateAgentDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateAgentDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **UpdateAgentDetails** - * - *

The data to update an agent.
+ * The data to update an agent.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateAgentEndpointDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateAgentEndpointDetails.java index 98ee1113eb4..2ffb8119d99 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateAgentEndpointDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateAgentEndpointDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **UpdateAgentEndpointDetails** - * - *

The data to update an endpoint.
+ * The data to update an endpoint.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateDataSourceDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateDataSourceDetails.java index 2616abd34fd..ad17435c223 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateDataSourceDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateDataSourceDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **UpdateDataSourceDetails** - * - *

The data to update a data source.
+ * The data to update a data source.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateKnowledgeBaseDetails.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateKnowledgeBaseDetails.java index a73339c5908..f291b382c47 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateKnowledgeBaseDetails.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/UpdateKnowledgeBaseDetails.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **UpdateKnowledgeBaseDetails** - * - *

The data to update a knowledge base.
+ * The data to update a knowledge base.
* 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-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequest.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequest.java index 7fe2511d02a..8a5d5a87620 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequest.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequest.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **WorkRequest** - * - *

An asynchronous work request. Work requests help you monitor long-running operations. When you + * An asynchronous work request. Work requests help you monitor long-running operations. When you * start a long-running operation, the service creates a work request. A work request is an activity * log that lets you track each step in the operation's progress. Each work request has an OCID that * lets you interact with it programmatically and use it for automation.
diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestError.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestError.java index 3a36e28c821..e36ce24aaca 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestError.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestError.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **WorkRequestError** - * - *

An error encountered while performing an operation that is tracked by a work request.
+ * An error encountered while performing an operation that is tracked 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestErrorCollection.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestErrorCollection.java index cf189def0c1..0c13fa7d69c 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestErrorCollection.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestErrorCollection.java @@ -5,10 +5,8 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **WorkRequestErrorCollection** - * - *

A list of work request errors. Can contain both errors and other information, such as - * metadata.
+ * A list of work request errors. Can contain both errors 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestLogEntry.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestLogEntry.java index de81a73f711..cd61b754ea6 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestLogEntry.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestLogEntry.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **WorkRequestLogEntry** - * - *

A log message from performing an operation that is tracked by a work request.
+ * A log message from performing an operation that is tracked 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestLogEntryCollection.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestLogEntryCollection.java index 6d4a55b02eb..9665679d1ce 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestLogEntryCollection.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestLogEntryCollection.java @@ -5,10 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **WorkRequestLogEntryCollection** - * - *

A list of work request logs. Can contain both logs and other information, such as metadata. - *
+ * A list of work request logs. Can contain both logs 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestResource.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestResource.java index ade6f57d367..4d4f7da788b 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestResource.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestResource.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **WorkRequestResource** - * - *

A resource created or operated on by a work request.
+ * 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestSummary.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestSummary.java index d08458a8825..9603aed8197 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestSummary.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestSummary.java @@ -5,9 +5,7 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **WorkRequestSummary** - * - *

Summary information about an asynchronous work request.
+ * Summary information about an asynchronous 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 diff --git a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestSummaryCollection.java b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestSummaryCollection.java index 6395a0a5947..5f3aeb55803 100644 --- a/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestSummaryCollection.java +++ b/bmc-generativeaiagent/src/main/java/com/oracle/bmc/generativeaiagent/model/WorkRequestSummaryCollection.java @@ -5,10 +5,8 @@ package com.oracle.bmc.generativeaiagent.model; /** - * **WorkRequestSummaryCollection** - * - *

A list of work requests. Can contain both work requests and other information, such as - * metadata.
+ * A list of work requests. Can contain both work requests 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 diff --git a/bmc-generativeaiagent/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeaiagent/reflect-config.json b/bmc-generativeaiagent/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeaiagent/reflect-config.json index a5f8d5662d6..c592bcf8d85 100644 --- a/bmc-generativeaiagent/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeaiagent/reflect-config.json +++ b/bmc-generativeaiagent/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeaiagent/reflect-config.json @@ -508,6 +508,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeaiagent.model.KnowledgeBaseStatistics", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeaiagent.model.KnowledgeBaseStatistics$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeaiagent.model.KnowledgeBaseSummary", diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index da48082c5ae..fda53bfd8c9 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/GenerativeAiAgentRuntimeAsyncClient.java b/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/GenerativeAiAgentRuntimeAsyncClient.java index 889120f9339..a4b7b3bad09 100644 --- a/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/GenerativeAiAgentRuntimeAsyncClient.java +++ b/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/GenerativeAiAgentRuntimeAsyncClient.java @@ -110,7 +110,7 @@ public java.util.concurrent.Future chat( .serviceDetails( "GenerativeAiAgentRuntime", "Chat", - "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/Chat") + "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/AgentEndpoint/Chat") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChatRequest::builder) .basePath("/20240531") diff --git a/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/GenerativeAiAgentRuntimeClient.java b/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/GenerativeAiAgentRuntimeClient.java index 8e927d07ddb..487ce9e2959 100644 --- a/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/GenerativeAiAgentRuntimeClient.java +++ b/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/GenerativeAiAgentRuntimeClient.java @@ -97,7 +97,7 @@ public ChatResponse chat(ChatRequest request) { .serviceDetails( "GenerativeAiAgentRuntime", "Chat", - "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/Chat") + "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/AgentEndpoint/Chat") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChatRequest::builder) .basePath("/20240531") diff --git a/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/model/ChatDetails.java b/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/model/ChatDetails.java index 0f0e57aa49b..0e5aed0d94c 100644 --- a/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/model/ChatDetails.java +++ b/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/model/ChatDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaiagentruntime.model; /** - * Chat details.
+ * Chat details for managing user interactions and tool executions.
* 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-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/model/Citation.java b/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/model/Citation.java index ccbe72e4b75..93d2b226fd4 100644 --- a/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/model/Citation.java +++ b/bmc-generativeaiagentruntime/src/main/java/com/oracle/bmc/generativeaiagentruntime/model/Citation.java @@ -22,11 +22,25 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class Citation extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"sourceText", "sourceLocation"}) - public Citation(String sourceText, SourceLocation sourceLocation) { + @java.beans.ConstructorProperties({ + "sourceText", + "sourceLocation", + "title", + "docId", + "pageNumbers" + }) + public Citation( + String sourceText, + SourceLocation sourceLocation, + String title, + String docId, + java.util.List pageNumbers) { super(); this.sourceText = sourceText; this.sourceLocation = sourceLocation; + this.title = title; + this.docId = docId; + this.pageNumbers = pageNumbers; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -55,12 +69,63 @@ public Builder sourceLocation(SourceLocation sourceLocation) { this.__explicitlySet__.add("sourceLocation"); return this; } + /** The title of the source text, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("title") + private String title; + + /** + * The title of the source text, if available. + * + * @param title the value to set + * @return this builder + */ + public Builder title(String title) { + this.title = title; + this.__explicitlySet__.add("title"); + return this; + } + /** The id of the retrieved document, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("docId") + private String docId; + + /** + * The id of the retrieved document, if available. + * + * @param docId the value to set + * @return this builder + */ + public Builder docId(String docId) { + this.docId = docId; + this.__explicitlySet__.add("docId"); + return this; + } + /** The page numbers on the retrieved document, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("pageNumbers") + private java.util.List pageNumbers; + + /** + * The page numbers on the retrieved document, if available. + * + * @param pageNumbers the value to set + * @return this builder + */ + public Builder pageNumbers(java.util.List pageNumbers) { + this.pageNumbers = pageNumbers; + this.__explicitlySet__.add("pageNumbers"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public Citation build() { - Citation model = new Citation(this.sourceText, this.sourceLocation); + Citation model = + new Citation( + this.sourceText, + this.sourceLocation, + this.title, + this.docId, + this.pageNumbers); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -75,6 +140,15 @@ public Builder copy(Citation model) { if (model.wasPropertyExplicitlySet("sourceLocation")) { this.sourceLocation(model.getSourceLocation()); } + if (model.wasPropertyExplicitlySet("title")) { + this.title(model.getTitle()); + } + if (model.wasPropertyExplicitlySet("docId")) { + this.docId(model.getDocId()); + } + if (model.wasPropertyExplicitlySet("pageNumbers")) { + this.pageNumbers(model.getPageNumbers()); + } return this; } } @@ -108,6 +182,45 @@ public SourceLocation getSourceLocation() { return sourceLocation; } + /** The title of the source text, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("title") + private final String title; + + /** + * The title of the source text, if available. + * + * @return the value + */ + public String getTitle() { + return title; + } + + /** The id of the retrieved document, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("docId") + private final String docId; + + /** + * The id of the retrieved document, if available. + * + * @return the value + */ + public String getDocId() { + return docId; + } + + /** The page numbers on the retrieved document, if available. */ + @com.fasterxml.jackson.annotation.JsonProperty("pageNumbers") + private final java.util.List pageNumbers; + + /** + * The page numbers on the retrieved document, if available. + * + * @return the value + */ + public java.util.List getPageNumbers() { + return pageNumbers; + } + @Override public String toString() { return this.toString(true); @@ -125,6 +238,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("sourceText=").append(String.valueOf(this.sourceText)); sb.append(", sourceLocation=").append(String.valueOf(this.sourceLocation)); + sb.append(", title=").append(String.valueOf(this.title)); + sb.append(", docId=").append(String.valueOf(this.docId)); + sb.append(", pageNumbers=").append(String.valueOf(this.pageNumbers)); sb.append(")"); return sb.toString(); } @@ -141,6 +257,9 @@ public boolean equals(Object o) { Citation other = (Citation) o; return java.util.Objects.equals(this.sourceText, other.sourceText) && java.util.Objects.equals(this.sourceLocation, other.sourceLocation) + && java.util.Objects.equals(this.title, other.title) + && java.util.Objects.equals(this.docId, other.docId) + && java.util.Objects.equals(this.pageNumbers, other.pageNumbers) && super.equals(other); } @@ -152,6 +271,9 @@ public int hashCode() { result = (result * PRIME) + (this.sourceLocation == null ? 43 : this.sourceLocation.hashCode()); + result = (result * PRIME) + (this.title == null ? 43 : this.title.hashCode()); + result = (result * PRIME) + (this.docId == null ? 43 : this.docId.hashCode()); + result = (result * PRIME) + (this.pageNumbers == null ? 43 : this.pageNumbers.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index a75d125e2da..6b7185105fb 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 1d0ae630c33..e11cac14219 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-globallydistributeddatabase/pom.xml b/bmc-globallydistributeddatabase/pom.xml index f2aa0e1ba92..7ea3c56ae92 100644 --- a/bmc-globallydistributeddatabase/pom.xml +++ b/bmc-globallydistributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-globallydistributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index 833836220f0..1d8bfa06f63 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java index 167c95df02b..ce9a98a169d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGate.java @@ -244,6 +244,26 @@ ChangeDeploymentBackupCompartmentResponse changeDeploymentBackupCompartment( ChangeDeploymentCompartmentResponse changeDeploymentCompartment( ChangeDeploymentCompartmentRequest request); + /** + * Moves the Pipeline into a different compartment within the same tenancy. When provided, + * If-Match is checked against ETag values of the resource. For information about moving + * resources between compartments, see [Moving Resources Between + * Compartments](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @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 + * ChangePipelineCompartment API. + */ + ChangePipelineCompartmentResponse changePipelineCompartment( + ChangePipelineCompartmentRequest request); + /** * Collects the diagnostic of a Deployment. When provided, If-Match is checked against ETag * values of the resource. @@ -376,6 +396,21 @@ CreateDatabaseRegistrationResponse createDatabaseRegistration( */ CreateDeploymentBackupResponse createDeploymentBackup(CreateDeploymentBackupRequest request); + /** + * Creates a new Pipeline. + * + * @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 CreatePipeline API. + */ + CreatePipelineResponse createPipeline(CreatePipelineRequest request); + /** * Deletes the certificate from truststore. * @@ -474,6 +509,21 @@ DeleteDatabaseRegistrationResponse deleteDatabaseRegistration( */ DeleteDeploymentBackupResponse deleteDeploymentBackup(DeleteDeploymentBackupRequest request); + /** + * Deletes a Pipeline. + * + * @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 DeletePipeline API. + */ + DeletePipelineResponse deletePipeline(DeletePipelineRequest request); + /** * Checks if a wallet is already present in the deployment. When provided, If-Match is checked * against ETag values of the resource. @@ -635,6 +685,21 @@ DeleteDatabaseRegistrationResponse deleteDatabaseRegistration( */ GetDeploymentUpgradeResponse getDeploymentUpgrade(GetDeploymentUpgradeRequest request); + /** + * Retrieves a Pipeline details. + * + * @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 GetPipeline API. + */ + GetPipelineResponse getPipeline(GetPipelineRequest request); + /** * Retrieve the WorkRequest identified by the given OCID. * @@ -864,6 +929,104 @@ ListDeploymentWalletsOperationsResponse listDeploymentWalletsOperations( */ ListMessagesResponse listMessages(ListMessagesRequest request); + /** + * Retrieves a Pipeline recipe steps and its progress details. + * + * @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 + * ListPipelineInitializationSteps API. + */ + ListPipelineInitializationStepsResponse listPipelineInitializationSteps( + ListPipelineInitializationStepsRequest request); + + /** + * Retrieves a Pipeline's running replication process's status like extracts/replicats. + * + * @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 + * ListPipelineRunningProcesses API. + */ + ListPipelineRunningProcessesResponse listPipelineRunningProcesses( + ListPipelineRunningProcessesRequest request); + + /** + * Returns an array of tables under the given schemas of the pipeline for given source and + * target schemas passed as query params. + * + * @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 + * ListPipelineSchemaTables API. + */ + ListPipelineSchemaTablesResponse listPipelineSchemaTables( + ListPipelineSchemaTablesRequest request); + + /** + * Returns an array of schemas based on mapping rules for a pipeline. + * + * @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 ListPipelineSchemas + * API. + */ + ListPipelineSchemasResponse listPipelineSchemas(ListPipelineSchemasRequest request); + + /** + * Lists the Pipelines in the 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 ListPipelines API. + */ + ListPipelinesResponse listPipelines(ListPipelinesRequest request); + + /** + * Returns an array of Recipe Summary. + * + * @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 ListRecipes API. + */ + ListRecipesResponse listRecipes(ListRecipesRequest request); + /** * Lists the TrailFiles for a deployment. Deprecated: Please access trail file management * functions directly on OGG console which are available since version Oracle GoldenGate 23c. @@ -1096,6 +1259,21 @@ RollbackDeploymentUpgradeResponse rollbackDeploymentUpgrade( */ StartDeploymentResponse startDeployment(StartDeploymentRequest request); + /** + * Starts the pipeline for data replication. + * + * @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 StartPipeline API. + */ + StartPipelineResponse startPipeline(StartPipelineRequest request); + /** * Stops a Deployment. When provided, If-Match is checked against ETag values of the resource. * @@ -1111,6 +1289,21 @@ RollbackDeploymentUpgradeResponse rollbackDeploymentUpgrade( */ StopDeploymentResponse stopDeployment(StopDeploymentRequest request); + /** + * Stops the pipeline for data replication. + * + * @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 StopPipeline API. + */ + StopPipelineResponse stopPipeline(StopPipelineRequest request); + /** * Tests the connectivity between given GoldenGate deployment and one of the associated database * / service. When provided, If-Match is checked against ETag values of the resource. @@ -1129,6 +1322,23 @@ RollbackDeploymentUpgradeResponse rollbackDeploymentUpgrade( TestConnectionAssignmentResponse testConnectionAssignment( TestConnectionAssignmentRequest request); + /** + * Tests pipeline connections against pipeline to verify the connectivity. When provided, + * If-Match is checked against ETag values of the 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 + * TestPipelineConnection API. + */ + TestPipelineConnectionResponse testPipelineConnection(TestPipelineConnectionRequest request); + /** * Updates the Connection. * @@ -1194,6 +1404,21 @@ UpdateDatabaseRegistrationResponse updateDatabaseRegistration( */ UpdateDeploymentBackupResponse updateDeploymentBackup(UpdateDeploymentBackupRequest request); + /** + * Updates the Pipeline. + * + * @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 UpdatePipeline API. + */ + UpdatePipelineResponse updatePipeline(UpdatePipelineRequest request); + /** * Upgrade a Deployment. When provided, If-Match is checked against ETag values of the resource. * diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java index 28e56686ae7..9e306ef5711 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsync.java @@ -240,6 +240,25 @@ java.util.concurrent.Future changeDeploymen ChangeDeploymentCompartmentRequest, ChangeDeploymentCompartmentResponse> handler); + /** + * Moves the Pipeline into a different compartment within the same tenancy. When provided, + * If-Match is checked against ETag values of the resource. For information about moving + * resources between compartments, see [Moving Resources Between + * Compartments](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @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 changePipelineCompartment( + ChangePipelineCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangePipelineCompartmentRequest, ChangePipelineCompartmentResponse> + handler); + /** * Collects the diagnostic of a Deployment. When provided, If-Match is checked against ETag * values of the resource. @@ -367,6 +386,21 @@ java.util.concurrent.Future createDeploymentBack CreateDeploymentBackupRequest, CreateDeploymentBackupResponse> handler); + /** + * Creates a new Pipeline. + * + * @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 createPipeline( + CreatePipelineRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Deletes the certificate from truststore. * @@ -461,6 +495,21 @@ java.util.concurrent.Future deleteDeploymentBack DeleteDeploymentBackupRequest, DeleteDeploymentBackupResponse> handler); + /** + * Deletes a Pipeline. + * + * @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 deletePipeline( + DeletePipelineRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Checks if a wallet is already present in the deployment. When provided, If-Match is checked * against ETag values of the resource. @@ -622,6 +671,20 @@ java.util.concurrent.Future getDeploymentUpgrade( GetDeploymentUpgradeRequest, GetDeploymentUpgradeResponse> handler); + /** + * Retrieves a Pipeline details. + * + * @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 getPipeline( + GetPipelineRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Retrieve the WorkRequest identified by the given OCID. * @@ -846,6 +909,103 @@ java.util.concurrent.Future listMessages( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Retrieves a Pipeline recipe steps and its progress details. + * + * @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 + listPipelineInitializationSteps( + ListPipelineInitializationStepsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListPipelineInitializationStepsRequest, + ListPipelineInitializationStepsResponse> + handler); + + /** + * Retrieves a Pipeline's running replication process's status like extracts/replicats. + * + * @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 listPipelineRunningProcesses( + ListPipelineRunningProcessesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListPipelineRunningProcessesRequest, + ListPipelineRunningProcessesResponse> + handler); + + /** + * Returns an array of tables under the given schemas of the pipeline for given source and + * target schemas passed as query params. + * + * @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 listPipelineSchemaTables( + ListPipelineSchemaTablesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListPipelineSchemaTablesRequest, ListPipelineSchemaTablesResponse> + handler); + + /** + * Returns an array of schemas based on mapping rules for a pipeline. + * + * @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 listPipelineSchemas( + ListPipelineSchemasRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListPipelineSchemasRequest, ListPipelineSchemasResponse> + handler); + + /** + * Lists the Pipelines in the 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 listPipelines( + ListPipelinesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns an array of Recipe Summary. + * + * @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 listRecipes( + ListRecipesRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Lists the TrailFiles for a deployment. Deprecated: Please access trail file management * functions directly on OGG console which are available since version Oracle GoldenGate 23c. @@ -1073,6 +1233,21 @@ java.util.concurrent.Future startDeployment( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Starts the pipeline for data replication. + * + * @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 startPipeline( + StartPipelineRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Stops a Deployment. When provided, If-Match is checked against ETag values of the resource. * @@ -1088,6 +1263,21 @@ java.util.concurrent.Future stopDeployment( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Stops the pipeline for data replication. + * + * @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 stopPipeline( + StopPipelineRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Tests the connectivity between given GoldenGate deployment and one of the associated database * / service. When provided, If-Match is checked against ETag values of the resource. @@ -1105,6 +1295,23 @@ java.util.concurrent.Future testConnectionAssi TestConnectionAssignmentRequest, TestConnectionAssignmentResponse> handler); + /** + * Tests pipeline connections against pipeline to verify the connectivity. When provided, + * If-Match is checked against ETag values of the 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 testPipelineConnection( + TestPipelineConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler< + TestPipelineConnectionRequest, TestPipelineConnectionResponse> + handler); + /** * Updates the Connection. * @@ -1167,6 +1374,21 @@ java.util.concurrent.Future updateDeploymentBack UpdateDeploymentBackupRequest, UpdateDeploymentBackupResponse> handler); + /** + * Updates the Pipeline. + * + * @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 updatePipeline( + UpdatePipelineRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Upgrade a Deployment. When provided, If-Match is checked against ETag values of the resource. * diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java index e98ea9c3942..fde11b181ee 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateAsyncClient.java @@ -487,6 +487,45 @@ public java.util.concurrent.Future cancelDeploy .callAsync(handler); } + @Override + public java.util.concurrent.Future changePipelineCompartment( + ChangePipelineCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangePipelineCompartmentRequest, ChangePipelineCompartmentResponse> + handler) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull( + request.getChangePipelineCompartmentDetails(), + "changePipelineCompartmentDetails is required"); + + return clientCall(request, ChangePipelineCompartmentResponse::builder) + .logger(LOG, "changePipelineCompartment") + .serviceDetails( + "GoldenGate", + "ChangePipelineCompartment", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ChangePipelineCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangePipelineCompartmentRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .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", + ChangePipelineCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ChangePipelineCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future collectDeploymentDiagnostic( @@ -789,6 +828,40 @@ public java.util.concurrent.Future createDeploym .callAsync(handler); } + @Override + public java.util.concurrent.Future createPipeline( + CreatePipelineRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreatePipelineRequest, CreatePipelineResponse> + handler) { + Objects.requireNonNull( + request.getCreatePipelineDetails(), "createPipelineDetails is required"); + + return clientCall(request, CreatePipelineResponse::builder) + .logger(LOG, "createPipeline") + .serviceDetails( + "GoldenGate", + "CreatePipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/CreatePipeline") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreatePipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.goldengate.model.Pipeline.class, + CreatePipelineResponse.Builder::pipeline) + .handleResponseHeaderString( + "opc-work-request-id", CreatePipelineResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreatePipelineResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreatePipelineResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteCertificate( DeleteCertificateRequest request, @@ -989,6 +1062,37 @@ public java.util.concurrent.Future deleteDeploym .callAsync(handler); } + @Override + public java.util.concurrent.Future deletePipeline( + DeletePipelineRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeletePipelineRequest, DeletePipelineResponse> + handler) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + + return clientCall(request, DeletePipelineResponse::builder) + .logger(LOG, "deletePipeline") + .serviceDetails( + "GoldenGate", + "DeletePipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/DeletePipeline") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeletePipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", DeletePipelineResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeletePipelineResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deploymentWalletExists( DeploymentWalletExistsRequest request, @@ -1329,6 +1433,36 @@ public java.util.concurrent.Future getDeploymentUp .callAsync(handler); } + @Override + public java.util.concurrent.Future getPipeline( + GetPipelineRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + + return clientCall(request, GetPipelineResponse::builder) + .logger(LOG, "getPipeline") + .serviceDetails( + "GoldenGate", + "GetPipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/GetPipeline") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetPipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.goldengate.model.Pipeline.class, + GetPipelineResponse.Builder::pipeline) + .handleResponseHeaderString("etag", GetPipelineResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetPipelineResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getWorkRequest( GetWorkRequestRequest request, @@ -1869,6 +2003,238 @@ public java.util.concurrent.Future listMessages( .callAsync(handler); } + @Override + public java.util.concurrent.Future + listPipelineInitializationSteps( + ListPipelineInitializationStepsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListPipelineInitializationStepsRequest, + ListPipelineInitializationStepsResponse> + handler) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + + return clientCall(request, ListPipelineInitializationStepsResponse::builder) + .logger(LOG, "listPipelineInitializationSteps") + .serviceDetails( + "GoldenGate", + "ListPipelineInitializationSteps", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineInitializationSteps") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPipelineInitializationStepsRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("initializationSteps") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.goldengate.model.PipelineInitializationSteps.class, + ListPipelineInitializationStepsResponse.Builder + ::pipelineInitializationSteps) + .handleResponseHeaderString( + "etag", ListPipelineInitializationStepsResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + ListPipelineInitializationStepsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listPipelineRunningProcesses( + ListPipelineRunningProcessesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListPipelineRunningProcessesRequest, + ListPipelineRunningProcessesResponse> + handler) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + + return clientCall(request, ListPipelineRunningProcessesResponse::builder) + .logger(LOG, "listPipelineRunningProcesses") + .serviceDetails( + "GoldenGate", + "ListPipelineRunningProcesses", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineRunningProcesses") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPipelineRunningProcessesRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("runningProcesses") + .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.goldengate.model.PipelineRunningProcessCollection.class, + ListPipelineRunningProcessesResponse.Builder + ::pipelineRunningProcessCollection) + .handleResponseHeaderString( + "opc-next-page", ListPipelineRunningProcessesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", + ListPipelineRunningProcessesResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listPipelineSchemaTables( + ListPipelineSchemaTablesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListPipelineSchemaTablesRequest, ListPipelineSchemaTablesResponse> + handler) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull(request.getSourceSchemaName(), "sourceSchemaName is required"); + + Objects.requireNonNull(request.getTargetSchemaName(), "targetSchemaName is required"); + + return clientCall(request, ListPipelineSchemaTablesResponse::builder) + .logger(LOG, "listPipelineSchemaTables") + .serviceDetails( + "GoldenGate", + "ListPipelineSchemaTables", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineSchemaTables") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPipelineSchemaTablesRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("schemaTables") + .appendQueryParam("sourceSchemaName", request.getSourceSchemaName()) + .appendQueryParam("targetSchemaName", request.getTargetSchemaName()) + .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.goldengate.model.PipelineSchemaTableCollection.class, + ListPipelineSchemaTablesResponse.Builder::pipelineSchemaTableCollection) + .handleResponseHeaderString( + "opc-request-id", ListPipelineSchemaTablesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPipelineSchemaTablesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listPipelineSchemas( + ListPipelineSchemasRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListPipelineSchemasRequest, ListPipelineSchemasResponse> + handler) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + + return clientCall(request, ListPipelineSchemasResponse::builder) + .logger(LOG, "listPipelineSchemas") + .serviceDetails( + "GoldenGate", + "ListPipelineSchemas", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineSchemas") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPipelineSchemasRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("schemas") + .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.goldengate.model.PipelineSchemaCollection.class, + ListPipelineSchemasResponse.Builder::pipelineSchemaCollection) + .handleResponseHeaderString( + "opc-request-id", ListPipelineSchemasResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPipelineSchemasResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listPipelines( + ListPipelinesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListPipelinesResponse::builder) + .logger(LOG, "listPipelines") + .serviceDetails( + "GoldenGate", + "ListPipelines", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelines") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPipelinesRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("lifecycleSubState", request.getLifecycleSubState()) + .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.goldengate.model.PipelineCollection.class, + ListPipelinesResponse.Builder::pipelineCollection) + .handleResponseHeaderString( + "opc-request-id", ListPipelinesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPipelinesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listRecipes( + ListRecipesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListRecipesResponse::builder) + .logger(LOG, "listRecipes") + .serviceDetails( + "GoldenGate", + "ListRecipes", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/RecipeSummaryCollection/ListRecipes") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRecipesRequest::builder) + .basePath("/20200407") + .appendPathParam("recipes") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("recipeType", request.getRecipeType()) + .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.goldengate.model.RecipeSummaryCollection.class, + ListRecipesResponse.Builder::recipeSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListRecipesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListRecipesResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listTrailFiles( ListTrailFilesRequest request, @@ -2393,6 +2759,42 @@ public java.util.concurrent.Future startDeployment( .callAsync(handler); } + @Override + public java.util.concurrent.Future startPipeline( + StartPipelineRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull( + request.getStartPipelineDetails(), "startPipelineDetails is required"); + + return clientCall(request, StartPipelineResponse::builder) + .logger(LOG, "startPipeline") + .serviceDetails( + "GoldenGate", + "StartPipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/StartPipeline") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StartPipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("actions") + .appendPathParam("start") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .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", StartPipelineResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StartPipelineResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future stopDeployment( StopDeploymentRequest request, @@ -2430,6 +2832,41 @@ public java.util.concurrent.Future stopDeployment( .callAsync(handler); } + @Override + public java.util.concurrent.Future stopPipeline( + StopPipelineRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull(request.getStopPipelineDetails(), "stopPipelineDetails is required"); + + return clientCall(request, StopPipelineResponse::builder) + .logger(LOG, "stopPipeline") + .serviceDetails( + "GoldenGate", + "StopPipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/StopPipeline") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StopPipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("actions") + .appendPathParam("stop") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .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", StopPipelineResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StopPipelineResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future testConnectionAssignment( TestConnectionAssignmentRequest request, @@ -2470,6 +2907,45 @@ public java.util.concurrent.Future testConnect .callAsync(handler); } + @Override + public java.util.concurrent.Future testPipelineConnection( + TestPipelineConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + TestPipelineConnectionRequest, TestPipelineConnectionResponse> + handler) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull( + request.getTestPipelineConnectionDetails(), + "testPipelineConnectionDetails is required"); + + return clientCall(request, TestPipelineConnectionResponse::builder) + .logger(LOG, "testPipelineConnection") + .serviceDetails( + "GoldenGate", + "TestPipelineConnection", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/TestPipelineConnection") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(TestPipelineConnectionRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("actions") + .appendPathParam("testConnection") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.goldengate.model.TestPipelineConnectionResult.class, + TestPipelineConnectionResponse.Builder::testPipelineConnectionResult) + .handleResponseHeaderString( + "opc-request-id", TestPipelineConnectionResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", TestPipelineConnectionResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateConnection( UpdateConnectionRequest request, @@ -2615,6 +3091,40 @@ public java.util.concurrent.Future updateDeploym .callAsync(handler); } + @Override + public java.util.concurrent.Future updatePipeline( + UpdatePipelineRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdatePipelineRequest, UpdatePipelineResponse> + handler) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull( + request.getUpdatePipelineDetails(), "updatePipelineDetails is required"); + + return clientCall(request, UpdatePipelineResponse::builder) + .logger(LOG, "updatePipeline") + .serviceDetails( + "GoldenGate", + "UpdatePipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/UpdatePipeline") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdatePipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", UpdatePipelineResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdatePipelineResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future upgradeDeployment( UpgradeDeploymentRequest request, diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java index f006a41c25d..021a84161fc 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateClient.java @@ -483,6 +483,43 @@ public ChangeDeploymentCompartmentResponse changeDeploymentCompartment( .callSync(); } + @Override + public ChangePipelineCompartmentResponse changePipelineCompartment( + ChangePipelineCompartmentRequest request) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull( + request.getChangePipelineCompartmentDetails(), + "changePipelineCompartmentDetails is required"); + + return clientCall(request, ChangePipelineCompartmentResponse::builder) + .logger(LOG, "changePipelineCompartment") + .serviceDetails( + "GoldenGate", + "ChangePipelineCompartment", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ChangePipelineCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangePipelineCompartmentRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .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", + ChangePipelineCompartmentResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ChangePipelineCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CollectDeploymentDiagnosticResponse collectDeploymentDiagnostic( CollectDeploymentDiagnosticRequest request) { @@ -759,6 +796,37 @@ public CreateDeploymentBackupResponse createDeploymentBackup( .callSync(); } + @Override + public CreatePipelineResponse createPipeline(CreatePipelineRequest request) { + Objects.requireNonNull( + request.getCreatePipelineDetails(), "createPipelineDetails is required"); + + return clientCall(request, CreatePipelineResponse::builder) + .logger(LOG, "createPipeline") + .serviceDetails( + "GoldenGate", + "CreatePipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/CreatePipeline") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreatePipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.goldengate.model.Pipeline.class, + CreatePipelineResponse.Builder::pipeline) + .handleResponseHeaderString( + "opc-work-request-id", CreatePipelineResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreatePipelineResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", CreatePipelineResponse.Builder::etag) + .callSync(); + } + @Override public DeleteCertificateResponse deleteCertificate(DeleteCertificateRequest request) { @@ -940,6 +1008,34 @@ public DeleteDeploymentBackupResponse deleteDeploymentBackup( .callSync(); } + @Override + public DeletePipelineResponse deletePipeline(DeletePipelineRequest request) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + + return clientCall(request, DeletePipelineResponse::builder) + .logger(LOG, "deletePipeline") + .serviceDetails( + "GoldenGate", + "DeletePipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/DeletePipeline") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeletePipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", DeletePipelineResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeletePipelineResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeploymentWalletExistsResponse deploymentWalletExists( DeploymentWalletExistsRequest request) { @@ -1256,6 +1352,34 @@ public GetDeploymentUpgradeResponse getDeploymentUpgrade(GetDeploymentUpgradeReq .callSync(); } + @Override + public GetPipelineResponse getPipeline(GetPipelineRequest request) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + + return clientCall(request, GetPipelineResponse::builder) + .logger(LOG, "getPipeline") + .serviceDetails( + "GoldenGate", + "GetPipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/GetPipeline") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetPipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.goldengate.model.Pipeline.class, + GetPipelineResponse.Builder::pipeline) + .handleResponseHeaderString("etag", GetPipelineResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetPipelineResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { @@ -1759,6 +1883,221 @@ public ListMessagesResponse listMessages(ListMessagesRequest request) { .callSync(); } + @Override + public ListPipelineInitializationStepsResponse listPipelineInitializationSteps( + ListPipelineInitializationStepsRequest request) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + + return clientCall(request, ListPipelineInitializationStepsResponse::builder) + .logger(LOG, "listPipelineInitializationSteps") + .serviceDetails( + "GoldenGate", + "ListPipelineInitializationSteps", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineInitializationSteps") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPipelineInitializationStepsRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("initializationSteps") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.goldengate.model.PipelineInitializationSteps.class, + ListPipelineInitializationStepsResponse.Builder + ::pipelineInitializationSteps) + .handleResponseHeaderString( + "etag", ListPipelineInitializationStepsResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + ListPipelineInitializationStepsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListPipelineRunningProcessesResponse listPipelineRunningProcesses( + ListPipelineRunningProcessesRequest request) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + + return clientCall(request, ListPipelineRunningProcessesResponse::builder) + .logger(LOG, "listPipelineRunningProcesses") + .serviceDetails( + "GoldenGate", + "ListPipelineRunningProcesses", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineRunningProcesses") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPipelineRunningProcessesRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("runningProcesses") + .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.goldengate.model.PipelineRunningProcessCollection.class, + ListPipelineRunningProcessesResponse.Builder + ::pipelineRunningProcessCollection) + .handleResponseHeaderString( + "opc-next-page", ListPipelineRunningProcessesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", + ListPipelineRunningProcessesResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListPipelineSchemaTablesResponse listPipelineSchemaTables( + ListPipelineSchemaTablesRequest request) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull(request.getSourceSchemaName(), "sourceSchemaName is required"); + + Objects.requireNonNull(request.getTargetSchemaName(), "targetSchemaName is required"); + + return clientCall(request, ListPipelineSchemaTablesResponse::builder) + .logger(LOG, "listPipelineSchemaTables") + .serviceDetails( + "GoldenGate", + "ListPipelineSchemaTables", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineSchemaTables") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPipelineSchemaTablesRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("schemaTables") + .appendQueryParam("sourceSchemaName", request.getSourceSchemaName()) + .appendQueryParam("targetSchemaName", request.getTargetSchemaName()) + .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.goldengate.model.PipelineSchemaTableCollection.class, + ListPipelineSchemaTablesResponse.Builder::pipelineSchemaTableCollection) + .handleResponseHeaderString( + "opc-request-id", ListPipelineSchemaTablesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPipelineSchemaTablesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListPipelineSchemasResponse listPipelineSchemas(ListPipelineSchemasRequest request) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + + return clientCall(request, ListPipelineSchemasResponse::builder) + .logger(LOG, "listPipelineSchemas") + .serviceDetails( + "GoldenGate", + "ListPipelineSchemas", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineSchemas") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPipelineSchemasRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("schemas") + .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.goldengate.model.PipelineSchemaCollection.class, + ListPipelineSchemasResponse.Builder::pipelineSchemaCollection) + .handleResponseHeaderString( + "opc-request-id", ListPipelineSchemasResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPipelineSchemasResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListPipelinesResponse listPipelines(ListPipelinesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListPipelinesResponse::builder) + .logger(LOG, "listPipelines") + .serviceDetails( + "GoldenGate", + "ListPipelines", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelines") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListPipelinesRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("lifecycleSubState", request.getLifecycleSubState()) + .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.goldengate.model.PipelineCollection.class, + ListPipelinesResponse.Builder::pipelineCollection) + .handleResponseHeaderString( + "opc-request-id", ListPipelinesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListPipelinesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListRecipesResponse listRecipes(ListRecipesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListRecipesResponse::builder) + .logger(LOG, "listRecipes") + .serviceDetails( + "GoldenGate", + "ListRecipes", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/RecipeSummaryCollection/ListRecipes") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListRecipesRequest::builder) + .basePath("/20200407") + .appendPathParam("recipes") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("recipeType", request.getRecipeType()) + .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.goldengate.model.RecipeSummaryCollection.class, + ListRecipesResponse.Builder::recipeSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListRecipesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListRecipesResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListTrailFilesResponse listTrailFiles(ListTrailFilesRequest request) { Objects.requireNonNull(request.getDeploymentId(), "deploymentId is required"); @@ -2242,6 +2581,40 @@ public StartDeploymentResponse startDeployment(StartDeploymentRequest request) { .callSync(); } + @Override + public StartPipelineResponse startPipeline(StartPipelineRequest request) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull( + request.getStartPipelineDetails(), "startPipelineDetails is required"); + + return clientCall(request, StartPipelineResponse::builder) + .logger(LOG, "startPipeline") + .serviceDetails( + "GoldenGate", + "StartPipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/StartPipeline") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StartPipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("actions") + .appendPathParam("start") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .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", StartPipelineResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StartPipelineResponse.Builder::opcRequestId) + .callSync(); + } + @Override public StopDeploymentResponse stopDeployment(StopDeploymentRequest request) { @@ -2276,6 +2649,39 @@ public StopDeploymentResponse stopDeployment(StopDeploymentRequest request) { .callSync(); } + @Override + public StopPipelineResponse stopPipeline(StopPipelineRequest request) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull(request.getStopPipelineDetails(), "stopPipelineDetails is required"); + + return clientCall(request, StopPipelineResponse::builder) + .logger(LOG, "stopPipeline") + .serviceDetails( + "GoldenGate", + "StopPipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/StopPipeline") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StopPipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("actions") + .appendPathParam("stop") + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .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", StopPipelineResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StopPipelineResponse.Builder::opcRequestId) + .callSync(); + } + @Override public TestConnectionAssignmentResponse testConnectionAssignment( TestConnectionAssignmentRequest request) { @@ -2314,6 +2720,43 @@ public TestConnectionAssignmentResponse testConnectionAssignment( .callSync(); } + @Override + public TestPipelineConnectionResponse testPipelineConnection( + TestPipelineConnectionRequest request) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull( + request.getTestPipelineConnectionDetails(), + "testPipelineConnectionDetails is required"); + + return clientCall(request, TestPipelineConnectionResponse::builder) + .logger(LOG, "testPipelineConnection") + .serviceDetails( + "GoldenGate", + "TestPipelineConnection", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/TestPipelineConnection") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(TestPipelineConnectionRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendPathParam("actions") + .appendPathParam("testConnection") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.goldengate.model.TestPipelineConnectionResult.class, + TestPipelineConnectionResponse.Builder::testPipelineConnectionResult) + .handleResponseHeaderString( + "opc-request-id", TestPipelineConnectionResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", TestPipelineConnectionResponse.Builder::etag) + .callSync(); + } + @Override public UpdateConnectionResponse updateConnection(UpdateConnectionRequest request) { @@ -2447,6 +2890,37 @@ public UpdateDeploymentBackupResponse updateDeploymentBackup( .callSync(); } + @Override + public UpdatePipelineResponse updatePipeline(UpdatePipelineRequest request) { + + Validate.notBlank(request.getPipelineId(), "pipelineId must not be blank"); + Objects.requireNonNull( + request.getUpdatePipelineDetails(), "updatePipelineDetails is required"); + + return clientCall(request, UpdatePipelineResponse::builder) + .logger(LOG, "updatePipeline") + .serviceDetails( + "GoldenGate", + "UpdatePipeline", + "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/UpdatePipeline") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdatePipelineRequest::builder) + .basePath("/20200407") + .appendPathParam("pipelines") + .appendPathParam(request.getPipelineId()) + .appendQueryParam("isLockOverride", request.getIsLockOverride()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", UpdatePipelineResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdatePipelineResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpgradeDeploymentResponse upgradeDeployment(UpgradeDeploymentRequest request) { diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGatePaginators.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGatePaginators.java index 9438aac98e9..dc54515a14d 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGatePaginators.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGatePaginators.java @@ -1377,6 +1377,605 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listPipelineRunningProcesses 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 + listPipelineRunningProcessesResponseIterator( + final ListPipelineRunningProcessesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListPipelineRunningProcessesRequest.Builder, + ListPipelineRunningProcessesRequest, + ListPipelineRunningProcessesResponse>( + new java.util.function.Supplier() { + @Override + public ListPipelineRunningProcessesRequest.Builder get() { + return ListPipelineRunningProcessesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPipelineRunningProcessesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineRunningProcessesRequest.Builder>, + ListPipelineRunningProcessesRequest>() { + @Override + public ListPipelineRunningProcessesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineRunningProcessesRequest.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< + ListPipelineRunningProcessesRequest, + ListPipelineRunningProcessesResponse>() { + @Override + public ListPipelineRunningProcessesResponse apply( + ListPipelineRunningProcessesRequest request) { + return client.listPipelineRunningProcesses(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.goldengate.model.PipelineRunningProcessSummary} objects contained in responses + * from the listPipelineRunningProcesses 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.goldengate.model.PipelineRunningProcessSummary} objects contained in + * responses received from the service. + */ + public Iterable + listPipelineRunningProcessesRecordIterator( + final ListPipelineRunningProcessesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListPipelineRunningProcessesRequest.Builder, + ListPipelineRunningProcessesRequest, + ListPipelineRunningProcessesResponse, + com.oracle.bmc.goldengate.model.PipelineRunningProcessSummary>( + new java.util.function.Supplier() { + @Override + public ListPipelineRunningProcessesRequest.Builder get() { + return ListPipelineRunningProcessesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPipelineRunningProcessesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineRunningProcessesRequest.Builder>, + ListPipelineRunningProcessesRequest>() { + @Override + public ListPipelineRunningProcessesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineRunningProcessesRequest.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< + ListPipelineRunningProcessesRequest, + ListPipelineRunningProcessesResponse>() { + @Override + public ListPipelineRunningProcessesResponse apply( + ListPipelineRunningProcessesRequest request) { + return client.listPipelineRunningProcesses(request); + } + }, + new java.util.function.Function< + ListPipelineRunningProcessesResponse, + java.util.List< + com.oracle.bmc.goldengate.model.PipelineRunningProcessSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.goldengate.model.PipelineRunningProcessSummary> + apply(ListPipelineRunningProcessesResponse response) { + return response.getPipelineRunningProcessCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listPipelineSchemaTables 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 listPipelineSchemaTablesResponseIterator( + final ListPipelineSchemaTablesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListPipelineSchemaTablesRequest.Builder, + ListPipelineSchemaTablesRequest, + ListPipelineSchemaTablesResponse>( + new java.util.function.Supplier() { + @Override + public ListPipelineSchemaTablesRequest.Builder get() { + return ListPipelineSchemaTablesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPipelineSchemaTablesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineSchemaTablesRequest.Builder>, + ListPipelineSchemaTablesRequest>() { + @Override + public ListPipelineSchemaTablesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineSchemaTablesRequest.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< + ListPipelineSchemaTablesRequest, ListPipelineSchemaTablesResponse>() { + @Override + public ListPipelineSchemaTablesResponse apply( + ListPipelineSchemaTablesRequest request) { + return client.listPipelineSchemaTables(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.goldengate.model.PipelineSchemaTableSummary} objects contained in responses + * from the listPipelineSchemaTables 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.goldengate.model.PipelineSchemaTableSummary} objects contained in + * responses received from the service. + */ + public Iterable + listPipelineSchemaTablesRecordIterator(final ListPipelineSchemaTablesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListPipelineSchemaTablesRequest.Builder, + ListPipelineSchemaTablesRequest, + ListPipelineSchemaTablesResponse, + com.oracle.bmc.goldengate.model.PipelineSchemaTableSummary>( + new java.util.function.Supplier() { + @Override + public ListPipelineSchemaTablesRequest.Builder get() { + return ListPipelineSchemaTablesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPipelineSchemaTablesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineSchemaTablesRequest.Builder>, + ListPipelineSchemaTablesRequest>() { + @Override + public ListPipelineSchemaTablesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineSchemaTablesRequest.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< + ListPipelineSchemaTablesRequest, ListPipelineSchemaTablesResponse>() { + @Override + public ListPipelineSchemaTablesResponse apply( + ListPipelineSchemaTablesRequest request) { + return client.listPipelineSchemaTables(request); + } + }, + new java.util.function.Function< + ListPipelineSchemaTablesResponse, + java.util.List< + com.oracle.bmc.goldengate.model.PipelineSchemaTableSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.goldengate.model.PipelineSchemaTableSummary> + apply(ListPipelineSchemaTablesResponse response) { + return response.getPipelineSchemaTableCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listPipelineSchemas 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 listPipelineSchemasResponseIterator( + final ListPipelineSchemasRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListPipelineSchemasRequest.Builder, + ListPipelineSchemasRequest, + ListPipelineSchemasResponse>( + new java.util.function.Supplier() { + @Override + public ListPipelineSchemasRequest.Builder get() { + return ListPipelineSchemasRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPipelineSchemasResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineSchemasRequest.Builder>, + ListPipelineSchemasRequest>() { + @Override + public ListPipelineSchemasRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineSchemasRequest.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< + ListPipelineSchemasRequest, ListPipelineSchemasResponse>() { + @Override + public ListPipelineSchemasResponse apply(ListPipelineSchemasRequest request) { + return client.listPipelineSchemas(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.goldengate.model.PipelineSchemaSummary} objects contained in responses from + * the listPipelineSchemas 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.goldengate.model.PipelineSchemaSummary} objects contained in responses + * received from the service. + */ + public Iterable + listPipelineSchemasRecordIterator(final ListPipelineSchemasRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListPipelineSchemasRequest.Builder, + ListPipelineSchemasRequest, + ListPipelineSchemasResponse, + com.oracle.bmc.goldengate.model.PipelineSchemaSummary>( + new java.util.function.Supplier() { + @Override + public ListPipelineSchemasRequest.Builder get() { + return ListPipelineSchemasRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPipelineSchemasResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineSchemasRequest.Builder>, + ListPipelineSchemasRequest>() { + @Override + public ListPipelineSchemasRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelineSchemasRequest.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< + ListPipelineSchemasRequest, ListPipelineSchemasResponse>() { + @Override + public ListPipelineSchemasResponse apply(ListPipelineSchemasRequest request) { + return client.listPipelineSchemas(request); + } + }, + new java.util.function.Function< + ListPipelineSchemasResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListPipelineSchemasResponse response) { + return response.getPipelineSchemaCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listPipelines + * 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 listPipelinesResponseIterator( + final ListPipelinesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListPipelinesRequest.Builder, ListPipelinesRequest, ListPipelinesResponse>( + new java.util.function.Supplier() { + @Override + public ListPipelinesRequest.Builder get() { + return ListPipelinesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPipelinesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelinesRequest.Builder>, + ListPipelinesRequest>() { + @Override + public ListPipelinesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelinesRequest.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 ListPipelinesResponse apply(ListPipelinesRequest request) { + return client.listPipelines(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.goldengate.model.PipelineSummary} objects contained in responses from the + * listPipelines 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.goldengate.model.PipelineSummary} objects contained in responses received + * from the service. + */ + public Iterable listPipelinesRecordIterator( + final ListPipelinesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListPipelinesRequest.Builder, + ListPipelinesRequest, + ListPipelinesResponse, + com.oracle.bmc.goldengate.model.PipelineSummary>( + new java.util.function.Supplier() { + @Override + public ListPipelinesRequest.Builder get() { + return ListPipelinesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListPipelinesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelinesRequest.Builder>, + ListPipelinesRequest>() { + @Override + public ListPipelinesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListPipelinesRequest.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 ListPipelinesResponse apply(ListPipelinesRequest request) { + return client.listPipelines(request); + } + }, + new java.util.function.Function< + ListPipelinesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListPipelinesResponse response) { + return response.getPipelineCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listRecipes + * 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 listRecipesResponseIterator( + final ListRecipesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListRecipesRequest.Builder, ListRecipesRequest, ListRecipesResponse>( + new java.util.function.Supplier() { + @Override + public ListRecipesRequest.Builder get() { + return ListRecipesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRecipesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecipesRequest.Builder>, + ListRecipesRequest>() { + @Override + public ListRecipesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecipesRequest.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 ListRecipesResponse apply(ListRecipesRequest request) { + return client.listRecipes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.goldengate.model.RecipeSummary} objects contained in responses from the + * listRecipes 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.goldengate.model.RecipeSummary} objects contained in responses received + * from the service. + */ + public Iterable listRecipesRecordIterator( + final ListRecipesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListRecipesRequest.Builder, + ListRecipesRequest, + ListRecipesResponse, + com.oracle.bmc.goldengate.model.RecipeSummary>( + new java.util.function.Supplier() { + @Override + public ListRecipesRequest.Builder get() { + return ListRecipesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListRecipesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecipesRequest.Builder>, + ListRecipesRequest>() { + @Override + public ListRecipesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRecipesRequest.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 ListRecipesResponse apply(ListRecipesRequest request) { + return client.listRecipes(request); + } + }, + new java.util.function.Function< + ListRecipesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListRecipesResponse response) { + return response.getRecipeSummaryCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listTrailFiles * operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateWaiters.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateWaiters.java index 85acb48acc7..d9b7800b541 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateWaiters.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/GoldenGateWaiters.java @@ -760,6 +760,105 @@ public boolean test(GetDeploymentUpgradeResponse response) { 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 forPipeline( + GetPipelineRequest request, + com.oracle.bmc.goldengate.model.Pipeline.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 forPipeline( + 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 forPipeline( + GetPipelineRequest request, + com.oracle.bmc.goldengate.model.Pipeline.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 forPipeline( + 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 forPipeline( + GetPipelineRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.goldengate.model.Pipeline.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 forPipeline( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Pipeline. + private com.oracle.bmc.waiter.Waiter forPipeline( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetPipelineRequest request, + final com.oracle.bmc.goldengate.model.Pipeline.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 GetPipelineResponse apply(GetPipelineRequest request) { + return client.getPipeline(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetPipelineResponse response) { + return targetStatesSet.contains( + response.getPipeline().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.goldengate.model.Pipeline.LifecycleState.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. * diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ChangePipelineCompartmentDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ChangePipelineCompartmentDetails.java new file mode 100644 index 00000000000..8023fbfb865 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ChangePipelineCompartmentDetails.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.goldengate.model; + +/** + * The new compartment for a Pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangePipelineCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangePipelineCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangePipelineCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @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 + * compartment being referenced. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment being referenced. + * + * @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 ChangePipelineCompartmentDetails build() { + ChangePipelineCompartmentDetails model = + new ChangePipelineCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangePipelineCompartmentDetails model) { + 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); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment being referenced. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment being referenced. + * + * @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("ChangePipelineCompartmentDetails("); + sb.append("super=").append(super.toString()); + 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 ChangePipelineCompartmentDetails)) { + return false; + } + + ChangePipelineCompartmentDetails other = (ChangePipelineCompartmentDetails) o; + return 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java index e3333131df2..d225ff8268c 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateMysqlConnectionDetails.java @@ -352,14 +352,14 @@ public Builder sslCert(String sslCert) { return this; } /** - * Client Key \u2013 The base64 encoded content of a .pem or .crt file containing the client + * Client Key - The base64 encoded content of a .pem or .crt file containing the client * private key (for 2-way SSL). */ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") private String sslKey; /** - * Client Key \u2013 The base64 encoded content of a .pem or .crt file containing the client + * Client Key - The base64 encoded content of a .pem or .crt file containing the client * private key (for 2-way SSL). * * @param sslKey the value to set @@ -866,15 +866,15 @@ public String getSslCert() { } /** - * Client Key \u2013 The base64 encoded content of a .pem or .crt file containing the client - * private key (for 2-way SSL). + * Client Key - The base64 encoded content of a .pem or .crt file containing the client private + * key (for 2-way SSL). */ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") private final String sslKey; /** - * Client Key \u2013 The base64 encoded content of a .pem or .crt file containing the client - * private key (for 2-way SSL). + * Client Key - The base64 encoded content of a .pem or .crt file containing the client private + * key (for 2-way SSL). * * @return the value */ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePipelineDetails.java new file mode 100644 index 00000000000..6cba786a9e7 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreatePipelineDetails.java @@ -0,0 +1,270 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Details with which to create a pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "recipeType", + defaultImpl = CreatePipelineDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateZeroEtlPipelineDetails.class, + name = "ZERO_ETL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreatePipelineDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "compartmentId", + "licenseModel", + "freeformTags", + "definedTags", + "locks", + "sourceConnectionDetails", + "targetConnectionDetails" + }) + protected CreatePipelineDetails( + String displayName, + String description, + String compartmentId, + LicenseModel licenseModel, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List locks, + SourcePipelineConnectionDetails sourceConnectionDetails, + TargetPipelineConnectionDetails targetConnectionDetails) { + super(); + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.licenseModel = licenseModel; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.locks = locks; + this.sourceConnectionDetails = sourceConnectionDetails; + this.targetConnectionDetails = targetConnectionDetails; + } + + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * An object's Display Name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Metadata about this specific object. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Metadata about this specific object. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment being referenced. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment being referenced. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The Oracle license model that applies to a Deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to a Deployment. + * + * @return the value + */ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + /** + * A 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; + + /** + * A 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; + } + + /** + * Tags defined 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; + + /** + * Tags defined 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; + } + + /** Locks associated with this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * + * @return the value + */ + public java.util.List getLocks() { + return locks; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceConnectionDetails") + private final SourcePipelineConnectionDetails sourceConnectionDetails; + + public SourcePipelineConnectionDetails getSourceConnectionDetails() { + return sourceConnectionDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetConnectionDetails") + private final TargetPipelineConnectionDetails targetConnectionDetails; + + public TargetPipelineConnectionDetails getTargetConnectionDetails() { + return targetConnectionDetails; + } + + @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("CreatePipelineDetails("); + 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(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(", sourceConnectionDetails=") + .append(String.valueOf(this.sourceConnectionDetails)); + sb.append(", targetConnectionDetails=") + .append(String.valueOf(this.targetConnectionDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreatePipelineDetails)) { + return false; + } + + CreatePipelineDetails other = (CreatePipelineDetails) 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.licenseModel, other.licenseModel) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.locks, other.locks) + && java.util.Objects.equals( + this.sourceConnectionDetails, other.sourceConnectionDetails) + && java.util.Objects.equals( + this.targetConnectionDetails, other.targetConnectionDetails) + && 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.licenseModel == null ? 43 : this.licenseModel.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.locks == null ? 43 : this.locks.hashCode()); + result = + (result * PRIME) + + (this.sourceConnectionDetails == null + ? 43 + : this.sourceConnectionDetails.hashCode()); + result = + (result * PRIME) + + (this.targetConnectionDetails == null + ? 43 + : this.targetConnectionDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateZeroEtlPipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateZeroEtlPipelineDetails.java new file mode 100644 index 00000000000..0d190e665d8 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/CreateZeroEtlPipelineDetails.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Creation details for a new ZeroETL pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateZeroEtlPipelineDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "recipeType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateZeroEtlPipelineDetails extends CreatePipelineDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + 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.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceConnectionDetails") + private SourcePipelineConnectionDetails sourceConnectionDetails; + + public Builder sourceConnectionDetails( + SourcePipelineConnectionDetails sourceConnectionDetails) { + this.sourceConnectionDetails = sourceConnectionDetails; + this.__explicitlySet__.add("sourceConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetConnectionDetails") + private TargetPipelineConnectionDetails targetConnectionDetails; + + public Builder targetConnectionDetails( + TargetPipelineConnectionDetails targetConnectionDetails) { + this.targetConnectionDetails = targetConnectionDetails; + this.__explicitlySet__.add("targetConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processOptions") + private ProcessOptions processOptions; + + public Builder processOptions(ProcessOptions processOptions) { + this.processOptions = processOptions; + this.__explicitlySet__.add("processOptions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateZeroEtlPipelineDetails build() { + CreateZeroEtlPipelineDetails model = + new CreateZeroEtlPipelineDetails( + this.displayName, + this.description, + this.compartmentId, + this.licenseModel, + this.freeformTags, + this.definedTags, + this.locks, + this.sourceConnectionDetails, + this.targetConnectionDetails, + this.processOptions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateZeroEtlPipelineDetails 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("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("sourceConnectionDetails")) { + this.sourceConnectionDetails(model.getSourceConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("targetConnectionDetails")) { + this.targetConnectionDetails(model.getTargetConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("processOptions")) { + this.processOptions(model.getProcessOptions()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateZeroEtlPipelineDetails( + String displayName, + String description, + String compartmentId, + LicenseModel licenseModel, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.List locks, + SourcePipelineConnectionDetails sourceConnectionDetails, + TargetPipelineConnectionDetails targetConnectionDetails, + ProcessOptions processOptions) { + super( + displayName, + description, + compartmentId, + licenseModel, + freeformTags, + definedTags, + locks, + sourceConnectionDetails, + targetConnectionDetails); + this.processOptions = processOptions; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processOptions") + private final ProcessOptions processOptions; + + public ProcessOptions getProcessOptions() { + return processOptions; + } + + @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("CreateZeroEtlPipelineDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", processOptions=").append(String.valueOf(this.processOptions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateZeroEtlPipelineDetails)) { + return false; + } + + CreateZeroEtlPipelineDetails other = (CreateZeroEtlPipelineDetails) o; + return java.util.Objects.equals(this.processOptions, other.processOptions) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.processOptions == null ? 43 : this.processOptions.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultStartPipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultStartPipelineDetails.java new file mode 100644 index 00000000000..d78fc60d0e9 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultStartPipelineDetails.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Attribute details for a default pipeline start.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DefaultStartPipelineDetails.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 DefaultStartPipelineDetails extends StartPipelineDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DefaultStartPipelineDetails build() { + DefaultStartPipelineDetails model = new DefaultStartPipelineDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DefaultStartPipelineDetails model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DefaultStartPipelineDetails() { + 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("DefaultStartPipelineDetails("); + 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 DefaultStartPipelineDetails)) { + return false; + } + + DefaultStartPipelineDetails other = (DefaultStartPipelineDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultStopPipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultStopPipelineDetails.java new file mode 100644 index 00000000000..82b6ea05e33 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultStopPipelineDetails.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Attribute details for a default pipeline stop.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DefaultStopPipelineDetails.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 DefaultStopPipelineDetails extends StopPipelineDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DefaultStopPipelineDetails build() { + DefaultStopPipelineDetails model = new DefaultStopPipelineDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DefaultStopPipelineDetails model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DefaultStopPipelineDetails() { + 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("DefaultStopPipelineDetails("); + 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 DefaultStopPipelineDetails)) { + return false; + } + + DefaultStopPipelineDetails other = (DefaultStopPipelineDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultTestPipelineConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultTestPipelineConnectionDetails.java new file mode 100644 index 00000000000..020d823da50 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/DefaultTestPipelineConnectionDetails.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.goldengate.model; + +/** + * Additional attribute with which to test the pipeline's connection. The connectionId must be one + * of the pipeline's assigned connections.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DefaultTestPipelineConnectionDetails.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 DefaultTestPipelineConnectionDetails extends TestPipelineConnectionDetails { + @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 + * connection being referenced. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionId") + private String connectionId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * connection being referenced. + * + * @param connectionId the value to set + * @return this builder + */ + public Builder connectionId(String connectionId) { + this.connectionId = connectionId; + this.__explicitlySet__.add("connectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DefaultTestPipelineConnectionDetails build() { + DefaultTestPipelineConnectionDetails model = + new DefaultTestPipelineConnectionDetails(this.connectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DefaultTestPipelineConnectionDetails model) { + if (model.wasPropertyExplicitlySet("connectionId")) { + this.connectionId(model.getConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DefaultTestPipelineConnectionDetails(String connectionId) { + super(); + this.connectionId = connectionId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * connection being referenced. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionId") + private final String connectionId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * connection being referenced. + * + * @return the value + */ + public String getConnectionId() { + return connectionId; + } + + @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("DefaultTestPipelineConnectionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", connectionId=").append(String.valueOf(this.connectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DefaultTestPipelineConnectionDetails)) { + return false; + } + + DefaultTestPipelineConnectionDetails other = (DefaultTestPipelineConnectionDetails) o; + return java.util.Objects.equals(this.connectionId, other.connectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.connectionId == null ? 43 : this.connectionId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/InitialDataLoad.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/InitialDataLoad.java new file mode 100644 index 00000000000..ac549259de7 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/InitialDataLoad.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.goldengate.model; + +/** + * Options required for the pipeline Initial Data Load. If enabled, copies existing data from source + * to target before replication.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = InitialDataLoad.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InitialDataLoad + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isInitialLoad", "actionOnExistingTable"}) + public InitialDataLoad(IsInitialLoad isInitialLoad, InitialLoadAction actionOnExistingTable) { + super(); + this.isInitialLoad = isInitialLoad; + this.actionOnExistingTable = actionOnExistingTable; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * If ENABLED, then existing source data is also synchronized to the target when creating or + * updating the pipeline. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isInitialLoad") + private IsInitialLoad isInitialLoad; + + /** + * If ENABLED, then existing source data is also synchronized to the target when creating or + * updating the pipeline. + * + * @param isInitialLoad the value to set + * @return this builder + */ + public Builder isInitialLoad(IsInitialLoad isInitialLoad) { + this.isInitialLoad = isInitialLoad; + this.__explicitlySet__.add("isInitialLoad"); + return this; + } + /** + * Action upon existing tables in target when initial Data Load is set i.e., + * isInitialLoad=true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOnExistingTable") + private InitialLoadAction actionOnExistingTable; + + /** + * Action upon existing tables in target when initial Data Load is set i.e., + * isInitialLoad=true. + * + * @param actionOnExistingTable the value to set + * @return this builder + */ + public Builder actionOnExistingTable(InitialLoadAction actionOnExistingTable) { + this.actionOnExistingTable = actionOnExistingTable; + this.__explicitlySet__.add("actionOnExistingTable"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InitialDataLoad build() { + InitialDataLoad model = + new InitialDataLoad(this.isInitialLoad, this.actionOnExistingTable); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InitialDataLoad model) { + if (model.wasPropertyExplicitlySet("isInitialLoad")) { + this.isInitialLoad(model.getIsInitialLoad()); + } + if (model.wasPropertyExplicitlySet("actionOnExistingTable")) { + this.actionOnExistingTable(model.getActionOnExistingTable()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * If ENABLED, then existing source data is also synchronized to the target when creating or + * updating the pipeline. + */ + public enum IsInitialLoad implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * 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(IsInitialLoad.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (IsInitialLoad v : IsInitialLoad.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + IsInitialLoad(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static IsInitialLoad create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'IsInitialLoad', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * If ENABLED, then existing source data is also synchronized to the target when creating or + * updating the pipeline. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isInitialLoad") + private final IsInitialLoad isInitialLoad; + + /** + * If ENABLED, then existing source data is also synchronized to the target when creating or + * updating the pipeline. + * + * @return the value + */ + public IsInitialLoad getIsInitialLoad() { + return isInitialLoad; + } + + /** + * Action upon existing tables in target when initial Data Load is set i.e., isInitialLoad=true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOnExistingTable") + private final InitialLoadAction actionOnExistingTable; + + /** + * Action upon existing tables in target when initial Data Load is set i.e., isInitialLoad=true. + * + * @return the value + */ + public InitialLoadAction getActionOnExistingTable() { + return actionOnExistingTable; + } + + @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("InitialDataLoad("); + sb.append("super=").append(super.toString()); + sb.append("isInitialLoad=").append(String.valueOf(this.isInitialLoad)); + sb.append(", actionOnExistingTable=").append(String.valueOf(this.actionOnExistingTable)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InitialDataLoad)) { + return false; + } + + InitialDataLoad other = (InitialDataLoad) o; + return java.util.Objects.equals(this.isInitialLoad, other.isInitialLoad) + && java.util.Objects.equals(this.actionOnExistingTable, other.actionOnExistingTable) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isInitialLoad == null ? 43 : this.isInitialLoad.hashCode()); + result = + (result * PRIME) + + (this.actionOnExistingTable == null + ? 43 + : this.actionOnExistingTable.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/InitialLoadAction.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/InitialLoadAction.java new file mode 100644 index 00000000000..847f56f380b --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/InitialLoadAction.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.goldengate.model; + +/** Action on existing tables, if Initial Load is true. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum InitialLoadAction implements com.oracle.bmc.http.internal.BmcEnum { + Truncate("TRUNCATE"), + Replace("REPLACE"), + Append("APPEND"), + Skip("SKIP"), + + /** + * 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(InitialLoadAction.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InitialLoadAction v : InitialLoadAction.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InitialLoadAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InitialLoadAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InitialLoadAction', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MappingRule.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MappingRule.java new file mode 100644 index 00000000000..2002b932973 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MappingRule.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.goldengate.model; + +/** + * Mapping rule for source and target schemas for the pipeline data replication. For example: + * "{mappingType: INCLUDE, source: HR.*, target: HR.*}" for rule "Include HR.*" which will include + * all the tables under HR schema.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MappingRule.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MappingRule extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"mappingType", "source", "target"}) + public MappingRule(MappingType mappingType, String source, String target) { + super(); + this.mappingType = mappingType; + this.source = source; + this.target = target; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Defines the exclude/include rules of source and target schemas and tables when + * replicating from source to target. This option applies when creating and updating a + * pipeline. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mappingType") + private MappingType mappingType; + + /** + * Defines the exclude/include rules of source and target schemas and tables when + * replicating from source to target. This option applies when creating and updating a + * pipeline. + * + * @param mappingType the value to set + * @return this builder + */ + public Builder mappingType(MappingType mappingType) { + this.mappingType = mappingType; + this.__explicitlySet__.add("mappingType"); + return this; + } + /** The source schema/table combination for replication to target. */ + @com.fasterxml.jackson.annotation.JsonProperty("source") + private String source; + + /** + * The source schema/table combination for replication to target. + * + * @param source the value to set + * @return this builder + */ + public Builder source(String source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } + /** The target schema/table combination for replication from the source. */ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private String target; + + /** + * The target schema/table combination for replication from the source. + * + * @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 MappingRule build() { + MappingRule model = new MappingRule(this.mappingType, this.source, this.target); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MappingRule model) { + if (model.wasPropertyExplicitlySet("mappingType")) { + this.mappingType(model.getMappingType()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + 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); + } + + /** + * Defines the exclude/include rules of source and target schemas and tables when replicating + * from source to target. This option applies when creating and updating a pipeline. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mappingType") + private final MappingType mappingType; + + /** + * Defines the exclude/include rules of source and target schemas and tables when replicating + * from source to target. This option applies when creating and updating a pipeline. + * + * @return the value + */ + public MappingType getMappingType() { + return mappingType; + } + + /** The source schema/table combination for replication to target. */ + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final String source; + + /** + * The source schema/table combination for replication to target. + * + * @return the value + */ + public String getSource() { + return source; + } + + /** The target schema/table combination for replication from the source. */ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private final String target; + + /** + * The target schema/table combination for replication from the source. + * + * @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("MappingRule("); + sb.append("super=").append(super.toString()); + sb.append("mappingType=").append(String.valueOf(this.mappingType)); + sb.append(", source=").append(String.valueOf(this.source)); + 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 MappingRule)) { + return false; + } + + MappingRule other = (MappingRule) o; + return java.util.Objects.equals(this.mappingType, other.mappingType) + && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.target, other.target) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.mappingType == null ? 43 : this.mappingType.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MappingType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MappingType.java new file mode 100644 index 00000000000..a4fd7f416bd --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/MappingType.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.goldengate.model; + +/** Mapping type for excluding or including source or target schemas or tables for replication. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum MappingType implements com.oracle.bmc.http.internal.BmcEnum { + Include("INCLUDE"), + Exclude("EXCLUDE"), + + /** + * 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(MappingType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MappingType v : MappingType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MappingType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MappingType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MappingType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OperationType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OperationType.java index 4f05fa1c84d..72e8834756f 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OperationType.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/OperationType.java @@ -43,6 +43,12 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { GoldengateDeploymentUpgradeSnooze("GOLDENGATE_DEPLOYMENT_UPGRADE_SNOOZE"), GoldengateDeploymentCertificateCreate("GOLDENGATE_DEPLOYMENT_CERTIFICATE_CREATE"), GoldengateDeploymentCertificateDelete("GOLDENGATE_DEPLOYMENT_CERTIFICATE_DELETE"), + GoldengatePipelineCreate("GOLDENGATE_PIPELINE_CREATE"), + GoldengatePipelineStart("GOLDENGATE_PIPELINE_START"), + GoldengatePipelineStop("GOLDENGATE_PIPELINE_STOP"), + GoldengatePipelineUpdate("GOLDENGATE_PIPELINE_UPDATE"), + GoldengatePipelineDelete("GOLDENGATE_PIPELINE_DELETE"), + GoldengatePipelineMove("GOLDENGATE_PIPELINE_MOVE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Pipeline.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Pipeline.java new file mode 100644 index 00000000000..19f54189e73 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/Pipeline.java @@ -0,0 +1,529 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Represents the metadata details of a pipeline in the same compartment.
+ * 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: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "recipeType", + defaultImpl = Pipeline.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ZeroEtlPipeline.class, + name = "ZERO_ETL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class Pipeline extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "licenseModel", + "cpuCoreCount", + "isAutoScalingEnabled", + "sourceConnectionDetails", + "targetConnectionDetails", + "freeformTags", + "definedTags", + "systemTags", + "locks", + "lifecycleState", + "lifecycleSubState", + "lifecycleDetails", + "timeCreated", + "timeUpdated" + }) + protected Pipeline( + String id, + String displayName, + String description, + String compartmentId, + LicenseModel licenseModel, + Integer cpuCoreCount, + Boolean isAutoScalingEnabled, + SourcePipelineConnectionDetails sourceConnectionDetails, + TargetPipelineConnectionDetails targetConnectionDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.List locks, + LifecycleState lifecycleState, + PipelineLifecycleSubState lifecycleSubState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.licenseModel = licenseModel; + this.cpuCoreCount = cpuCoreCount; + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.sourceConnectionDetails = sourceConnectionDetails; + this.targetConnectionDetails = targetConnectionDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.locks = locks; + this.lifecycleState = lifecycleState; + this.lifecycleSubState = lifecycleSubState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline. This option applies when retrieving a pipeline. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline. This option applies when retrieving a pipeline. + * + * @return the value + */ + public String getId() { + return id; + } + + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * An object's Display Name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Metadata about this specific object. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Metadata about this specific object. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment being referenced. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment being referenced. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The Oracle license model that applies to a Deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to a Deployment. + * + * @return the value + */ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + /** The Minimum number of OCPUs to be made available for this Deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount") + private final Integer cpuCoreCount; + + /** + * The Minimum number of OCPUs to be made available for this Deployment. + * + * @return the value + */ + public Integer getCpuCoreCount() { + return cpuCoreCount; + } + + /** Indicates if auto scaling is enabled for the Deployment's CPU core count. */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private final Boolean isAutoScalingEnabled; + + /** + * Indicates if auto scaling is enabled for the Deployment's CPU core count. + * + * @return the value + */ + public Boolean getIsAutoScalingEnabled() { + return isAutoScalingEnabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceConnectionDetails") + private final SourcePipelineConnectionDetails sourceConnectionDetails; + + public SourcePipelineConnectionDetails getSourceConnectionDetails() { + return sourceConnectionDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetConnectionDetails") + private final TargetPipelineConnectionDetails targetConnectionDetails; + + public TargetPipelineConnectionDetails getTargetConnectionDetails() { + return targetConnectionDetails; + } + + /** + * A 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; + + /** + * A 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; + } + + /** + * Tags defined 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; + + /** + * Tags defined 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; + } + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle + * Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle + * Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** Locks associated with this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * + * @return the value + */ + public java.util.List getLocks() { + return locks; + } + + /** Lifecycle state of the pipeline. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + NeedsAttention("NEEDS_ATTENTION"), + Deleting("DELETING"), + 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; + } + }; + /** Lifecycle state of the pipeline. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Lifecycle state of the pipeline. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Possible lifecycle substates when retrieving a pipeline. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubState") + private final PipelineLifecycleSubState lifecycleSubState; + + /** + * Possible lifecycle substates when retrieving a pipeline. + * + * @return the value + */ + public PipelineLifecycleSubState getLifecycleSubState() { + return lifecycleSubState; + } + + /** + * Describes the object's current state in detail. For example, it can be used to provide + * actionable information for a resource in a Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Describes the object's current state in detail. For example, it can be used to provide + * actionable information for a resource in a Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the resource was created. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the resource was created. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the resource was last updated. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the resource was last updated. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + * + * @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("Pipeline("); + 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(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(", cpuCoreCount=").append(String.valueOf(this.cpuCoreCount)); + sb.append(", isAutoScalingEnabled=").append(String.valueOf(this.isAutoScalingEnabled)); + sb.append(", sourceConnectionDetails=") + .append(String.valueOf(this.sourceConnectionDetails)); + sb.append(", targetConnectionDetails=") + .append(String.valueOf(this.targetConnectionDetails)); + 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(", locks=").append(String.valueOf(this.locks)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleSubState=").append(String.valueOf(this.lifecycleSubState)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Pipeline)) { + return false; + } + + Pipeline other = (Pipeline) 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.licenseModel, other.licenseModel) + && java.util.Objects.equals(this.cpuCoreCount, other.cpuCoreCount) + && java.util.Objects.equals(this.isAutoScalingEnabled, other.isAutoScalingEnabled) + && java.util.Objects.equals( + this.sourceConnectionDetails, other.sourceConnectionDetails) + && java.util.Objects.equals( + this.targetConnectionDetails, other.targetConnectionDetails) + && 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.locks, other.locks) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleSubState, other.lifecycleSubState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && 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.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.licenseModel == null ? 43 : this.licenseModel.hashCode()); + result = (result * PRIME) + (this.cpuCoreCount == null ? 43 : this.cpuCoreCount.hashCode()); + result = + (result * PRIME) + + (this.isAutoScalingEnabled == null + ? 43 + : this.isAutoScalingEnabled.hashCode()); + result = + (result * PRIME) + + (this.sourceConnectionDetails == null + ? 43 + : this.sourceConnectionDetails.hashCode()); + result = + (result * PRIME) + + (this.targetConnectionDetails == null + ? 43 + : this.targetConnectionDetails.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.locks == null ? 43 : this.locks.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleSubState == null ? 43 : this.lifecycleSubState.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) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineCollection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineCollection.java new file mode 100644 index 00000000000..9c90ff7f064 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineCollection.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.goldengate.model; + +/** + * List of pipeline summary objects.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public PipelineCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of Pipeline summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of Pipeline summaries. + * + * @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 PipelineCollection build() { + PipelineCollection model = new PipelineCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineCollection 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); + } + + /** An array of Pipeline summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of Pipeline summaries. + * + * @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("PipelineCollection("); + 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 PipelineCollection)) { + return false; + } + + PipelineCollection other = (PipelineCollection) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineInitializationStep.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineInitializationStep.java new file mode 100644 index 00000000000..4027808f9a2 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineInitializationStep.java @@ -0,0 +1,347 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * The step and its progress based on the recipe type.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineInitializationStep.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineInitializationStep + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "status", + "percentComplete", + "timeStarted", + "timeFinished", + "messages" + }) + public PipelineInitializationStep( + String name, + StepStatusType status, + Integer percentComplete, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.List messages) { + super(); + this.name = name; + this.status = status; + this.percentComplete = percentComplete; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.messages = messages; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * An object's Display Name. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Status of the steps in a recipe. This option applies during pipeline initialization. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private StepStatusType status; + + /** + * Status of the steps in a recipe. This option applies during pipeline initialization. + * + * @param status the value to set + * @return this builder + */ + public Builder status(StepStatusType status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** Shows the percentage complete of each recipe step during pipeline initialization. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Integer percentComplete; + + /** + * Shows the percentage complete of each recipe step during pipeline initialization. + * + * @param percentComplete the value to set + * @return this builder + */ + public Builder percentComplete(Integer percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the request was started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the request was started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + * + * @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 request was finished. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the request was finished. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + * + * @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 list of messages for each step while running. */ + @com.fasterxml.jackson.annotation.JsonProperty("messages") + private java.util.List messages; + + /** + * The list of messages for each step while running. + * + * @param messages the value to set + * @return this builder + */ + public Builder messages(java.util.List messages) { + this.messages = messages; + this.__explicitlySet__.add("messages"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineInitializationStep build() { + PipelineInitializationStep model = + new PipelineInitializationStep( + this.name, + this.status, + this.percentComplete, + this.timeStarted, + this.timeFinished, + this.messages); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineInitializationStep model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("messages")) { + this.messages(model.getMessages()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * An object's Display Name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Status of the steps in a recipe. This option applies during pipeline initialization. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final StepStatusType status; + + /** + * Status of the steps in a recipe. This option applies during pipeline initialization. + * + * @return the value + */ + public StepStatusType getStatus() { + return status; + } + + /** Shows the percentage complete of each recipe step during pipeline initialization. */ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Integer percentComplete; + + /** + * Shows the percentage complete of each recipe step during pipeline initialization. + * + * @return the value + */ + public Integer getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the request was started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the request was started. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the request was finished. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the request was finished. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** The list of messages for each step while running. */ + @com.fasterxml.jackson.annotation.JsonProperty("messages") + private final java.util.List messages; + + /** + * The list of messages for each step while running. + * + * @return the value + */ + public java.util.List getMessages() { + return messages; + } + + @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("PipelineInitializationStep("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", messages=").append(String.valueOf(this.messages)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineInitializationStep)) { + return false; + } + + PipelineInitializationStep other = (PipelineInitializationStep) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.messages, other.messages) + && 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.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.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.messages == null ? 43 : this.messages.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineInitializationSteps.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineInitializationSteps.java new file mode 100644 index 00000000000..5ceca4e5b4a --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineInitializationSteps.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.goldengate.model; + +/** + * The steps and their progress, based on the recipe type.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineInitializationSteps.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineInitializationSteps + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public PipelineInitializationSteps(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The sequence of pipeline steps based on the recipe type. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The sequence of pipeline steps based on the recipe type. + * + * @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 PipelineInitializationSteps build() { + PipelineInitializationSteps model = new PipelineInitializationSteps(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineInitializationSteps 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 sequence of pipeline steps based on the recipe type. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The sequence of pipeline steps based on the recipe type. + * + * @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("PipelineInitializationSteps("); + 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 PipelineInitializationSteps)) { + return false; + } + + PipelineInitializationSteps other = (PipelineInitializationSteps) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineLifecycleSubState.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineLifecycleSubState.java new file mode 100644 index 00000000000..87f009991c4 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineLifecycleSubState.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.goldengate.model; + +/** Lifecycle substates of a pipeline. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum PipelineLifecycleSubState implements com.oracle.bmc.http.internal.BmcEnum { + Starting("STARTING"), + Stopping("STOPPING"), + Stopped("STOPPED"), + Moving("MOVING"), + Running("RUNNING"), + + /** + * 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(PipelineLifecycleSubState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PipelineLifecycleSubState v : PipelineLifecycleSubState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PipelineLifecycleSubState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PipelineLifecycleSubState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PipelineLifecycleSubState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineRunningProcessCollection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineRunningProcessCollection.java new file mode 100644 index 00000000000..204d6328e5c --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineRunningProcessCollection.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.goldengate.model; + +/** + * The complete replication process and its 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineRunningProcessCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineRunningProcessCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public PipelineRunningProcessCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The list of replication processes and their details. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of replication processes and their details. + * + * @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 PipelineRunningProcessCollection build() { + PipelineRunningProcessCollection model = + new PipelineRunningProcessCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineRunningProcessCollection 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 replication processes and their details. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of replication processes and their details. + * + * @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("PipelineRunningProcessCollection("); + 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 PipelineRunningProcessCollection)) { + return false; + } + + PipelineRunningProcessCollection other = (PipelineRunningProcessCollection) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineRunningProcessSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineRunningProcessSummary.java new file mode 100644 index 00000000000..caf6c35ea71 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineRunningProcessSummary.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.goldengate.model; + +/** + * Each replication process and their summary 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineRunningProcessSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineRunningProcessSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "processType", + "status", + "lastRecordLagInSeconds", + "timeLastProcessed" + }) + public PipelineRunningProcessSummary( + String name, + ProcessType processType, + ProcessStatusType status, + Float lastRecordLagInSeconds, + java.util.Date timeLastProcessed) { + super(); + this.name = name; + this.processType = processType; + this.status = status; + this.lastRecordLagInSeconds = lastRecordLagInSeconds; + this.timeLastProcessed = timeLastProcessed; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * An object's Display Name. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** + * The type of process running in a replication. For example, Extract or Replicat. This + * option applies when retrieving running processes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("processType") + private ProcessType processType; + + /** + * The type of process running in a replication. For example, Extract or Replicat. This + * option applies when retrieving running processes. + * + * @param processType the value to set + * @return this builder + */ + public Builder processType(ProcessType processType) { + this.processType = processType; + this.__explicitlySet__.add("processType"); + return this; + } + /** + * The status of the Extract or Replicat process. This option applies when retrieving + * running processes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ProcessStatusType status; + + /** + * The status of the Extract or Replicat process. This option applies when retrieving + * running processes. + * + * @param status the value to set + * @return this builder + */ + public Builder status(ProcessStatusType status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The latency, in seconds, of a process running in a replication. This option applies when + * retrieving running processes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lastRecordLagInSeconds") + private Float lastRecordLagInSeconds; + + /** + * The latency, in seconds, of a process running in a replication. This option applies when + * retrieving running processes. + * + * @param lastRecordLagInSeconds the value to set + * @return this builder + */ + public Builder lastRecordLagInSeconds(Float lastRecordLagInSeconds) { + this.lastRecordLagInSeconds = lastRecordLagInSeconds; + this.__explicitlySet__.add("lastRecordLagInSeconds"); + return this; + } + /** + * The date and time the last record was processed by an Extract or Replicat. This option + * applies when retrieving running processes. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-07-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastProcessed") + private java.util.Date timeLastProcessed; + + /** + * The date and time the last record was processed by an Extract or Replicat. This option + * applies when retrieving running processes. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-07-25T21:10:29.600Z}. + * + * @param timeLastProcessed the value to set + * @return this builder + */ + public Builder timeLastProcessed(java.util.Date timeLastProcessed) { + this.timeLastProcessed = timeLastProcessed; + this.__explicitlySet__.add("timeLastProcessed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineRunningProcessSummary build() { + PipelineRunningProcessSummary model = + new PipelineRunningProcessSummary( + this.name, + this.processType, + this.status, + this.lastRecordLagInSeconds, + this.timeLastProcessed); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineRunningProcessSummary model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("processType")) { + this.processType(model.getProcessType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("lastRecordLagInSeconds")) { + this.lastRecordLagInSeconds(model.getLastRecordLagInSeconds()); + } + if (model.wasPropertyExplicitlySet("timeLastProcessed")) { + this.timeLastProcessed(model.getTimeLastProcessed()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * An object's Display Name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** + * The type of process running in a replication. For example, Extract or Replicat. This option + * applies when retrieving running processes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("processType") + private final ProcessType processType; + + /** + * The type of process running in a replication. For example, Extract or Replicat. This option + * applies when retrieving running processes. + * + * @return the value + */ + public ProcessType getProcessType() { + return processType; + } + + /** + * The status of the Extract or Replicat process. This option applies when retrieving running + * processes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final ProcessStatusType status; + + /** + * The status of the Extract or Replicat process. This option applies when retrieving running + * processes. + * + * @return the value + */ + public ProcessStatusType getStatus() { + return status; + } + + /** + * The latency, in seconds, of a process running in a replication. This option applies when + * retrieving running processes. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lastRecordLagInSeconds") + private final Float lastRecordLagInSeconds; + + /** + * The latency, in seconds, of a process running in a replication. This option applies when + * retrieving running processes. + * + * @return the value + */ + public Float getLastRecordLagInSeconds() { + return lastRecordLagInSeconds; + } + + /** + * The date and time the last record was processed by an Extract or Replicat. This option + * applies when retrieving running processes. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-07-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastProcessed") + private final java.util.Date timeLastProcessed; + + /** + * The date and time the last record was processed by an Extract or Replicat. This option + * applies when retrieving running processes. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2024-07-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimeLastProcessed() { + return timeLastProcessed; + } + + @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("PipelineRunningProcessSummary("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", processType=").append(String.valueOf(this.processType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", lastRecordLagInSeconds=").append(String.valueOf(this.lastRecordLagInSeconds)); + sb.append(", timeLastProcessed=").append(String.valueOf(this.timeLastProcessed)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineRunningProcessSummary)) { + return false; + } + + PipelineRunningProcessSummary other = (PipelineRunningProcessSummary) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.processType, other.processType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals( + this.lastRecordLagInSeconds, other.lastRecordLagInSeconds) + && java.util.Objects.equals(this.timeLastProcessed, other.timeLastProcessed) + && 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.processType == null ? 43 : this.processType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = + (result * PRIME) + + (this.lastRecordLagInSeconds == null + ? 43 + : this.lastRecordLagInSeconds.hashCode()); + result = + (result * PRIME) + + (this.timeLastProcessed == null ? 43 : this.timeLastProcessed.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaCollection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaCollection.java new file mode 100644 index 00000000000..b4bf2cc7f8a --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaCollection.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.goldengate.model; + +/** + * The list of schemas present in the source/target connection database of a pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineSchemaCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineSchemaCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public PipelineSchemaCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Array of pipeline schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of pipeline schemas + * + * @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 PipelineSchemaCollection build() { + PipelineSchemaCollection model = new PipelineSchemaCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineSchemaCollection 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); + } + + /** Array of pipeline schemas */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of pipeline schemas + * + * @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("PipelineSchemaCollection("); + 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 PipelineSchemaCollection)) { + return false; + } + + PipelineSchemaCollection other = (PipelineSchemaCollection) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaSummary.java new file mode 100644 index 00000000000..23bb8f9ea44 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaSummary.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * List of source and target schemas of a pipeline's assigned connection. 1. If there is no explicit + * mapping defined for the pipeline then only matched source and target schema names will be + * returned. 2. If there are explicit mappings defined for the pipeline then along with the mapped + * source and target schema names, the matched source and target schema names also will be returned. + *
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineSchemaSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineSchemaSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"sourceSchemaName", "targetSchemaName"}) + public PipelineSchemaSummary(String sourceSchemaName, String targetSchemaName) { + super(); + this.sourceSchemaName = sourceSchemaName; + this.targetSchemaName = targetSchemaName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The schema name from the database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceSchemaName") + private String sourceSchemaName; + + /** + * The schema name from the database connection. + * + * @param sourceSchemaName the value to set + * @return this builder + */ + public Builder sourceSchemaName(String sourceSchemaName) { + this.sourceSchemaName = sourceSchemaName; + this.__explicitlySet__.add("sourceSchemaName"); + return this; + } + /** The schema name from the database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetSchemaName") + private String targetSchemaName; + + /** + * The schema name from the database connection. + * + * @param targetSchemaName the value to set + * @return this builder + */ + public Builder targetSchemaName(String targetSchemaName) { + this.targetSchemaName = targetSchemaName; + this.__explicitlySet__.add("targetSchemaName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineSchemaSummary build() { + PipelineSchemaSummary model = + new PipelineSchemaSummary(this.sourceSchemaName, this.targetSchemaName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineSchemaSummary model) { + if (model.wasPropertyExplicitlySet("sourceSchemaName")) { + this.sourceSchemaName(model.getSourceSchemaName()); + } + if (model.wasPropertyExplicitlySet("targetSchemaName")) { + this.targetSchemaName(model.getTargetSchemaName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The schema name from the database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceSchemaName") + private final String sourceSchemaName; + + /** + * The schema name from the database connection. + * + * @return the value + */ + public String getSourceSchemaName() { + return sourceSchemaName; + } + + /** The schema name from the database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetSchemaName") + private final String targetSchemaName; + + /** + * The schema name from the database connection. + * + * @return the value + */ + public String getTargetSchemaName() { + return targetSchemaName; + } + + @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("PipelineSchemaSummary("); + sb.append("super=").append(super.toString()); + sb.append("sourceSchemaName=").append(String.valueOf(this.sourceSchemaName)); + sb.append(", targetSchemaName=").append(String.valueOf(this.targetSchemaName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineSchemaSummary)) { + return false; + } + + PipelineSchemaSummary other = (PipelineSchemaSummary) o; + return java.util.Objects.equals(this.sourceSchemaName, other.sourceSchemaName) + && java.util.Objects.equals(this.targetSchemaName, other.targetSchemaName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceSchemaName == null ? 43 : this.sourceSchemaName.hashCode()); + result = + (result * PRIME) + + (this.targetSchemaName == null ? 43 : this.targetSchemaName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaTableCollection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaTableCollection.java new file mode 100644 index 00000000000..9fca547404b --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaTableCollection.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * List of source or target schema tables of a pipeline's assigned connection.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineSchemaTableCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineSchemaTableCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"sourceSchemaName", "targetSchemaName", "items"}) + public PipelineSchemaTableCollection( + String sourceSchemaName, + String targetSchemaName, + java.util.List items) { + super(); + this.sourceSchemaName = sourceSchemaName; + this.targetSchemaName = targetSchemaName; + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The schema name from the database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceSchemaName") + private String sourceSchemaName; + + /** + * The schema name from the database connection. + * + * @param sourceSchemaName the value to set + * @return this builder + */ + public Builder sourceSchemaName(String sourceSchemaName) { + this.sourceSchemaName = sourceSchemaName; + this.__explicitlySet__.add("sourceSchemaName"); + return this; + } + /** The schema name from the database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetSchemaName") + private String targetSchemaName; + + /** + * The schema name from the database connection. + * + * @param targetSchemaName the value to set + * @return this builder + */ + public Builder targetSchemaName(String targetSchemaName) { + this.targetSchemaName = targetSchemaName; + this.__explicitlySet__.add("targetSchemaName"); + return this; + } + /** Array of source or target schema tables of a pipeline's assigned connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of source or target schema tables of a pipeline's assigned connection. + * + * @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 PipelineSchemaTableCollection build() { + PipelineSchemaTableCollection model = + new PipelineSchemaTableCollection( + this.sourceSchemaName, this.targetSchemaName, this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineSchemaTableCollection model) { + if (model.wasPropertyExplicitlySet("sourceSchemaName")) { + this.sourceSchemaName(model.getSourceSchemaName()); + } + if (model.wasPropertyExplicitlySet("targetSchemaName")) { + this.targetSchemaName(model.getTargetSchemaName()); + } + 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 schema name from the database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceSchemaName") + private final String sourceSchemaName; + + /** + * The schema name from the database connection. + * + * @return the value + */ + public String getSourceSchemaName() { + return sourceSchemaName; + } + + /** The schema name from the database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetSchemaName") + private final String targetSchemaName; + + /** + * The schema name from the database connection. + * + * @return the value + */ + public String getTargetSchemaName() { + return targetSchemaName; + } + + /** Array of source or target schema tables of a pipeline's assigned connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of source or target schema tables of a pipeline's assigned connection. + * + * @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("PipelineSchemaTableCollection("); + sb.append("super=").append(super.toString()); + sb.append("sourceSchemaName=").append(String.valueOf(this.sourceSchemaName)); + sb.append(", targetSchemaName=").append(String.valueOf(this.targetSchemaName)); + 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 PipelineSchemaTableCollection)) { + return false; + } + + PipelineSchemaTableCollection other = (PipelineSchemaTableCollection) o; + return java.util.Objects.equals(this.sourceSchemaName, other.sourceSchemaName) + && java.util.Objects.equals(this.targetSchemaName, other.targetSchemaName) + && 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.sourceSchemaName == null ? 43 : this.sourceSchemaName.hashCode()); + result = + (result * PRIME) + + (this.targetSchemaName == null ? 43 : this.targetSchemaName.hashCode()); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaTableSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaTableSummary.java new file mode 100644 index 00000000000..f115bd3fe1f --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSchemaTableSummary.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Summary of source or target schema tables of a pipeline's assigned connection. 1. If there is no + * explicit mapping defined for the pipeline then only matched source and target schema's table + * names will be returned 2. If there are explicit mappings defined for the pipeline then along with + * the mapped source and target schema's table names, the matched source and target schema's table + * names also will be returned.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineSchemaTableSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineSchemaTableSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"sourceTableName", "targetTableName"}) + public PipelineSchemaTableSummary(String sourceTableName, String targetTableName) { + super(); + this.sourceTableName = sourceTableName; + this.targetTableName = targetTableName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The table name from the schema of database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceTableName") + private String sourceTableName; + + /** + * The table name from the schema of database connection. + * + * @param sourceTableName the value to set + * @return this builder + */ + public Builder sourceTableName(String sourceTableName) { + this.sourceTableName = sourceTableName; + this.__explicitlySet__.add("sourceTableName"); + return this; + } + /** The table name from the schema of database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetTableName") + private String targetTableName; + + /** + * The table name from the schema of database connection. + * + * @param targetTableName the value to set + * @return this builder + */ + public Builder targetTableName(String targetTableName) { + this.targetTableName = targetTableName; + this.__explicitlySet__.add("targetTableName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineSchemaTableSummary build() { + PipelineSchemaTableSummary model = + new PipelineSchemaTableSummary(this.sourceTableName, this.targetTableName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineSchemaTableSummary model) { + if (model.wasPropertyExplicitlySet("sourceTableName")) { + this.sourceTableName(model.getSourceTableName()); + } + if (model.wasPropertyExplicitlySet("targetTableName")) { + this.targetTableName(model.getTargetTableName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The table name from the schema of database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceTableName") + private final String sourceTableName; + + /** + * The table name from the schema of database connection. + * + * @return the value + */ + public String getSourceTableName() { + return sourceTableName; + } + + /** The table name from the schema of database connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetTableName") + private final String targetTableName; + + /** + * The table name from the schema of database connection. + * + * @return the value + */ + public String getTargetTableName() { + return targetTableName; + } + + @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("PipelineSchemaTableSummary("); + sb.append("super=").append(super.toString()); + sb.append("sourceTableName=").append(String.valueOf(this.sourceTableName)); + sb.append(", targetTableName=").append(String.valueOf(this.targetTableName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineSchemaTableSummary)) { + return false; + } + + PipelineSchemaTableSummary other = (PipelineSchemaTableSummary) o; + return java.util.Objects.equals(this.sourceTableName, other.sourceTableName) + && java.util.Objects.equals(this.targetTableName, other.targetTableName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceTableName == null ? 43 : this.sourceTableName.hashCode()); + result = + (result * PRIME) + + (this.targetTableName == null ? 43 : this.targetTableName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSummary.java new file mode 100644 index 00000000000..a785a122f4b --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/PipelineSummary.java @@ -0,0 +1,478 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Summary details of the pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "recipeType", + defaultImpl = PipelineSummary.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ZeroEtlPipelineSummary.class, + name = "ZERO_ETL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class PipelineSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "sourceConnectionDetails", + "targetConnectionDetails", + "freeformTags", + "licenseModel", + "cpuCoreCount", + "isAutoScalingEnabled", + "definedTags", + "systemTags", + "locks", + "lifecycleState", + "lifecycleSubState", + "lifecycleDetails", + "timeCreated", + "timeUpdated" + }) + protected PipelineSummary( + String id, + String displayName, + String description, + String compartmentId, + SourcePipelineConnectionDetails sourceConnectionDetails, + TargetPipelineConnectionDetails targetConnectionDetails, + java.util.Map freeformTags, + LicenseModel licenseModel, + Integer cpuCoreCount, + Boolean isAutoScalingEnabled, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.List locks, + Pipeline.LifecycleState lifecycleState, + PipelineLifecycleSubState lifecycleSubState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.displayName = displayName; + this.description = description; + this.compartmentId = compartmentId; + this.sourceConnectionDetails = sourceConnectionDetails; + this.targetConnectionDetails = targetConnectionDetails; + this.freeformTags = freeformTags; + this.licenseModel = licenseModel; + this.cpuCoreCount = cpuCoreCount; + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.locks = locks; + this.lifecycleState = lifecycleState; + this.lifecycleSubState = lifecycleSubState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline. This option applies when retrieving a pipeline. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline. This option applies when retrieving a pipeline. + * + * @return the value + */ + public String getId() { + return id; + } + + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * An object's Display Name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Metadata about this specific object. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Metadata about this specific object. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment being referenced. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * compartment being referenced. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceConnectionDetails") + private final SourcePipelineConnectionDetails sourceConnectionDetails; + + public SourcePipelineConnectionDetails getSourceConnectionDetails() { + return sourceConnectionDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetConnectionDetails") + private final TargetPipelineConnectionDetails targetConnectionDetails; + + public TargetPipelineConnectionDetails getTargetConnectionDetails() { + return targetConnectionDetails; + } + + /** + * A 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; + + /** + * A 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; + } + + /** The Oracle license model that applies to a Deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to a Deployment. + * + * @return the value + */ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + /** The Minimum number of OCPUs to be made available for this Deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount") + private final Integer cpuCoreCount; + + /** + * The Minimum number of OCPUs to be made available for this Deployment. + * + * @return the value + */ + public Integer getCpuCoreCount() { + return cpuCoreCount; + } + + /** Indicates if auto scaling is enabled for the Deployment's CPU core count. */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private final Boolean isAutoScalingEnabled; + + /** + * Indicates if auto scaling is enabled for the Deployment's CPU core count. + * + * @return the value + */ + public Boolean getIsAutoScalingEnabled() { + return isAutoScalingEnabled; + } + + /** + * Tags defined 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; + + /** + * Tags defined 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; + } + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle + * Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {orcl-cloud: {free-tier-retain: true}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * The system tags associated with this resource, if any. The system tags are set by Oracle + * Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more + * information, see [Resource + * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {orcl-cloud: {free-tier-retain: true}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** Locks associated with this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private final java.util.List locks; + + /** + * Locks associated with this resource. + * + * @return the value + */ + public java.util.List getLocks() { + return locks; + } + + /** Lifecycle state for the pipeline summary. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Pipeline.LifecycleState lifecycleState; + + /** + * Lifecycle state for the pipeline summary. + * + * @return the value + */ + public Pipeline.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Possible lifecycle substates when retrieving a pipeline. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubState") + private final PipelineLifecycleSubState lifecycleSubState; + + /** + * Possible lifecycle substates when retrieving a pipeline. + * + * @return the value + */ + public PipelineLifecycleSubState getLifecycleSubState() { + return lifecycleSubState; + } + + /** + * Describes the object's current state in detail. For example, it can be used to provide + * actionable information for a resource in a Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Describes the object's current state in detail. For example, it can be used to provide + * actionable information for a resource in a Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The time the resource was created. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the resource was created. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the resource was last updated. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the resource was last updated. The format is defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code 2016-08-25T21:10:29.600Z}. + * + * @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("PipelineSummary("); + 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(", sourceConnectionDetails=") + .append(String.valueOf(this.sourceConnectionDetails)); + sb.append(", targetConnectionDetails=") + .append(String.valueOf(this.targetConnectionDetails)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(", cpuCoreCount=").append(String.valueOf(this.cpuCoreCount)); + sb.append(", isAutoScalingEnabled=").append(String.valueOf(this.isAutoScalingEnabled)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", locks=").append(String.valueOf(this.locks)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleSubState=").append(String.valueOf(this.lifecycleSubState)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineSummary)) { + return false; + } + + PipelineSummary other = (PipelineSummary) 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.sourceConnectionDetails, other.sourceConnectionDetails) + && java.util.Objects.equals( + this.targetConnectionDetails, other.targetConnectionDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.licenseModel, other.licenseModel) + && java.util.Objects.equals(this.cpuCoreCount, other.cpuCoreCount) + && java.util.Objects.equals(this.isAutoScalingEnabled, other.isAutoScalingEnabled) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.locks, other.locks) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleSubState, other.lifecycleSubState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && 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.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.sourceConnectionDetails == null + ? 43 + : this.sourceConnectionDetails.hashCode()); + result = + (result * PRIME) + + (this.targetConnectionDetails == null + ? 43 + : this.targetConnectionDetails.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + result = (result * PRIME) + (this.cpuCoreCount == null ? 43 : this.cpuCoreCount.hashCode()); + result = + (result * PRIME) + + (this.isAutoScalingEnabled == null + ? 43 + : this.isAutoScalingEnabled.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.locks == null ? 43 : this.locks.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleSubState == null ? 43 : this.lifecycleSubState.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) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ProcessOptions.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ProcessOptions.java new file mode 100644 index 00000000000..99a62a4d2e1 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ProcessOptions.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.goldengate.model; + +/** + * Required pipeline options to configure the replication process (Extract or Replicat).
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ProcessOptions.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ProcessOptions + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "initialDataLoad", + "replicateSchemaChange", + "shouldRestartOnFailure" + }) + public ProcessOptions( + InitialDataLoad initialDataLoad, + ReplicateSchemaChange replicateSchemaChange, + ShouldRestartOnFailure shouldRestartOnFailure) { + super(); + this.initialDataLoad = initialDataLoad; + this.replicateSchemaChange = replicateSchemaChange; + this.shouldRestartOnFailure = shouldRestartOnFailure; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("initialDataLoad") + private InitialDataLoad initialDataLoad; + + public Builder initialDataLoad(InitialDataLoad initialDataLoad) { + this.initialDataLoad = initialDataLoad; + this.__explicitlySet__.add("initialDataLoad"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicateSchemaChange") + private ReplicateSchemaChange replicateSchemaChange; + + public Builder replicateSchemaChange(ReplicateSchemaChange replicateSchemaChange) { + this.replicateSchemaChange = replicateSchemaChange; + this.__explicitlySet__.add("replicateSchemaChange"); + return this; + } + /** + * If ENABLED, then the replication process restarts itself upon failure. This option + * applies when creating or updating a pipeline. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shouldRestartOnFailure") + private ShouldRestartOnFailure shouldRestartOnFailure; + + /** + * If ENABLED, then the replication process restarts itself upon failure. This option + * applies when creating or updating a pipeline. + * + * @param shouldRestartOnFailure the value to set + * @return this builder + */ + public Builder shouldRestartOnFailure(ShouldRestartOnFailure shouldRestartOnFailure) { + this.shouldRestartOnFailure = shouldRestartOnFailure; + this.__explicitlySet__.add("shouldRestartOnFailure"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ProcessOptions build() { + ProcessOptions model = + new ProcessOptions( + this.initialDataLoad, + this.replicateSchemaChange, + this.shouldRestartOnFailure); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ProcessOptions model) { + if (model.wasPropertyExplicitlySet("initialDataLoad")) { + this.initialDataLoad(model.getInitialDataLoad()); + } + if (model.wasPropertyExplicitlySet("replicateSchemaChange")) { + this.replicateSchemaChange(model.getReplicateSchemaChange()); + } + if (model.wasPropertyExplicitlySet("shouldRestartOnFailure")) { + this.shouldRestartOnFailure(model.getShouldRestartOnFailure()); + } + 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("initialDataLoad") + private final InitialDataLoad initialDataLoad; + + public InitialDataLoad getInitialDataLoad() { + return initialDataLoad; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicateSchemaChange") + private final ReplicateSchemaChange replicateSchemaChange; + + public ReplicateSchemaChange getReplicateSchemaChange() { + return replicateSchemaChange; + } + + /** + * If ENABLED, then the replication process restarts itself upon failure. This option applies + * when creating or updating a pipeline. + */ + public enum ShouldRestartOnFailure implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * 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(ShouldRestartOnFailure.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ShouldRestartOnFailure v : ShouldRestartOnFailure.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ShouldRestartOnFailure(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ShouldRestartOnFailure create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ShouldRestartOnFailure', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * If ENABLED, then the replication process restarts itself upon failure. This option applies + * when creating or updating a pipeline. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shouldRestartOnFailure") + private final ShouldRestartOnFailure shouldRestartOnFailure; + + /** + * If ENABLED, then the replication process restarts itself upon failure. This option applies + * when creating or updating a pipeline. + * + * @return the value + */ + public ShouldRestartOnFailure getShouldRestartOnFailure() { + return shouldRestartOnFailure; + } + + @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("ProcessOptions("); + sb.append("super=").append(super.toString()); + sb.append("initialDataLoad=").append(String.valueOf(this.initialDataLoad)); + sb.append(", replicateSchemaChange=").append(String.valueOf(this.replicateSchemaChange)); + sb.append(", shouldRestartOnFailure=").append(String.valueOf(this.shouldRestartOnFailure)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ProcessOptions)) { + return false; + } + + ProcessOptions other = (ProcessOptions) o; + return java.util.Objects.equals(this.initialDataLoad, other.initialDataLoad) + && java.util.Objects.equals(this.replicateSchemaChange, other.replicateSchemaChange) + && java.util.Objects.equals( + this.shouldRestartOnFailure, other.shouldRestartOnFailure) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.initialDataLoad == null ? 43 : this.initialDataLoad.hashCode()); + result = + (result * PRIME) + + (this.replicateSchemaChange == null + ? 43 + : this.replicateSchemaChange.hashCode()); + result = + (result * PRIME) + + (this.shouldRestartOnFailure == null + ? 43 + : this.shouldRestartOnFailure.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ProcessStatusType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ProcessStatusType.java new file mode 100644 index 00000000000..b24272c5aa6 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ProcessStatusType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** The process (Extract or Replicat) status type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum ProcessStatusType implements com.oracle.bmc.http.internal.BmcEnum { + Stopped("STOPPED"), + Running("RUNNING"), + Error("ERROR"), + + /** + * 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(ProcessStatusType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ProcessStatusType v : ProcessStatusType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ProcessStatusType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ProcessStatusType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ProcessStatusType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ProcessType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ProcessType.java new file mode 100644 index 00000000000..0a3e04d1b09 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ProcessType.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.goldengate.model; + +/** The process type (Extract or Replicat). */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum ProcessType implements com.oracle.bmc.http.internal.BmcEnum { + Extract("EXTRACT"), + Replicat("REPLICAT"), + + /** + * 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(ProcessType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ProcessType v : ProcessType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ProcessType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ProcessType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ProcessType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RecipeSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RecipeSummary.java new file mode 100644 index 00000000000..7a8bf06bdde --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RecipeSummary.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.goldengate.model; + +/** + * The list of recipe details to create pipelines.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = RecipeSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RecipeSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "recipeType", + "name", + "displayName", + "description", + "supportedSourceTechnologyTypes", + "supportedTargetTechnologyTypes" + }) + public RecipeSummary( + RecipeType recipeType, + String name, + String displayName, + String description, + java.util.List supportedSourceTechnologyTypes, + java.util.List supportedTargetTechnologyTypes) { + super(); + this.recipeType = recipeType; + this.name = name; + this.displayName = displayName; + this.description = description; + this.supportedSourceTechnologyTypes = supportedSourceTechnologyTypes; + this.supportedTargetTechnologyTypes = supportedTargetTechnologyTypes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The type of the recipe */ + @com.fasterxml.jackson.annotation.JsonProperty("recipeType") + private RecipeType recipeType; + + /** + * The type of the recipe + * + * @param recipeType the value to set + * @return this builder + */ + public Builder recipeType(RecipeType recipeType) { + this.recipeType = recipeType; + this.__explicitlySet__.add("recipeType"); + return this; + } + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * An object's Display Name. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * An object's Display Name. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Metadata about this specific object. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Metadata about this specific object. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Array of supported technology types for this recipe. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedSourceTechnologyTypes") + private java.util.List supportedSourceTechnologyTypes; + + /** + * Array of supported technology types for this recipe. + * + * @param supportedSourceTechnologyTypes the value to set + * @return this builder + */ + public Builder supportedSourceTechnologyTypes( + java.util.List supportedSourceTechnologyTypes) { + this.supportedSourceTechnologyTypes = supportedSourceTechnologyTypes; + this.__explicitlySet__.add("supportedSourceTechnologyTypes"); + return this; + } + /** Array of supported technology types for this recipe. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedTargetTechnologyTypes") + private java.util.List supportedTargetTechnologyTypes; + + /** + * Array of supported technology types for this recipe. + * + * @param supportedTargetTechnologyTypes the value to set + * @return this builder + */ + public Builder supportedTargetTechnologyTypes( + java.util.List supportedTargetTechnologyTypes) { + this.supportedTargetTechnologyTypes = supportedTargetTechnologyTypes; + this.__explicitlySet__.add("supportedTargetTechnologyTypes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RecipeSummary build() { + RecipeSummary model = + new RecipeSummary( + this.recipeType, + this.name, + this.displayName, + this.description, + this.supportedSourceTechnologyTypes, + this.supportedTargetTechnologyTypes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RecipeSummary model) { + if (model.wasPropertyExplicitlySet("recipeType")) { + this.recipeType(model.getRecipeType()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("supportedSourceTechnologyTypes")) { + this.supportedSourceTechnologyTypes(model.getSupportedSourceTechnologyTypes()); + } + if (model.wasPropertyExplicitlySet("supportedTargetTechnologyTypes")) { + this.supportedTargetTechnologyTypes(model.getSupportedTargetTechnologyTypes()); + } + 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 recipe */ + @com.fasterxml.jackson.annotation.JsonProperty("recipeType") + private final RecipeType recipeType; + + /** + * The type of the recipe + * + * @return the value + */ + public RecipeType getRecipeType() { + return recipeType; + } + + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * An object's Display Name. + * + * @return the value + */ + public String getName() { + return name; + } + + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * An object's Display Name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Metadata about this specific object. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Metadata about this specific object. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Array of supported technology types for this recipe. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedSourceTechnologyTypes") + private final java.util.List supportedSourceTechnologyTypes; + + /** + * Array of supported technology types for this recipe. + * + * @return the value + */ + public java.util.List getSupportedSourceTechnologyTypes() { + return supportedSourceTechnologyTypes; + } + + /** Array of supported technology types for this recipe. */ + @com.fasterxml.jackson.annotation.JsonProperty("supportedTargetTechnologyTypes") + private final java.util.List supportedTargetTechnologyTypes; + + /** + * Array of supported technology types for this recipe. + * + * @return the value + */ + public java.util.List getSupportedTargetTechnologyTypes() { + return supportedTargetTechnologyTypes; + } + + @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("RecipeSummary("); + sb.append("super=").append(super.toString()); + sb.append("recipeType=").append(String.valueOf(this.recipeType)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", supportedSourceTechnologyTypes=") + .append(String.valueOf(this.supportedSourceTechnologyTypes)); + sb.append(", supportedTargetTechnologyTypes=") + .append(String.valueOf(this.supportedTargetTechnologyTypes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RecipeSummary)) { + return false; + } + + RecipeSummary other = (RecipeSummary) o; + return java.util.Objects.equals(this.recipeType, other.recipeType) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.supportedSourceTechnologyTypes, other.supportedSourceTechnologyTypes) + && java.util.Objects.equals( + this.supportedTargetTechnologyTypes, other.supportedTargetTechnologyTypes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.recipeType == null ? 43 : this.recipeType.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.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.supportedSourceTechnologyTypes == null + ? 43 + : this.supportedSourceTechnologyTypes.hashCode()); + result = + (result * PRIME) + + (this.supportedTargetTechnologyTypes == null + ? 43 + : this.supportedTargetTechnologyTypes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RecipeSummaryCollection.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RecipeSummaryCollection.java new file mode 100644 index 00000000000..fdaa55e8b42 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RecipeSummaryCollection.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.goldengate.model; + +/** + * The list of Recipe objects.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RecipeSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RecipeSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public RecipeSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Array of Recipe Summary */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array of Recipe Summary + * + * @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 RecipeSummaryCollection build() { + RecipeSummaryCollection model = new RecipeSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RecipeSummaryCollection 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); + } + + /** Array of Recipe Summary */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array of Recipe Summary + * + * @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("RecipeSummaryCollection("); + 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 RecipeSummaryCollection)) { + return false; + } + + RecipeSummaryCollection other = (RecipeSummaryCollection) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RecipeType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RecipeType.java new file mode 100644 index 00000000000..f83293df23d --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/RecipeType.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.goldengate.model; + +/** Possible recipe types for a pipeline. A recipe is a set of steps that run in a sequence. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum RecipeType implements com.oracle.bmc.http.internal.BmcEnum { + ZeroEtl("ZERO_ETL"), + + /** + * 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(RecipeType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RecipeType v : RecipeType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RecipeType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RecipeType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RecipeType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ReplicateDdlErrorAction.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ReplicateDdlErrorAction.java new file mode 100644 index 00000000000..bba7142cf9e --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ReplicateDdlErrorAction.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * The action to take when a DDL error occurs during replication. Active only if Replicate schema + * changes (canReplicateSchemaChange=true) is selected. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum ReplicateDdlErrorAction implements com.oracle.bmc.http.internal.BmcEnum { + Terminate("TERMINATE"), + Discard("DISCARD"), + Ignore("IGNORE"), + + /** + * 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(ReplicateDdlErrorAction.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReplicateDdlErrorAction v : ReplicateDdlErrorAction.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ReplicateDdlErrorAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReplicateDdlErrorAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ReplicateDdlErrorAction', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ReplicateDmlErrorAction.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ReplicateDmlErrorAction.java new file mode 100644 index 00000000000..961e319ba77 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ReplicateDmlErrorAction.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * The action to take when a DML error occurs during replication. Active only if Replicate schema + * changes (canReplicateSchemaChange=true) is selected. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum ReplicateDmlErrorAction implements com.oracle.bmc.http.internal.BmcEnum { + Terminate("TERMINATE"), + Discard("DISCARD"), + Ignore("IGNORE"), + + /** + * 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(ReplicateDmlErrorAction.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ReplicateDmlErrorAction v : ReplicateDmlErrorAction.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ReplicateDmlErrorAction(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ReplicateDmlErrorAction create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ReplicateDmlErrorAction', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ReplicateSchemaChange.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ReplicateSchemaChange.java new file mode 100644 index 00000000000..7ced1a9d395 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ReplicateSchemaChange.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.goldengate.model; + +/** + * Options required for pipeline Initial Data Load. If enabled, copies existing data from source to + * target before replication.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReplicateSchemaChange.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ReplicateSchemaChange + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "canReplicateSchemaChange", + "actionOnDdlError", + "actionOnDmlError" + }) + public ReplicateSchemaChange( + CanReplicateSchemaChange canReplicateSchemaChange, + ReplicateDdlErrorAction actionOnDdlError, + ReplicateDmlErrorAction actionOnDmlError) { + super(); + this.canReplicateSchemaChange = canReplicateSchemaChange; + this.actionOnDdlError = actionOnDdlError; + this.actionOnDmlError = actionOnDmlError; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * If ENABLED, then addition or removal of schema is also replicated, apart from individual + * tables and records when creating or updating the pipeline. + */ + @com.fasterxml.jackson.annotation.JsonProperty("canReplicateSchemaChange") + private CanReplicateSchemaChange canReplicateSchemaChange; + + /** + * If ENABLED, then addition or removal of schema is also replicated, apart from individual + * tables and records when creating or updating the pipeline. + * + * @param canReplicateSchemaChange the value to set + * @return this builder + */ + public Builder canReplicateSchemaChange(CanReplicateSchemaChange canReplicateSchemaChange) { + this.canReplicateSchemaChange = canReplicateSchemaChange; + this.__explicitlySet__.add("canReplicateSchemaChange"); + return this; + } + /** + * Action upon DDL Error (active only if 'Replicate schema changes (DDL)' is selected) i.e + * canReplicateSchemaChange=true + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOnDdlError") + private ReplicateDdlErrorAction actionOnDdlError; + + /** + * Action upon DDL Error (active only if 'Replicate schema changes (DDL)' is selected) i.e + * canReplicateSchemaChange=true + * + * @param actionOnDdlError the value to set + * @return this builder + */ + public Builder actionOnDdlError(ReplicateDdlErrorAction actionOnDdlError) { + this.actionOnDdlError = actionOnDdlError; + this.__explicitlySet__.add("actionOnDdlError"); + return this; + } + /** + * Action upon DML Error (active only if 'Replicate schema changes (DDL)' is selected) i.e + * canReplicateSchemaChange=true + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOnDmlError") + private ReplicateDmlErrorAction actionOnDmlError; + + /** + * Action upon DML Error (active only if 'Replicate schema changes (DDL)' is selected) i.e + * canReplicateSchemaChange=true + * + * @param actionOnDmlError the value to set + * @return this builder + */ + public Builder actionOnDmlError(ReplicateDmlErrorAction actionOnDmlError) { + this.actionOnDmlError = actionOnDmlError; + this.__explicitlySet__.add("actionOnDmlError"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ReplicateSchemaChange build() { + ReplicateSchemaChange model = + new ReplicateSchemaChange( + this.canReplicateSchemaChange, + this.actionOnDdlError, + this.actionOnDmlError); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReplicateSchemaChange model) { + if (model.wasPropertyExplicitlySet("canReplicateSchemaChange")) { + this.canReplicateSchemaChange(model.getCanReplicateSchemaChange()); + } + if (model.wasPropertyExplicitlySet("actionOnDdlError")) { + this.actionOnDdlError(model.getActionOnDdlError()); + } + if (model.wasPropertyExplicitlySet("actionOnDmlError")) { + this.actionOnDmlError(model.getActionOnDmlError()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * If ENABLED, then addition or removal of schema is also replicated, apart from individual + * tables and records when creating or updating the pipeline. + */ + public enum CanReplicateSchemaChange implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * 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(CanReplicateSchemaChange.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CanReplicateSchemaChange v : CanReplicateSchemaChange.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CanReplicateSchemaChange(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CanReplicateSchemaChange create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CanReplicateSchemaChange', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * If ENABLED, then addition or removal of schema is also replicated, apart from individual + * tables and records when creating or updating the pipeline. + */ + @com.fasterxml.jackson.annotation.JsonProperty("canReplicateSchemaChange") + private final CanReplicateSchemaChange canReplicateSchemaChange; + + /** + * If ENABLED, then addition or removal of schema is also replicated, apart from individual + * tables and records when creating or updating the pipeline. + * + * @return the value + */ + public CanReplicateSchemaChange getCanReplicateSchemaChange() { + return canReplicateSchemaChange; + } + + /** + * Action upon DDL Error (active only if 'Replicate schema changes (DDL)' is selected) i.e + * canReplicateSchemaChange=true + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOnDdlError") + private final ReplicateDdlErrorAction actionOnDdlError; + + /** + * Action upon DDL Error (active only if 'Replicate schema changes (DDL)' is selected) i.e + * canReplicateSchemaChange=true + * + * @return the value + */ + public ReplicateDdlErrorAction getActionOnDdlError() { + return actionOnDdlError; + } + + /** + * Action upon DML Error (active only if 'Replicate schema changes (DDL)' is selected) i.e + * canReplicateSchemaChange=true + */ + @com.fasterxml.jackson.annotation.JsonProperty("actionOnDmlError") + private final ReplicateDmlErrorAction actionOnDmlError; + + /** + * Action upon DML Error (active only if 'Replicate schema changes (DDL)' is selected) i.e + * canReplicateSchemaChange=true + * + * @return the value + */ + public ReplicateDmlErrorAction getActionOnDmlError() { + return actionOnDmlError; + } + + @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("ReplicateSchemaChange("); + sb.append("super=").append(super.toString()); + sb.append("canReplicateSchemaChange=") + .append(String.valueOf(this.canReplicateSchemaChange)); + sb.append(", actionOnDdlError=").append(String.valueOf(this.actionOnDdlError)); + sb.append(", actionOnDmlError=").append(String.valueOf(this.actionOnDmlError)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicateSchemaChange)) { + return false; + } + + ReplicateSchemaChange other = (ReplicateSchemaChange) o; + return java.util.Objects.equals( + this.canReplicateSchemaChange, other.canReplicateSchemaChange) + && java.util.Objects.equals(this.actionOnDdlError, other.actionOnDdlError) + && java.util.Objects.equals(this.actionOnDmlError, other.actionOnDmlError) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.canReplicateSchemaChange == null + ? 43 + : this.canReplicateSchemaChange.hashCode()); + result = + (result * PRIME) + + (this.actionOnDdlError == null ? 43 : this.actionOnDdlError.hashCode()); + result = + (result * PRIME) + + (this.actionOnDmlError == null ? 43 : this.actionOnDmlError.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SeverityType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SeverityType.java new file mode 100644 index 00000000000..6f0f5cfd101 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SeverityType.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Message severity of GoldenGate APIs called for a step in a recipe. + * https://docs.oracle.com/en/middleware/goldengate/core/23/oggra/rest-endpoints.html + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum SeverityType implements com.oracle.bmc.http.internal.BmcEnum { + Info("INFO"), + Error("ERROR"), + 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(SeverityType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SeverityType v : SeverityType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SeverityType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SeverityType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SeverityType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SourcePipelineConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SourcePipelineConnectionDetails.java new file mode 100644 index 00000000000..4769d0b71e5 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/SourcePipelineConnectionDetails.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.goldengate.model; + +/** + * The source connection details for creating a pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SourcePipelineConnectionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SourcePipelineConnectionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"connectionId"}) + public SourcePipelineConnectionDetails(String connectionId) { + super(); + this.connectionId = connectionId; + } + + @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 + * connection being referenced. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionId") + private String connectionId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * connection being referenced. + * + * @param connectionId the value to set + * @return this builder + */ + public Builder connectionId(String connectionId) { + this.connectionId = connectionId; + this.__explicitlySet__.add("connectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SourcePipelineConnectionDetails build() { + SourcePipelineConnectionDetails model = + new SourcePipelineConnectionDetails(this.connectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SourcePipelineConnectionDetails model) { + if (model.wasPropertyExplicitlySet("connectionId")) { + this.connectionId(model.getConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * connection being referenced. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionId") + private final String connectionId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * connection being referenced. + * + * @return the value + */ + public String getConnectionId() { + return connectionId; + } + + @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("SourcePipelineConnectionDetails("); + sb.append("super=").append(super.toString()); + sb.append("connectionId=").append(String.valueOf(this.connectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SourcePipelineConnectionDetails)) { + return false; + } + + SourcePipelineConnectionDetails other = (SourcePipelineConnectionDetails) o; + return java.util.Objects.equals(this.connectionId, other.connectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.connectionId == null ? 43 : this.connectionId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StartPipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StartPipelineDetails.java new file mode 100644 index 00000000000..d2461e18af4 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StartPipelineDetails.java @@ -0,0 +1,78 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Details with which to start a pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = StartPipelineDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DefaultStartPipelineDetails.class, + name = "DEFAULT") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class StartPipelineDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected StartPipelineDetails() { + 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("StartPipelineDetails("); + 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 StartPipelineDetails)) { + return false; + } + + StartPipelineDetails other = (StartPipelineDetails) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StartPipelineType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StartPipelineType.java new file mode 100644 index 00000000000..0bf9a835885 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StartPipelineType.java @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** The pipeline start type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum StartPipelineType implements com.oracle.bmc.http.internal.BmcEnum { + Default("DEFAULT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StartPipelineType v : StartPipelineType.values()) { + map.put(v.getValue(), v); + } + } + + StartPipelineType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StartPipelineType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid StartPipelineType: " + key); + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StepMessage.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StepMessage.java new file mode 100644 index 00000000000..3f0152c787a --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StepMessage.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.goldengate.model; + +/** + * Contents of a step message.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = StepMessage.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class StepMessage extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"message", "code", "timestamp", "severity"}) + public StepMessage( + String message, String code, java.util.Date timestamp, SeverityType severity) { + super(); + this.message = message; + this.code = code; + this.timestamp = timestamp; + this.severity = severity; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The status message of the steps in a recipe during pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/oggra/rest-endpoints.html + */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * The status message of the steps in a recipe during pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/oggra/rest-endpoints.html + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The code returned when GoldenGate reports an error while running a step during pipeline + * initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/error-messages/ogg-00001-ogg-40000.html#GUID-97FF7AA7-7A5C-4AA7-B29F-3CC8D26761F2 + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * The code returned when GoldenGate reports an error while running a step during pipeline + * initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/error-messages/ogg-00001-ogg-40000.html#GUID-97FF7AA7-7A5C-4AA7-B29F-3CC8D26761F2 + * + * @param code the value to set + * @return this builder + */ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** + * Date and time of a message issued by steps in a recipe during pipeline initialization. + * The format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * Date and time of a message issued by steps in a recipe during pipeline initialization. + * The format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + * + * @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; + } + /** + * The severity returned when calling GoldenGate API messages for a step in a recipe during + * pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/oggra/rest-endpoints.html + */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private SeverityType severity; + + /** + * The severity returned when calling GoldenGate API messages for a step in a recipe during + * pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/oggra/rest-endpoints.html + * + * @param severity the value to set + * @return this builder + */ + public Builder severity(SeverityType severity) { + this.severity = severity; + this.__explicitlySet__.add("severity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StepMessage build() { + StepMessage model = + new StepMessage(this.message, this.code, this.timestamp, this.severity); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StepMessage model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + if (model.wasPropertyExplicitlySet("severity")) { + this.severity(model.getSeverity()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The status message of the steps in a recipe during pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/oggra/rest-endpoints.html + */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * The status message of the steps in a recipe during pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/oggra/rest-endpoints.html + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** + * The code returned when GoldenGate reports an error while running a step during pipeline + * initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/error-messages/ogg-00001-ogg-40000.html#GUID-97FF7AA7-7A5C-4AA7-B29F-3CC8D26761F2 + */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * The code returned when GoldenGate reports an error while running a step during pipeline + * initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/error-messages/ogg-00001-ogg-40000.html#GUID-97FF7AA7-7A5C-4AA7-B29F-3CC8D26761F2 + * + * @return the value + */ + public String getCode() { + return code; + } + + /** + * Date and time of a message issued by steps in a recipe during pipeline initialization. The + * format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * Date and time of a message issued by steps in a recipe during pipeline initialization. The + * format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + /** + * The severity returned when calling GoldenGate API messages for a step in a recipe during + * pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/oggra/rest-endpoints.html + */ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + private final SeverityType severity; + + /** + * The severity returned when calling GoldenGate API messages for a step in a recipe during + * pipeline initialization. + * https://docs.oracle.com/en/middleware/goldengate/core/23/oggra/rest-endpoints.html + * + * @return the value + */ + public SeverityType getSeverity() { + return severity; + } + + @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("StepMessage("); + sb.append("super=").append(super.toString()); + sb.append("message=").append(String.valueOf(this.message)); + sb.append(", code=").append(String.valueOf(this.code)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(", severity=").append(String.valueOf(this.severity)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StepMessage)) { + return false; + } + + StepMessage other = (StepMessage) o; + return java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && java.util.Objects.equals(this.severity, other.severity) + && 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.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + (this.severity == null ? 43 : this.severity.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StepStatusType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StepStatusType.java new file mode 100644 index 00000000000..fd36ca8d0d4 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StepStatusType.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.goldengate.model; + +/** Current status of a recipe step. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum StepStatusType implements com.oracle.bmc.http.internal.BmcEnum { + Pending("PENDING"), + InProgress("IN_PROGRESS"), + Completed("COMPLETED"), + 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(StepStatusType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StepStatusType v : StepStatusType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + StepStatusType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StepStatusType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'StepStatusType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StopPipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StopPipelineDetails.java new file mode 100644 index 00000000000..3dcefaa9b25 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StopPipelineDetails.java @@ -0,0 +1,77 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Details for a pipeline stop.
+ * 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: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = StopPipelineDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DefaultStopPipelineDetails.class, + name = "DEFAULT") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class StopPipelineDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected StopPipelineDetails() { + 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("StopPipelineDetails("); + 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 StopPipelineDetails)) { + return false; + } + + StopPipelineDetails other = (StopPipelineDetails) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StopPipelineType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StopPipelineType.java new file mode 100644 index 00000000000..5798b5a46b6 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/StopPipelineType.java @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** The pipeline stop type. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum StopPipelineType implements com.oracle.bmc.http.internal.BmcEnum { + Default("DEFAULT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (StopPipelineType v : StopPipelineType.values()) { + map.put(v.getValue(), v); + } + } + + StopPipelineType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StopPipelineType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid StopPipelineType: " + key); + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TargetPipelineConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TargetPipelineConnectionDetails.java new file mode 100644 index 00000000000..b9a38f8a70b --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TargetPipelineConnectionDetails.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.goldengate.model; + +/** + * The target connection details for creating a pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TargetPipelineConnectionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TargetPipelineConnectionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"connectionId"}) + public TargetPipelineConnectionDetails(String connectionId) { + super(); + this.connectionId = connectionId; + } + + @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 + * connection being referenced. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionId") + private String connectionId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * connection being referenced. + * + * @param connectionId the value to set + * @return this builder + */ + public Builder connectionId(String connectionId) { + this.connectionId = connectionId; + this.__explicitlySet__.add("connectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TargetPipelineConnectionDetails build() { + TargetPipelineConnectionDetails model = + new TargetPipelineConnectionDetails(this.connectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TargetPipelineConnectionDetails model) { + if (model.wasPropertyExplicitlySet("connectionId")) { + this.connectionId(model.getConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * connection being referenced. + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionId") + private final String connectionId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * connection being referenced. + * + * @return the value + */ + public String getConnectionId() { + return connectionId; + } + + @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("TargetPipelineConnectionDetails("); + sb.append("super=").append(super.toString()); + sb.append("connectionId=").append(String.valueOf(this.connectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TargetPipelineConnectionDetails)) { + return false; + } + + TargetPipelineConnectionDetails other = (TargetPipelineConnectionDetails) o; + return java.util.Objects.equals(this.connectionId, other.connectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.connectionId == null ? 43 : this.connectionId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java index 36126e8149e..6dd37f6163a 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TechnologyType.java @@ -62,7 +62,15 @@ public enum TechnologyType implements com.oracle.bmc.http.internal.BmcEnum { Singlestoredb("SINGLESTOREDB"), SinglestoredbCloud("SINGLESTOREDB_CLOUD"), Snowflake("SNOWFLAKE"), - ; + + /** + * 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(TechnologyType.class); private final String value; private static java.util.Map map; @@ -70,7 +78,9 @@ public enum TechnologyType implements com.oracle.bmc.http.internal.BmcEnum { static { map = new java.util.HashMap<>(); for (TechnologyType v : TechnologyType.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -88,6 +98,9 @@ public static TechnologyType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid TechnologyType: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'TechnologyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; } } diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionDetails.java new file mode 100644 index 00000000000..da6ed27abc6 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionDetails.java @@ -0,0 +1,78 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Details about testing the pipeline's assigned connection.
+ * 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: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = TestPipelineConnectionDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DefaultTestPipelineConnectionDetails.class, + name = "DEFAULT") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class TestPipelineConnectionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected TestPipelineConnectionDetails() { + 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("TestPipelineConnectionDetails("); + 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 TestPipelineConnectionDetails)) { + return false; + } + + TestPipelineConnectionDetails other = (TestPipelineConnectionDetails) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionError.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionError.java new file mode 100644 index 00000000000..abfb567991b --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionError.java @@ -0,0 +1,241 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * The error returned when a pipeline connection fails to connect.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TestPipelineConnectionError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TestPipelineConnectionError + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "message", "issue", "action"}) + public TestPipelineConnectionError(String code, String message, String issue, String action) { + super(); + this.code = code; + this.message = message; + this.issue = issue; + this.action = action; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A short error code that defines the error, meant for programmatic parsing. */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A short error code that defines the error, meant for programmatic parsing. + * + * @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 error string. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human-readable error string. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** The text describing the root cause of the reported issue. */ + @com.fasterxml.jackson.annotation.JsonProperty("issue") + private String issue; + + /** + * The text describing the root cause of the reported issue. + * + * @param issue the value to set + * @return this builder + */ + public Builder issue(String issue) { + this.issue = issue; + this.__explicitlySet__.add("issue"); + return this; + } + /** The text describing the action required to fix the issue. */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private String action; + + /** + * The text describing the action required to fix the issue. + * + * @param action the value to set + * @return this builder + */ + public Builder action(String action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TestPipelineConnectionError build() { + TestPipelineConnectionError model = + new TestPipelineConnectionError( + this.code, this.message, this.issue, this.action); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TestPipelineConnectionError model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("issue")) { + this.issue(model.getIssue()); + } + if (model.wasPropertyExplicitlySet("action")) { + this.action(model.getAction()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A short error code that defines the error, meant for programmatic parsing. */ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A short error code that defines the error, meant for programmatic parsing. + * + * @return the value + */ + public String getCode() { + return code; + } + + /** A human-readable error string. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable error string. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** The text describing the root cause of the reported issue. */ + @com.fasterxml.jackson.annotation.JsonProperty("issue") + private final String issue; + + /** + * The text describing the root cause of the reported issue. + * + * @return the value + */ + public String getIssue() { + return issue; + } + + /** The text describing the action required to fix the issue. */ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final String action; + + /** + * The text describing the action required to fix the issue. + * + * @return the value + */ + public String getAction() { + return action; + } + + @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("TestPipelineConnectionError("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", issue=").append(String.valueOf(this.issue)); + sb.append(", action=").append(String.valueOf(this.action)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TestPipelineConnectionError)) { + return false; + } + + TestPipelineConnectionError other = (TestPipelineConnectionError) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.issue, other.issue) + && java.util.Objects.equals(this.action, other.action) + && 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.issue == null ? 43 : this.issue.hashCode()); + result = (result * PRIME) + (this.action == null ? 43 : this.action.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionResult.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionResult.java new file mode 100644 index 00000000000..e9f4e74c9de --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionResult.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Result of the connectivity test performed on a pipeline's assigned connection.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TestPipelineConnectionResult.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class TestPipelineConnectionResult + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"resultType", "error"}) + public TestPipelineConnectionResult(ResultType resultType, TestPipelineConnectionError error) { + super(); + this.resultType = resultType; + this.error = error; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of result, either Succeeded, Failed, or Timed out. */ + @com.fasterxml.jackson.annotation.JsonProperty("resultType") + private ResultType resultType; + + /** + * Type of result, either Succeeded, Failed, or Timed out. + * + * @param resultType the value to set + * @return this builder + */ + public Builder resultType(ResultType resultType) { + this.resultType = resultType; + this.__explicitlySet__.add("resultType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("error") + private TestPipelineConnectionError error; + + public Builder error(TestPipelineConnectionError error) { + this.error = error; + this.__explicitlySet__.add("error"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TestPipelineConnectionResult build() { + TestPipelineConnectionResult model = + new TestPipelineConnectionResult(this.resultType, this.error); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TestPipelineConnectionResult model) { + if (model.wasPropertyExplicitlySet("resultType")) { + this.resultType(model.getResultType()); + } + if (model.wasPropertyExplicitlySet("error")) { + this.error(model.getError()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of result, either Succeeded, Failed, or Timed out. */ + public enum ResultType implements com.oracle.bmc.http.internal.BmcEnum { + Succeeded("SUCCEEDED"), + Failed("FAILED"), + 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(ResultType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ResultType v : ResultType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ResultType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ResultType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ResultType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of result, either Succeeded, Failed, or Timed out. */ + @com.fasterxml.jackson.annotation.JsonProperty("resultType") + private final ResultType resultType; + + /** + * Type of result, either Succeeded, Failed, or Timed out. + * + * @return the value + */ + public ResultType getResultType() { + return resultType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("error") + private final TestPipelineConnectionError error; + + public TestPipelineConnectionError getError() { + return error; + } + + @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("TestPipelineConnectionResult("); + sb.append("super=").append(super.toString()); + sb.append("resultType=").append(String.valueOf(this.resultType)); + sb.append(", error=").append(String.valueOf(this.error)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TestPipelineConnectionResult)) { + return false; + } + + TestPipelineConnectionResult other = (TestPipelineConnectionResult) o; + return java.util.Objects.equals(this.resultType, other.resultType) + && java.util.Objects.equals(this.error, other.error) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.resultType == null ? 43 : this.resultType.hashCode()); + result = (result * PRIME) + (this.error == null ? 43 : this.error.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionType.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionType.java new file mode 100644 index 00000000000..3d255c3525d --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/TestPipelineConnectionType.java @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** Type of test to perform on a pipeline's assigned connection. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public enum TestPipelineConnectionType implements com.oracle.bmc.http.internal.BmcEnum { + Default("DEFAULT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TestPipelineConnectionType v : TestPipelineConnectionType.values()) { + map.put(v.getValue(), v); + } + } + + TestPipelineConnectionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TestPipelineConnectionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TestPipelineConnectionType: " + key); + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java index d6b31ff8e11..0d28ab6eb49 100644 --- a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateMysqlConnectionDetails.java @@ -319,14 +319,14 @@ public Builder sslCert(String sslCert) { return this; } /** - * Client Key \u2013 The base64 encoded content of a .pem or .crt file containing the client + * Client Key - The base64 encoded content of a .pem or .crt file containing the client * private key (for 2-way SSL). */ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") private String sslKey; /** - * Client Key \u2013 The base64 encoded content of a .pem or .crt file containing the client + * Client Key - The base64 encoded content of a .pem or .crt file containing the client * private key (for 2-way SSL). * * @param sslKey the value to set @@ -802,15 +802,15 @@ public String getSslCert() { } /** - * Client Key \u2013 The base64 encoded content of a .pem or .crt file containing the client - * private key (for 2-way SSL). + * Client Key - The base64 encoded content of a .pem or .crt file containing the client private + * key (for 2-way SSL). */ @com.fasterxml.jackson.annotation.JsonProperty("sslKey") private final String sslKey; /** - * Client Key \u2013 The base64 encoded content of a .pem or .crt file containing the client - * private key (for 2-way SSL). + * Client Key - The base64 encoded content of a .pem or .crt file containing the client private + * key (for 2-way SSL). * * @return the value */ diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePipelineDetails.java new file mode 100644 index 00000000000..d55b18aeb52 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdatePipelineDetails.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.goldengate.model; + +/** + * Information with which to update a pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "recipeType", + defaultImpl = UpdatePipelineDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateZeroEtlPipelineDetails.class, + name = "ZERO_ETL") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdatePipelineDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "licenseModel", + "freeformTags", + "definedTags" + }) + protected UpdatePipelineDetails( + String displayName, + String description, + LicenseModel licenseModel, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.licenseModel = licenseModel; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + /** An object's Display Name. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * An object's Display Name. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Metadata about this specific object. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Metadata about this specific object. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** The Oracle license model that applies to a Deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to a Deployment. + * + * @return the value + */ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + /** + * A 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; + + /** + * A 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; + } + + /** + * Tags defined 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; + + /** + * Tags defined 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("UpdatePipelineDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + 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 UpdatePipelineDetails)) { + return false; + } + + UpdatePipelineDetails other = (UpdatePipelineDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.licenseModel, other.licenseModel) + && 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.licenseModel == null ? 43 : this.licenseModel.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-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateZeroEtlPipelineDetails.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateZeroEtlPipelineDetails.java new file mode 100644 index 00000000000..8a54e3cfd1f --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/UpdateZeroEtlPipelineDetails.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.goldengate.model; + +/** + * Information to update for an existing ZeroETL pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateZeroEtlPipelineDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "recipeType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateZeroEtlPipelineDetails extends UpdatePipelineDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + 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.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processOptions") + private ProcessOptions processOptions; + + public Builder processOptions(ProcessOptions processOptions) { + this.processOptions = processOptions; + this.__explicitlySet__.add("processOptions"); + return this; + } + /** Mapping for source/target schema/tables for the pipeline data replication. */ + @com.fasterxml.jackson.annotation.JsonProperty("mappingRules") + private java.util.List mappingRules; + + /** + * Mapping for source/target schema/tables for the pipeline data replication. + * + * @param mappingRules the value to set + * @return this builder + */ + public Builder mappingRules(java.util.List mappingRules) { + this.mappingRules = mappingRules; + this.__explicitlySet__.add("mappingRules"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateZeroEtlPipelineDetails build() { + UpdateZeroEtlPipelineDetails model = + new UpdateZeroEtlPipelineDetails( + this.displayName, + this.description, + this.licenseModel, + this.freeformTags, + this.definedTags, + this.processOptions, + this.mappingRules); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateZeroEtlPipelineDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("processOptions")) { + this.processOptions(model.getProcessOptions()); + } + if (model.wasPropertyExplicitlySet("mappingRules")) { + this.mappingRules(model.getMappingRules()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateZeroEtlPipelineDetails( + String displayName, + String description, + LicenseModel licenseModel, + java.util.Map freeformTags, + java.util.Map> definedTags, + ProcessOptions processOptions, + java.util.List mappingRules) { + super(displayName, description, licenseModel, freeformTags, definedTags); + this.processOptions = processOptions; + this.mappingRules = mappingRules; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processOptions") + private final ProcessOptions processOptions; + + public ProcessOptions getProcessOptions() { + return processOptions; + } + + /** Mapping for source/target schema/tables for the pipeline data replication. */ + @com.fasterxml.jackson.annotation.JsonProperty("mappingRules") + private final java.util.List mappingRules; + + /** + * Mapping for source/target schema/tables for the pipeline data replication. + * + * @return the value + */ + public java.util.List getMappingRules() { + return mappingRules; + } + + @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("UpdateZeroEtlPipelineDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", processOptions=").append(String.valueOf(this.processOptions)); + sb.append(", mappingRules=").append(String.valueOf(this.mappingRules)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateZeroEtlPipelineDetails)) { + return false; + } + + UpdateZeroEtlPipelineDetails other = (UpdateZeroEtlPipelineDetails) o; + return java.util.Objects.equals(this.processOptions, other.processOptions) + && java.util.Objects.equals(this.mappingRules, other.mappingRules) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.processOptions == null ? 43 : this.processOptions.hashCode()); + result = (result * PRIME) + (this.mappingRules == null ? 43 : this.mappingRules.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ZeroEtlPipeline.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ZeroEtlPipeline.java new file mode 100644 index 00000000000..b0a26db0ab2 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ZeroEtlPipeline.java @@ -0,0 +1,487 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * The details of a ZeroETL pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ZeroEtlPipeline.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "recipeType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ZeroEtlPipeline extends Pipeline { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + 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.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount") + private Integer cpuCoreCount; + + public Builder cpuCoreCount(Integer cpuCoreCount) { + this.cpuCoreCount = cpuCoreCount; + this.__explicitlySet__.add("cpuCoreCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private Boolean isAutoScalingEnabled; + + public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) { + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.__explicitlySet__.add("isAutoScalingEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceConnectionDetails") + private SourcePipelineConnectionDetails sourceConnectionDetails; + + public Builder sourceConnectionDetails( + SourcePipelineConnectionDetails sourceConnectionDetails) { + this.sourceConnectionDetails = sourceConnectionDetails; + this.__explicitlySet__.add("sourceConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetConnectionDetails") + private TargetPipelineConnectionDetails targetConnectionDetails; + + public Builder targetConnectionDetails( + TargetPipelineConnectionDetails targetConnectionDetails) { + this.targetConnectionDetails = targetConnectionDetails; + this.__explicitlySet__.add("targetConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubState") + private PipelineLifecycleSubState lifecycleSubState; + + public Builder lifecycleSubState(PipelineLifecycleSubState lifecycleSubState) { + this.lifecycleSubState = lifecycleSubState; + this.__explicitlySet__.add("lifecycleSubState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Mapping for source/target schema/tables for the pipeline data replication. */ + @com.fasterxml.jackson.annotation.JsonProperty("mappingRules") + private java.util.List mappingRules; + + /** + * Mapping for source/target schema/tables for the pipeline data replication. + * + * @param mappingRules the value to set + * @return this builder + */ + public Builder mappingRules(java.util.List mappingRules) { + this.mappingRules = mappingRules; + this.__explicitlySet__.add("mappingRules"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processOptions") + private ProcessOptions processOptions; + + public Builder processOptions(ProcessOptions processOptions) { + this.processOptions = processOptions; + this.__explicitlySet__.add("processOptions"); + return this; + } + /** + * When the resource was last updated. This option applies when retrieving a pipeline. The + * format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastRecorded") + private java.util.Date timeLastRecorded; + + /** + * When the resource was last updated. This option applies when retrieving a pipeline. The + * format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + * + * @param timeLastRecorded the value to set + * @return this builder + */ + public Builder timeLastRecorded(java.util.Date timeLastRecorded) { + this.timeLastRecorded = timeLastRecorded; + this.__explicitlySet__.add("timeLastRecorded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ZeroEtlPipeline build() { + ZeroEtlPipeline model = + new ZeroEtlPipeline( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.licenseModel, + this.cpuCoreCount, + this.isAutoScalingEnabled, + this.sourceConnectionDetails, + this.targetConnectionDetails, + this.freeformTags, + this.definedTags, + this.systemTags, + this.locks, + this.lifecycleState, + this.lifecycleSubState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.mappingRules, + this.processOptions, + this.timeLastRecorded); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ZeroEtlPipeline 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("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + if (model.wasPropertyExplicitlySet("cpuCoreCount")) { + this.cpuCoreCount(model.getCpuCoreCount()); + } + if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { + this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); + } + if (model.wasPropertyExplicitlySet("sourceConnectionDetails")) { + this.sourceConnectionDetails(model.getSourceConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("targetConnectionDetails")) { + this.targetConnectionDetails(model.getTargetConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleSubState")) { + this.lifecycleSubState(model.getLifecycleSubState()); + } + 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("mappingRules")) { + this.mappingRules(model.getMappingRules()); + } + if (model.wasPropertyExplicitlySet("processOptions")) { + this.processOptions(model.getProcessOptions()); + } + if (model.wasPropertyExplicitlySet("timeLastRecorded")) { + this.timeLastRecorded(model.getTimeLastRecorded()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ZeroEtlPipeline( + String id, + String displayName, + String description, + String compartmentId, + LicenseModel licenseModel, + Integer cpuCoreCount, + Boolean isAutoScalingEnabled, + SourcePipelineConnectionDetails sourceConnectionDetails, + TargetPipelineConnectionDetails targetConnectionDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.List locks, + LifecycleState lifecycleState, + PipelineLifecycleSubState lifecycleSubState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.List mappingRules, + ProcessOptions processOptions, + java.util.Date timeLastRecorded) { + super( + id, + displayName, + description, + compartmentId, + licenseModel, + cpuCoreCount, + isAutoScalingEnabled, + sourceConnectionDetails, + targetConnectionDetails, + freeformTags, + definedTags, + systemTags, + locks, + lifecycleState, + lifecycleSubState, + lifecycleDetails, + timeCreated, + timeUpdated); + this.mappingRules = mappingRules; + this.processOptions = processOptions; + this.timeLastRecorded = timeLastRecorded; + } + + /** Mapping for source/target schema/tables for the pipeline data replication. */ + @com.fasterxml.jackson.annotation.JsonProperty("mappingRules") + private final java.util.List mappingRules; + + /** + * Mapping for source/target schema/tables for the pipeline data replication. + * + * @return the value + */ + public java.util.List getMappingRules() { + return mappingRules; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processOptions") + private final ProcessOptions processOptions; + + public ProcessOptions getProcessOptions() { + return processOptions; + } + + /** + * When the resource was last updated. This option applies when retrieving a pipeline. The + * format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastRecorded") + private final java.util.Date timeLastRecorded; + + /** + * When the resource was last updated. This option applies when retrieving a pipeline. The + * format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimeLastRecorded() { + return timeLastRecorded; + } + + @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("ZeroEtlPipeline("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", mappingRules=").append(String.valueOf(this.mappingRules)); + sb.append(", processOptions=").append(String.valueOf(this.processOptions)); + sb.append(", timeLastRecorded=").append(String.valueOf(this.timeLastRecorded)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ZeroEtlPipeline)) { + return false; + } + + ZeroEtlPipeline other = (ZeroEtlPipeline) o; + return java.util.Objects.equals(this.mappingRules, other.mappingRules) + && java.util.Objects.equals(this.processOptions, other.processOptions) + && java.util.Objects.equals(this.timeLastRecorded, other.timeLastRecorded) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.mappingRules == null ? 43 : this.mappingRules.hashCode()); + result = + (result * PRIME) + + (this.processOptions == null ? 43 : this.processOptions.hashCode()); + result = + (result * PRIME) + + (this.timeLastRecorded == null ? 43 : this.timeLastRecorded.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ZeroEtlPipelineSummary.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ZeroEtlPipelineSummary.java new file mode 100644 index 00000000000..b3a1f349f5b --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/model/ZeroEtlPipelineSummary.java @@ -0,0 +1,451 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.model; + +/** + * Summary of the ZeroETL pipeline.
+ * 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: 20200407") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ZeroEtlPipelineSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "recipeType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ZeroEtlPipelineSummary extends PipelineSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + 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.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceConnectionDetails") + private SourcePipelineConnectionDetails sourceConnectionDetails; + + public Builder sourceConnectionDetails( + SourcePipelineConnectionDetails sourceConnectionDetails) { + this.sourceConnectionDetails = sourceConnectionDetails; + this.__explicitlySet__.add("sourceConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetConnectionDetails") + private TargetPipelineConnectionDetails targetConnectionDetails; + + public Builder targetConnectionDetails( + TargetPipelineConnectionDetails targetConnectionDetails) { + this.targetConnectionDetails = targetConnectionDetails; + this.__explicitlySet__.add("targetConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpuCoreCount") + private Integer cpuCoreCount; + + public Builder cpuCoreCount(Integer cpuCoreCount) { + this.cpuCoreCount = cpuCoreCount; + this.__explicitlySet__.add("cpuCoreCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") + private Boolean isAutoScalingEnabled; + + public Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled) { + this.isAutoScalingEnabled = isAutoScalingEnabled; + this.__explicitlySet__.add("isAutoScalingEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("locks") + private java.util.List locks; + + public Builder locks(java.util.List locks) { + this.locks = locks; + this.__explicitlySet__.add("locks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Pipeline.LifecycleState lifecycleState; + + public Builder lifecycleState(Pipeline.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubState") + private PipelineLifecycleSubState lifecycleSubState; + + public Builder lifecycleSubState(PipelineLifecycleSubState lifecycleSubState) { + this.lifecycleSubState = lifecycleSubState; + this.__explicitlySet__.add("lifecycleSubState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processOptions") + private ProcessOptions processOptions; + + public Builder processOptions(ProcessOptions processOptions) { + this.processOptions = processOptions; + this.__explicitlySet__.add("processOptions"); + return this; + } + /** + * When the resource was last updated. This option applies when retrieving a pipeline. The + * format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastRecorded") + private java.util.Date timeLastRecorded; + + /** + * When the resource was last updated. This option applies when retrieving a pipeline. The + * format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + * + * @param timeLastRecorded the value to set + * @return this builder + */ + public Builder timeLastRecorded(java.util.Date timeLastRecorded) { + this.timeLastRecorded = timeLastRecorded; + this.__explicitlySet__.add("timeLastRecorded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ZeroEtlPipelineSummary build() { + ZeroEtlPipelineSummary model = + new ZeroEtlPipelineSummary( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.sourceConnectionDetails, + this.targetConnectionDetails, + this.freeformTags, + this.licenseModel, + this.cpuCoreCount, + this.isAutoScalingEnabled, + this.definedTags, + this.systemTags, + this.locks, + this.lifecycleState, + this.lifecycleSubState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.processOptions, + this.timeLastRecorded); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ZeroEtlPipelineSummary 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("sourceConnectionDetails")) { + this.sourceConnectionDetails(model.getSourceConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("targetConnectionDetails")) { + this.targetConnectionDetails(model.getTargetConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + if (model.wasPropertyExplicitlySet("cpuCoreCount")) { + this.cpuCoreCount(model.getCpuCoreCount()); + } + if (model.wasPropertyExplicitlySet("isAutoScalingEnabled")) { + this.isAutoScalingEnabled(model.getIsAutoScalingEnabled()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("locks")) { + this.locks(model.getLocks()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleSubState")) { + this.lifecycleSubState(model.getLifecycleSubState()); + } + 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("processOptions")) { + this.processOptions(model.getProcessOptions()); + } + if (model.wasPropertyExplicitlySet("timeLastRecorded")) { + this.timeLastRecorded(model.getTimeLastRecorded()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ZeroEtlPipelineSummary( + String id, + String displayName, + String description, + String compartmentId, + SourcePipelineConnectionDetails sourceConnectionDetails, + TargetPipelineConnectionDetails targetConnectionDetails, + java.util.Map freeformTags, + LicenseModel licenseModel, + Integer cpuCoreCount, + Boolean isAutoScalingEnabled, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.List locks, + Pipeline.LifecycleState lifecycleState, + PipelineLifecycleSubState lifecycleSubState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + ProcessOptions processOptions, + java.util.Date timeLastRecorded) { + super( + id, + displayName, + description, + compartmentId, + sourceConnectionDetails, + targetConnectionDetails, + freeformTags, + licenseModel, + cpuCoreCount, + isAutoScalingEnabled, + definedTags, + systemTags, + locks, + lifecycleState, + lifecycleSubState, + lifecycleDetails, + timeCreated, + timeUpdated); + this.processOptions = processOptions; + this.timeLastRecorded = timeLastRecorded; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processOptions") + private final ProcessOptions processOptions; + + public ProcessOptions getProcessOptions() { + return processOptions; + } + + /** + * When the resource was last updated. This option applies when retrieving a pipeline. The + * format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastRecorded") + private final java.util.Date timeLastRecorded; + + /** + * When the resource was last updated. This option applies when retrieving a pipeline. The + * format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339), such as {@code + * 2024-07-25T21:10:29.600Z}. + * + * @return the value + */ + public java.util.Date getTimeLastRecorded() { + return timeLastRecorded; + } + + @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("ZeroEtlPipelineSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", processOptions=").append(String.valueOf(this.processOptions)); + sb.append(", timeLastRecorded=").append(String.valueOf(this.timeLastRecorded)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ZeroEtlPipelineSummary)) { + return false; + } + + ZeroEtlPipelineSummary other = (ZeroEtlPipelineSummary) o; + return java.util.Objects.equals(this.processOptions, other.processOptions) + && java.util.Objects.equals(this.timeLastRecorded, other.timeLastRecorded) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.processOptions == null ? 43 : this.processOptions.hashCode()); + result = + (result * PRIME) + + (this.timeLastRecorded == null ? 43 : this.timeLastRecorded.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangePipelineCompartmentRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangePipelineCompartmentRequest.java new file mode 100644 index 00000000000..ea23e2fa793 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ChangePipelineCompartmentRequest.java @@ -0,0 +1,395 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use + * ChangePipelineCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ChangePipelineCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.ChangePipelineCompartmentDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + public String getPipelineId() { + return pipelineId; + } + /** Properties to change the compartment of a Pipeline. */ + private com.oracle.bmc.goldengate.model.ChangePipelineCompartmentDetails + changePipelineCompartmentDetails; + + /** Properties to change the compartment of a Pipeline. */ + public com.oracle.bmc.goldengate.model.ChangePipelineCompartmentDetails + getChangePipelineCompartmentDetails() { + return changePipelineCompartmentDetails; + } + /** + * 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 is 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 is 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; + } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without the 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 was deleted and purged from the system, then a retry of the original creation + * request is 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 the 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 was deleted and purged from the system, then a retry of the original creation + * request is rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.goldengate.model.ChangePipelineCompartmentDetails getBody$() { + return changePipelineCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangePipelineCompartmentRequest, + com.oracle.bmc.goldengate.model.ChangePipelineCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + * + * @param pipelineId the value to set + * @return this builder instance + */ + public Builder pipelineId(String pipelineId) { + this.pipelineId = pipelineId; + return this; + } + + /** Properties to change the compartment of a Pipeline. */ + private com.oracle.bmc.goldengate.model.ChangePipelineCompartmentDetails + changePipelineCompartmentDetails = null; + + /** + * Properties to change the compartment of a Pipeline. + * + * @param changePipelineCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changePipelineCompartmentDetails( + com.oracle.bmc.goldengate.model.ChangePipelineCompartmentDetails + changePipelineCompartmentDetails) { + this.changePipelineCompartmentDetails = changePipelineCompartmentDetails; + 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 is 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 is 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; + } + + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without the 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 was deleted and purged from the system, then a retry of the + * original creation request is 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 the 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 was deleted and purged from the system, then a retry of the + * original creation request is 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(ChangePipelineCompartmentRequest o) { + pipelineId(o.getPipelineId()); + changePipelineCompartmentDetails(o.getChangePipelineCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangePipelineCompartmentRequest 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 ChangePipelineCompartmentRequest + */ + public ChangePipelineCompartmentRequest build() { + ChangePipelineCompartmentRequest 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.goldengate.model.ChangePipelineCompartmentDetails body) { + changePipelineCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangePipelineCompartmentRequest 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 ChangePipelineCompartmentRequest + */ + public ChangePipelineCompartmentRequest buildWithoutInvocationCallback() { + ChangePipelineCompartmentRequest request = new ChangePipelineCompartmentRequest(); + request.pipelineId = pipelineId; + request.changePipelineCompartmentDetails = changePipelineCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangePipelineCompartmentRequest(pipelineId, changePipelineCompartmentDetails, + // ifMatch, opcRequestId, isLockOverride, 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() + .pipelineId(pipelineId) + .changePipelineCompartmentDetails(changePipelineCompartmentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride) + .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(",pipelineId=").append(String.valueOf(this.pipelineId)); + sb.append(",changePipelineCompartmentDetails=") + .append(String.valueOf(this.changePipelineCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); + 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 ChangePipelineCompartmentRequest)) { + return false; + } + + ChangePipelineCompartmentRequest other = (ChangePipelineCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pipelineId, other.pipelineId) + && java.util.Objects.equals( + this.changePipelineCompartmentDetails, + other.changePipelineCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.pipelineId == null ? 43 : this.pipelineId.hashCode()); + result = + (result * PRIME) + + (this.changePipelineCompartmentDetails == null + ? 43 + : this.changePipelineCompartmentDetails.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CreatePipelineRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CreatePipelineRequest.java new file mode 100644 index 00000000000..ab9f360fc4f --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/CreatePipelineRequest.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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use CreatePipelineRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class CreatePipelineRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.CreatePipelineDetails> { + + /** Specification of the pipeline to create. */ + private com.oracle.bmc.goldengate.model.CreatePipelineDetails createPipelineDetails; + + /** Specification of the pipeline to create. */ + public com.oracle.bmc.goldengate.model.CreatePipelineDetails getCreatePipelineDetails() { + return createPipelineDetails; + } + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without the 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 was deleted and purged from the system, then a retry of the original creation + * request is 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 the 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 was deleted and purged from the system, then a retry of the original creation + * request is 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.goldengate.model.CreatePipelineDetails getBody$() { + return createPipelineDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreatePipelineRequest, com.oracle.bmc.goldengate.model.CreatePipelineDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Specification of the pipeline to create. */ + private com.oracle.bmc.goldengate.model.CreatePipelineDetails createPipelineDetails = null; + + /** + * Specification of the pipeline to create. + * + * @param createPipelineDetails the value to set + * @return this builder instance + */ + public Builder createPipelineDetails( + com.oracle.bmc.goldengate.model.CreatePipelineDetails createPipelineDetails) { + this.createPipelineDetails = createPipelineDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without the 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 was deleted and purged from the system, then a retry of the + * original creation request is 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 the 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 was deleted and purged from the system, then a retry of the + * original creation request is 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(CreatePipelineRequest o) { + createPipelineDetails(o.getCreatePipelineDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreatePipelineRequest 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 CreatePipelineRequest + */ + public CreatePipelineRequest build() { + CreatePipelineRequest 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.goldengate.model.CreatePipelineDetails body) { + createPipelineDetails(body); + return this; + } + + /** + * Build the instance of CreatePipelineRequest 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 CreatePipelineRequest + */ + public CreatePipelineRequest buildWithoutInvocationCallback() { + CreatePipelineRequest request = new CreatePipelineRequest(); + request.createPipelineDetails = createPipelineDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreatePipelineRequest(createPipelineDetails, 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() + .createPipelineDetails(createPipelineDetails) + .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(",createPipelineDetails=").append(String.valueOf(this.createPipelineDetails)); + 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 CreatePipelineRequest)) { + return false; + } + + CreatePipelineRequest other = (CreatePipelineRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.createPipelineDetails, other.createPipelineDetails) + && 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.createPipelineDetails == null + ? 43 + : this.createPipelineDetails.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-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeletePipelineRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeletePipelineRequest.java new file mode 100644 index 00000000000..0992dfac476 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/DeletePipelineRequest.java @@ -0,0 +1,276 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use DeletePipelineRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class DeletePipelineRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + public String getPipelineId() { + return pipelineId; + } + /** + * 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 is 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 is 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; + } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeletePipelineRequest, 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/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + * + * @param pipelineId the value to set + * @return this builder instance + */ + public Builder pipelineId(String pipelineId) { + this.pipelineId = pipelineId; + 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 is 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 is 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; + } + + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + 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(DeletePipelineRequest o) { + pipelineId(o.getPipelineId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeletePipelineRequest 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 DeletePipelineRequest + */ + public DeletePipelineRequest build() { + DeletePipelineRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeletePipelineRequest 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 DeletePipelineRequest + */ + public DeletePipelineRequest buildWithoutInvocationCallback() { + DeletePipelineRequest request = new DeletePipelineRequest(); + request.pipelineId = pipelineId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new DeletePipelineRequest(pipelineId, ifMatch, opcRequestId, isLockOverride); + } + } + + /** + * 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() + .pipelineId(pipelineId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * 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(",pipelineId=").append(String.valueOf(this.pipelineId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeletePipelineRequest)) { + return false; + } + + DeletePipelineRequest other = (DeletePipelineRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pipelineId, other.pipelineId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.pipelineId == null ? 43 : this.pipelineId.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GetPipelineRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GetPipelineRequest.java new file mode 100644 index 00000000000..ebbe673f150 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/GetPipelineRequest.java @@ -0,0 +1,200 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use GetPipelineRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class GetPipelineRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + public String getPipelineId() { + return pipelineId; + } + /** 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< + GetPipelineRequest, 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/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + * + * @param pipelineId the value to set + * @return this builder instance + */ + public Builder pipelineId(String pipelineId) { + this.pipelineId = pipelineId; + 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(GetPipelineRequest o) { + pipelineId(o.getPipelineId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetPipelineRequest 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 GetPipelineRequest + */ + public GetPipelineRequest build() { + GetPipelineRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetPipelineRequest 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 GetPipelineRequest + */ + public GetPipelineRequest buildWithoutInvocationCallback() { + GetPipelineRequest request = new GetPipelineRequest(); + request.pipelineId = pipelineId; + request.opcRequestId = opcRequestId; + return request; + // new GetPipelineRequest(pipelineId, 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().pipelineId(pipelineId).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(",pipelineId=").append(String.valueOf(this.pipelineId)); + 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 GetPipelineRequest)) { + return false; + } + + GetPipelineRequest other = (GetPipelineRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pipelineId, other.pipelineId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.pipelineId == null ? 43 : this.pipelineId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineInitializationStepsRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineInitializationStepsRequest.java new file mode 100644 index 00000000000..e15cf2361a5 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineInitializationStepsRequest.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use + * ListPipelineInitializationStepsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListPipelineInitializationStepsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + public String getPipelineId() { + return pipelineId; + } + /** 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< + ListPipelineInitializationStepsRequest, 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/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + * + * @param pipelineId the value to set + * @return this builder instance + */ + public Builder pipelineId(String pipelineId) { + this.pipelineId = pipelineId; + 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(ListPipelineInitializationStepsRequest o) { + pipelineId(o.getPipelineId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListPipelineInitializationStepsRequest 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 ListPipelineInitializationStepsRequest + */ + public ListPipelineInitializationStepsRequest build() { + ListPipelineInitializationStepsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListPipelineInitializationStepsRequest 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 ListPipelineInitializationStepsRequest + */ + public ListPipelineInitializationStepsRequest buildWithoutInvocationCallback() { + ListPipelineInitializationStepsRequest request = + new ListPipelineInitializationStepsRequest(); + request.pipelineId = pipelineId; + request.opcRequestId = opcRequestId; + return request; + // new ListPipelineInitializationStepsRequest(pipelineId, 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().pipelineId(pipelineId).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(",pipelineId=").append(String.valueOf(this.pipelineId)); + 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 ListPipelineInitializationStepsRequest)) { + return false; + } + + ListPipelineInitializationStepsRequest other = (ListPipelineInitializationStepsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pipelineId, other.pipelineId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.pipelineId == null ? 43 : this.pipelineId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineRunningProcessesRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineRunningProcessesRequest.java new file mode 100644 index 00000000000..d6ff626c7c7 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineRunningProcessesRequest.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use + * ListPipelineRunningProcessesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListPipelineRunningProcessesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + public String getPipelineId() { + return pipelineId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.goldengate.model.SortOrder sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.goldengate.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + 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 can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + 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< + ListPipelineRunningProcessesRequest, 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/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + * + * @param pipelineId the value to set + * @return this builder instance + */ + public Builder pipelineId(String pipelineId) { + this.pipelineId = pipelineId; + 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 page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @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.goldengate.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.goldengate.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order can be provided. Default order for + * 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is + * specified timeCreated is the default. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order can be provided. Default order for + * 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is + * specified timeCreated is the default. + * + * @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(ListPipelineRunningProcessesRequest o) { + pipelineId(o.getPipelineId()); + 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 ListPipelineRunningProcessesRequest 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 ListPipelineRunningProcessesRequest + */ + public ListPipelineRunningProcessesRequest build() { + ListPipelineRunningProcessesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListPipelineRunningProcessesRequest 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 ListPipelineRunningProcessesRequest + */ + public ListPipelineRunningProcessesRequest buildWithoutInvocationCallback() { + ListPipelineRunningProcessesRequest request = new ListPipelineRunningProcessesRequest(); + request.pipelineId = pipelineId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListPipelineRunningProcessesRequest(pipelineId, 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() + .pipelineId(pipelineId) + .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(",pipelineId=").append(String.valueOf(this.pipelineId)); + 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 ListPipelineRunningProcessesRequest)) { + return false; + } + + ListPipelineRunningProcessesRequest other = (ListPipelineRunningProcessesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pipelineId, other.pipelineId) + && 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.pipelineId == null ? 43 : this.pipelineId.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-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineSchemaTablesRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineSchemaTablesRequest.java new file mode 100644 index 00000000000..77a9543b1ed --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineSchemaTablesRequest.java @@ -0,0 +1,460 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use + * ListPipelineSchemaTablesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListPipelineSchemaTablesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + public String getPipelineId() { + return pipelineId; + } + /** Name of the source schema obtained from get schema endpoint of the created pipeline. */ + private String sourceSchemaName; + + /** Name of the source schema obtained from get schema endpoint of the created pipeline. */ + public String getSourceSchemaName() { + return sourceSchemaName; + } + /** Name of the target schema obtained from get schema endpoint of the created pipeline. */ + private String targetSchemaName; + + /** Name of the target schema obtained from get schema endpoint of the created pipeline. */ + public String getTargetSchemaName() { + return targetSchemaName; + } + /** A filter to return only the resources that match the entire 'displayName' given. */ + private String displayName; + + /** A filter to return only the resources that match the entire 'displayName' given. */ + public String getDisplayName() { + return displayName; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.goldengate.model.SortOrder sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.goldengate.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + 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 can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListPipelineSchemaTablesRequest, 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/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + * + * @param pipelineId the value to set + * @return this builder instance + */ + public Builder pipelineId(String pipelineId) { + this.pipelineId = pipelineId; + return this; + } + + /** Name of the source schema obtained from get schema endpoint of the created pipeline. */ + private String sourceSchemaName = null; + + /** + * Name of the source schema obtained from get schema endpoint of the created pipeline. + * + * @param sourceSchemaName the value to set + * @return this builder instance + */ + public Builder sourceSchemaName(String sourceSchemaName) { + this.sourceSchemaName = sourceSchemaName; + return this; + } + + /** Name of the target schema obtained from get schema endpoint of the created pipeline. */ + private String targetSchemaName = null; + + /** + * Name of the target schema obtained from get schema endpoint of the created pipeline. + * + * @param targetSchemaName the value to set + * @return this builder instance + */ + public Builder targetSchemaName(String targetSchemaName) { + this.targetSchemaName = targetSchemaName; + return this; + } + + /** A filter to return only the resources that match the entire 'displayName' given. */ + private String displayName = null; + + /** + * A filter to return only the resources that match the entire 'displayName' given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + 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; + } + + /** 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 page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @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.goldengate.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.goldengate.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order can be provided. Default order for + * 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is + * specified timeCreated is the default. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order can be provided. Default order for + * 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is + * specified timeCreated is the default. + * + * @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(ListPipelineSchemaTablesRequest o) { + pipelineId(o.getPipelineId()); + sourceSchemaName(o.getSourceSchemaName()); + targetSchemaName(o.getTargetSchemaName()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListPipelineSchemaTablesRequest 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 ListPipelineSchemaTablesRequest + */ + public ListPipelineSchemaTablesRequest build() { + ListPipelineSchemaTablesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListPipelineSchemaTablesRequest 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 ListPipelineSchemaTablesRequest + */ + public ListPipelineSchemaTablesRequest buildWithoutInvocationCallback() { + ListPipelineSchemaTablesRequest request = new ListPipelineSchemaTablesRequest(); + request.pipelineId = pipelineId; + request.sourceSchemaName = sourceSchemaName; + request.targetSchemaName = targetSchemaName; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListPipelineSchemaTablesRequest(pipelineId, sourceSchemaName, targetSchemaName, + // displayName, opcRequestId, limit, page, 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() + .pipelineId(pipelineId) + .sourceSchemaName(sourceSchemaName) + .targetSchemaName(targetSchemaName) + .displayName(displayName) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page) + .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(",pipelineId=").append(String.valueOf(this.pipelineId)); + sb.append(",sourceSchemaName=").append(String.valueOf(this.sourceSchemaName)); + sb.append(",targetSchemaName=").append(String.valueOf(this.targetSchemaName)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPipelineSchemaTablesRequest)) { + return false; + } + + ListPipelineSchemaTablesRequest other = (ListPipelineSchemaTablesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pipelineId, other.pipelineId) + && java.util.Objects.equals(this.sourceSchemaName, other.sourceSchemaName) + && java.util.Objects.equals(this.targetSchemaName, other.targetSchemaName) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && 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); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.pipelineId == null ? 43 : this.pipelineId.hashCode()); + result = + (result * PRIME) + + (this.sourceSchemaName == null ? 43 : this.sourceSchemaName.hashCode()); + result = + (result * PRIME) + + (this.targetSchemaName == null ? 43 : this.targetSchemaName.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.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()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineSchemasRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineSchemasRequest.java new file mode 100644 index 00000000000..dcd9b50d4b4 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelineSchemasRequest.java @@ -0,0 +1,400 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use ListPipelineSchemasRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListPipelineSchemasRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + public String getPipelineId() { + return pipelineId; + } + /** A filter to return only the resources that match the entire 'displayName' given. */ + private String displayName; + + /** A filter to return only the resources that match the entire 'displayName' given. */ + public String getDisplayName() { + return displayName; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.goldengate.model.SortOrder sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.goldengate.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + 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 can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListPipelineSchemasRequest, 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/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + * + * @param pipelineId the value to set + * @return this builder instance + */ + public Builder pipelineId(String pipelineId) { + this.pipelineId = pipelineId; + return this; + } + + /** A filter to return only the resources that match the entire 'displayName' given. */ + private String displayName = null; + + /** + * A filter to return only the resources that match the entire 'displayName' given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + 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; + } + + /** 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 page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @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.goldengate.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.goldengate.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order can be provided. Default order for + * 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is + * specified timeCreated is the default. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order can be provided. Default order for + * 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is + * specified timeCreated is the default. + * + * @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(ListPipelineSchemasRequest o) { + pipelineId(o.getPipelineId()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListPipelineSchemasRequest 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 ListPipelineSchemasRequest + */ + public ListPipelineSchemasRequest build() { + ListPipelineSchemasRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListPipelineSchemasRequest 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 ListPipelineSchemasRequest + */ + public ListPipelineSchemasRequest buildWithoutInvocationCallback() { + ListPipelineSchemasRequest request = new ListPipelineSchemasRequest(); + request.pipelineId = pipelineId; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListPipelineSchemasRequest(pipelineId, displayName, opcRequestId, limit, page, + // 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() + .pipelineId(pipelineId) + .displayName(displayName) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page) + .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(",pipelineId=").append(String.valueOf(this.pipelineId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPipelineSchemasRequest)) { + return false; + } + + ListPipelineSchemasRequest other = (ListPipelineSchemasRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pipelineId, other.pipelineId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && 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); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.pipelineId == null ? 43 : this.pipelineId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.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()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelinesRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelinesRequest.java new file mode 100644 index 00000000000..47f1e564a06 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListPipelinesRequest.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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use ListPipelinesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListPipelinesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * 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 concerns + * 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. + */ + 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 concerns + * 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. + */ + public String getCompartmentId() { + return compartmentId; + } + /** A filtered list of pipelines to return for a given lifecycleState. */ + private com.oracle.bmc.goldengate.model.Pipeline.LifecycleState lifecycleState; + + /** A filtered list of pipelines to return for a given lifecycleState. */ + public com.oracle.bmc.goldengate.model.Pipeline.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filtered list of pipelines to return for a given lifecycleSubState. */ + private com.oracle.bmc.goldengate.model.PipelineLifecycleSubState lifecycleSubState; + + /** A filtered list of pipelines to return for a given lifecycleSubState. */ + public com.oracle.bmc.goldengate.model.PipelineLifecycleSubState getLifecycleSubState() { + return lifecycleSubState; + } + /** A filter to return only the resources that match the entire 'displayName' given. */ + private String displayName; + + /** A filter to return only the resources that match the entire 'displayName' 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; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.goldengate.model.SortOrder sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.goldengate.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + 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 can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + 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< + ListPipelinesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * 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 concerns 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. + */ + private String compartmentId = null; + + /** + * 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 concerns 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 instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** A filtered list of pipelines to return for a given lifecycleState. */ + private com.oracle.bmc.goldengate.model.Pipeline.LifecycleState lifecycleState = null; + + /** + * A filtered list of pipelines to return for a given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.goldengate.model.Pipeline.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filtered list of pipelines to return for a given lifecycleSubState. */ + private com.oracle.bmc.goldengate.model.PipelineLifecycleSubState lifecycleSubState = null; + + /** + * A filtered list of pipelines to return for a given lifecycleSubState. + * + * @param lifecycleSubState the value to set + * @return this builder instance + */ + public Builder lifecycleSubState( + com.oracle.bmc.goldengate.model.PipelineLifecycleSubState lifecycleSubState) { + this.lifecycleSubState = lifecycleSubState; + return this; + } + + /** A filter to return only the resources that match the entire 'displayName' given. */ + private String displayName = null; + + /** + * A filter to return only the resources that match the entire 'displayName' 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; + } + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @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.goldengate.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.goldengate.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order can be provided. Default order for + * 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is + * specified timeCreated is the default. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order can be provided. Default order for + * 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is + * specified timeCreated is the default. + * + * @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(ListPipelinesRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + lifecycleSubState(o.getLifecycleSubState()); + 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 ListPipelinesRequest 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 ListPipelinesRequest + */ + public ListPipelinesRequest build() { + ListPipelinesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListPipelinesRequest 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 ListPipelinesRequest + */ + public ListPipelinesRequest buildWithoutInvocationCallback() { + ListPipelinesRequest request = new ListPipelinesRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.lifecycleSubState = lifecycleSubState; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListPipelinesRequest(compartmentId, lifecycleState, lifecycleSubState, + // 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() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .lifecycleSubState(lifecycleSubState) + .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(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",lifecycleSubState=").append(String.valueOf(this.lifecycleSubState)); + 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 ListPipelinesRequest)) { + return false; + } + + ListPipelinesRequest other = (ListPipelinesRequest) 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.lifecycleSubState, other.lifecycleSubState) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleSubState == null ? 43 : this.lifecycleSubState.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-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListRecipesRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListRecipesRequest.java new file mode 100644 index 00000000000..eab6ae1ab43 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/ListRecipesRequest.java @@ -0,0 +1,439 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use ListRecipesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListRecipesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * 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 concerns + * 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. + */ + 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 concerns + * 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. + */ + public String getCompartmentId() { + return compartmentId; + } + /** The pipeline's recipe type. The default value is ZERO_ETL. */ + private com.oracle.bmc.goldengate.model.RecipeType recipeType; + + /** The pipeline's recipe type. The default value is ZERO_ETL. */ + public com.oracle.bmc.goldengate.model.RecipeType getRecipeType() { + return recipeType; + } + /** A filter to return only the resources that match the entire 'displayName' given. */ + private String displayName; + + /** A filter to return only the resources that match the entire 'displayName' given. */ + public String getDisplayName() { + return displayName; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'asc' or 'desc'. */ + private com.oracle.bmc.goldengate.model.SortOrder sortOrder; + + /** The sort order to use, either 'asc' or 'desc'. */ + public com.oracle.bmc.goldengate.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + 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 can be provided. Default order for 'timeCreated' is + * descending. Default order for 'displayName' is ascending. If no value is specified + * timeCreated is the default. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListRecipesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * 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 concerns 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. + */ + private String compartmentId = null; + + /** + * 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 concerns 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 instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The pipeline's recipe type. The default value is ZERO_ETL. */ + private com.oracle.bmc.goldengate.model.RecipeType recipeType = null; + + /** + * The pipeline's recipe type. The default value is ZERO_ETL. + * + * @param recipeType the value to set + * @return this builder instance + */ + public Builder recipeType(com.oracle.bmc.goldengate.model.RecipeType recipeType) { + this.recipeType = recipeType; + return this; + } + + /** A filter to return only the resources that match the entire 'displayName' given. */ + private String displayName = null; + + /** + * A filter to return only the resources that match the entire 'displayName' given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + 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; + } + + /** 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 page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @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.goldengate.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.goldengate.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order can be provided. Default order for + * 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is + * specified timeCreated is the default. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order can be provided. Default order for + * 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is + * specified timeCreated is the default. + * + * @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(ListRecipesRequest o) { + compartmentId(o.getCompartmentId()); + recipeType(o.getRecipeType()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListRecipesRequest 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 ListRecipesRequest + */ + public ListRecipesRequest build() { + ListRecipesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListRecipesRequest 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 ListRecipesRequest + */ + public ListRecipesRequest buildWithoutInvocationCallback() { + ListRecipesRequest request = new ListRecipesRequest(); + request.compartmentId = compartmentId; + request.recipeType = recipeType; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListRecipesRequest(compartmentId, recipeType, displayName, opcRequestId, limit, + // page, 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) + .recipeType(recipeType) + .displayName(displayName) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page) + .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(",recipeType=").append(String.valueOf(this.recipeType)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRecipesRequest)) { + return false; + } + + ListRecipesRequest other = (ListRecipesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.recipeType, other.recipeType) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && 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); + } + + @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.recipeType == null ? 43 : this.recipeType.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.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()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StartPipelineRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StartPipelineRequest.java new file mode 100644 index 00000000000..8767618bd0a --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StartPipelineRequest.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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use StartPipelineRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class StartPipelineRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.StartPipelineDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + public String getPipelineId() { + return pipelineId; + } + /** Details to start Pipeline. */ + private com.oracle.bmc.goldengate.model.StartPipelineDetails startPipelineDetails; + + /** Details to start Pipeline. */ + public com.oracle.bmc.goldengate.model.StartPipelineDetails getStartPipelineDetails() { + return startPipelineDetails; + } + /** + * 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 is 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 is 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 the 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 was deleted and purged from the system, then a retry of the original creation + * request is 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 the 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 was deleted and purged from the system, then a retry of the original creation + * request is rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.goldengate.model.StartPipelineDetails getBody$() { + return startPipelineDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StartPipelineRequest, com.oracle.bmc.goldengate.model.StartPipelineDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + * + * @param pipelineId the value to set + * @return this builder instance + */ + public Builder pipelineId(String pipelineId) { + this.pipelineId = pipelineId; + return this; + } + + /** Details to start Pipeline. */ + private com.oracle.bmc.goldengate.model.StartPipelineDetails startPipelineDetails = null; + + /** + * Details to start Pipeline. + * + * @param startPipelineDetails the value to set + * @return this builder instance + */ + public Builder startPipelineDetails( + com.oracle.bmc.goldengate.model.StartPipelineDetails startPipelineDetails) { + this.startPipelineDetails = startPipelineDetails; + 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 is 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 is 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 the 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 was deleted and purged from the system, then a retry of the + * original creation request is 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 the 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 was deleted and purged from the system, then a retry of the + * original creation request is rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + 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(StartPipelineRequest o) { + pipelineId(o.getPipelineId()); + startPipelineDetails(o.getStartPipelineDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StartPipelineRequest 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 StartPipelineRequest + */ + public StartPipelineRequest build() { + StartPipelineRequest 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.goldengate.model.StartPipelineDetails body) { + startPipelineDetails(body); + return this; + } + + /** + * Build the instance of StartPipelineRequest 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 StartPipelineRequest + */ + public StartPipelineRequest buildWithoutInvocationCallback() { + StartPipelineRequest request = new StartPipelineRequest(); + request.pipelineId = pipelineId; + request.startPipelineDetails = startPipelineDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; + return request; + // new StartPipelineRequest(pipelineId, startPipelineDetails, ifMatch, opcRequestId, + // opcRetryToken, isLockOverride); + } + } + + /** + * 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() + .pipelineId(pipelineId) + .startPipelineDetails(startPipelineDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); + } + + /** + * 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(",pipelineId=").append(String.valueOf(this.pipelineId)); + sb.append(",startPipelineDetails=").append(String.valueOf(this.startPipelineDetails)); + 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartPipelineRequest)) { + return false; + } + + StartPipelineRequest other = (StartPipelineRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pipelineId, other.pipelineId) + && java.util.Objects.equals(this.startPipelineDetails, other.startPipelineDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.pipelineId == null ? 43 : this.pipelineId.hashCode()); + result = + (result * PRIME) + + (this.startPipelineDetails == null + ? 43 + : this.startPipelineDetails.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()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StopPipelineRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StopPipelineRequest.java new file mode 100644 index 00000000000..3d5bb934904 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/StopPipelineRequest.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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use StopPipelineRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class StopPipelineRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.StopPipelineDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + public String getPipelineId() { + return pipelineId; + } + /** Details to stop the pipeline. */ + private com.oracle.bmc.goldengate.model.StopPipelineDetails stopPipelineDetails; + + /** Details to stop the pipeline. */ + public com.oracle.bmc.goldengate.model.StopPipelineDetails getStopPipelineDetails() { + return stopPipelineDetails; + } + /** + * 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 is 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 is 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 the 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 was deleted and purged from the system, then a retry of the original creation + * request is 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 the 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 was deleted and purged from the system, then a retry of the original creation + * request is rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.goldengate.model.StopPipelineDetails getBody$() { + return stopPipelineDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StopPipelineRequest, com.oracle.bmc.goldengate.model.StopPipelineDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + * + * @param pipelineId the value to set + * @return this builder instance + */ + public Builder pipelineId(String pipelineId) { + this.pipelineId = pipelineId; + return this; + } + + /** Details to stop the pipeline. */ + private com.oracle.bmc.goldengate.model.StopPipelineDetails stopPipelineDetails = null; + + /** + * Details to stop the pipeline. + * + * @param stopPipelineDetails the value to set + * @return this builder instance + */ + public Builder stopPipelineDetails( + com.oracle.bmc.goldengate.model.StopPipelineDetails stopPipelineDetails) { + this.stopPipelineDetails = stopPipelineDetails; + 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 is 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 is 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 the 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 was deleted and purged from the system, then a retry of the + * original creation request is 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 the 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 was deleted and purged from the system, then a retry of the + * original creation request is rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + 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(StopPipelineRequest o) { + pipelineId(o.getPipelineId()); + stopPipelineDetails(o.getStopPipelineDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StopPipelineRequest 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 StopPipelineRequest + */ + public StopPipelineRequest build() { + StopPipelineRequest 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.goldengate.model.StopPipelineDetails body) { + stopPipelineDetails(body); + return this; + } + + /** + * Build the instance of StopPipelineRequest 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 StopPipelineRequest + */ + public StopPipelineRequest buildWithoutInvocationCallback() { + StopPipelineRequest request = new StopPipelineRequest(); + request.pipelineId = pipelineId; + request.stopPipelineDetails = stopPipelineDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.isLockOverride = isLockOverride; + return request; + // new StopPipelineRequest(pipelineId, stopPipelineDetails, ifMatch, opcRequestId, + // opcRetryToken, isLockOverride); + } + } + + /** + * 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() + .pipelineId(pipelineId) + .stopPipelineDetails(stopPipelineDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .isLockOverride(isLockOverride); + } + + /** + * 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(",pipelineId=").append(String.valueOf(this.pipelineId)); + sb.append(",stopPipelineDetails=").append(String.valueOf(this.stopPipelineDetails)); + 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(",isLockOverride=").append(String.valueOf(this.isLockOverride)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StopPipelineRequest)) { + return false; + } + + StopPipelineRequest other = (StopPipelineRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pipelineId, other.pipelineId) + && java.util.Objects.equals(this.stopPipelineDetails, other.stopPipelineDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.pipelineId == null ? 43 : this.pipelineId.hashCode()); + result = + (result * PRIME) + + (this.stopPipelineDetails == null + ? 43 + : this.stopPipelineDetails.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()); + result = + (result * PRIME) + + (this.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/TestPipelineConnectionRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/TestPipelineConnectionRequest.java new file mode 100644 index 00000000000..030e0887777 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/TestPipelineConnectionRequest.java @@ -0,0 +1,364 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use + * TestPipelineConnectionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class TestPipelineConnectionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.TestPipelineConnectionDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + public String getPipelineId() { + return pipelineId; + } + /** Additional metadata required to test the connection assigned to the pipeline. */ + private com.oracle.bmc.goldengate.model.TestPipelineConnectionDetails + testPipelineConnectionDetails; + + /** Additional metadata required to test the connection assigned to the pipeline. */ + public com.oracle.bmc.goldengate.model.TestPipelineConnectionDetails + getTestPipelineConnectionDetails() { + return testPipelineConnectionDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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 is 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 is updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without the 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 was deleted and purged from the system, then a retry of the original creation + * request is 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 the 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 was deleted and purged from the system, then a retry of the original creation + * request is rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.goldengate.model.TestPipelineConnectionDetails getBody$() { + return testPipelineConnectionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + TestPipelineConnectionRequest, + com.oracle.bmc.goldengate.model.TestPipelineConnectionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + * + * @param pipelineId the value to set + * @return this builder instance + */ + public Builder pipelineId(String pipelineId) { + this.pipelineId = pipelineId; + return this; + } + + /** Additional metadata required to test the connection assigned to the pipeline. */ + private com.oracle.bmc.goldengate.model.TestPipelineConnectionDetails + testPipelineConnectionDetails = null; + + /** + * Additional metadata required to test the connection assigned to the pipeline. + * + * @param testPipelineConnectionDetails the value to set + * @return this builder instance + */ + public Builder testPipelineConnectionDetails( + com.oracle.bmc.goldengate.model.TestPipelineConnectionDetails + testPipelineConnectionDetails) { + this.testPipelineConnectionDetails = testPipelineConnectionDetails; + 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; + } + + /** + * 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 is 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 is 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; + } + + /** + * A token that uniquely identifies a request so it can be retried, in case of a timeout or + * server error, without the 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 was deleted and purged from the system, then a retry of the + * original creation request is 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 the 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 was deleted and purged from the system, then a retry of the + * original creation request is 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(TestPipelineConnectionRequest o) { + pipelineId(o.getPipelineId()); + testPipelineConnectionDetails(o.getTestPipelineConnectionDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of TestPipelineConnectionRequest 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 TestPipelineConnectionRequest + */ + public TestPipelineConnectionRequest build() { + TestPipelineConnectionRequest 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.goldengate.model.TestPipelineConnectionDetails body) { + testPipelineConnectionDetails(body); + return this; + } + + /** + * Build the instance of TestPipelineConnectionRequest 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 TestPipelineConnectionRequest + */ + public TestPipelineConnectionRequest buildWithoutInvocationCallback() { + TestPipelineConnectionRequest request = new TestPipelineConnectionRequest(); + request.pipelineId = pipelineId; + request.testPipelineConnectionDetails = testPipelineConnectionDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new TestPipelineConnectionRequest(pipelineId, testPipelineConnectionDetails, + // opcRequestId, ifMatch, 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() + .pipelineId(pipelineId) + .testPipelineConnectionDetails(testPipelineConnectionDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .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(",pipelineId=").append(String.valueOf(this.pipelineId)); + sb.append(",testPipelineConnectionDetails=") + .append(String.valueOf(this.testPipelineConnectionDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 TestPipelineConnectionRequest)) { + return false; + } + + TestPipelineConnectionRequest other = (TestPipelineConnectionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pipelineId, other.pipelineId) + && java.util.Objects.equals( + this.testPipelineConnectionDetails, other.testPipelineConnectionDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.pipelineId == null ? 43 : this.pipelineId.hashCode()); + result = + (result * PRIME) + + (this.testPipelineConnectionDetails == null + ? 43 + : this.testPipelineConnectionDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdatePipelineRequest.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdatePipelineRequest.java new file mode 100644 index 00000000000..99d2d39e2a8 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/requests/UpdatePipelineRequest.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.goldengate.requests; + +import com.oracle.bmc.goldengate.model.*; +/** + * Example: Click here to see how to use UpdatePipelineRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class UpdatePipelineRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.goldengate.model.UpdatePipelineDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + public String getPipelineId() { + return pipelineId; + } + /** The existing pipeline specifications to apply. */ + private com.oracle.bmc.goldengate.model.UpdatePipelineDetails updatePipelineDetails; + + /** The existing pipeline specifications to apply. */ + public com.oracle.bmc.goldengate.model.UpdatePipelineDetails getUpdatePipelineDetails() { + return updatePipelineDetails; + } + /** + * 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 is 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 is 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; + } + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride; + + /** Whether to override locks (if any exist). */ + public Boolean getIsLockOverride() { + return isLockOverride; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.goldengate.model.UpdatePipelineDetails getBody$() { + return updatePipelineDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdatePipelineRequest, com.oracle.bmc.goldengate.model.UpdatePipelineDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + */ + private String pipelineId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * pipeline created. + * + * @param pipelineId the value to set + * @return this builder instance + */ + public Builder pipelineId(String pipelineId) { + this.pipelineId = pipelineId; + return this; + } + + /** The existing pipeline specifications to apply. */ + private com.oracle.bmc.goldengate.model.UpdatePipelineDetails updatePipelineDetails = null; + + /** + * The existing pipeline specifications to apply. + * + * @param updatePipelineDetails the value to set + * @return this builder instance + */ + public Builder updatePipelineDetails( + com.oracle.bmc.goldengate.model.UpdatePipelineDetails updatePipelineDetails) { + this.updatePipelineDetails = updatePipelineDetails; + 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 is 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 is 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; + } + + /** Whether to override locks (if any exist). */ + private Boolean isLockOverride = null; + + /** + * Whether to override locks (if any exist). + * + * @param isLockOverride the value to set + * @return this builder instance + */ + public Builder isLockOverride(Boolean isLockOverride) { + this.isLockOverride = isLockOverride; + 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(UpdatePipelineRequest o) { + pipelineId(o.getPipelineId()); + updatePipelineDetails(o.getUpdatePipelineDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + isLockOverride(o.getIsLockOverride()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdatePipelineRequest 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 UpdatePipelineRequest + */ + public UpdatePipelineRequest build() { + UpdatePipelineRequest 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.goldengate.model.UpdatePipelineDetails body) { + updatePipelineDetails(body); + return this; + } + + /** + * Build the instance of UpdatePipelineRequest 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 UpdatePipelineRequest + */ + public UpdatePipelineRequest buildWithoutInvocationCallback() { + UpdatePipelineRequest request = new UpdatePipelineRequest(); + request.pipelineId = pipelineId; + request.updatePipelineDetails = updatePipelineDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.isLockOverride = isLockOverride; + return request; + // new UpdatePipelineRequest(pipelineId, updatePipelineDetails, ifMatch, opcRequestId, + // isLockOverride); + } + } + + /** + * 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() + .pipelineId(pipelineId) + .updatePipelineDetails(updatePipelineDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .isLockOverride(isLockOverride); + } + + /** + * 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(",pipelineId=").append(String.valueOf(this.pipelineId)); + sb.append(",updatePipelineDetails=").append(String.valueOf(this.updatePipelineDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",isLockOverride=").append(String.valueOf(this.isLockOverride)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePipelineRequest)) { + return false; + } + + UpdatePipelineRequest other = (UpdatePipelineRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pipelineId, other.pipelineId) + && java.util.Objects.equals(this.updatePipelineDetails, other.updatePipelineDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isLockOverride, other.isLockOverride); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.pipelineId == null ? 43 : this.pipelineId.hashCode()); + result = + (result * PRIME) + + (this.updatePipelineDetails == null + ? 43 + : this.updatePipelineDetails.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.isLockOverride == null ? 43 : this.isLockOverride.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ChangePipelineCompartmentResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ChangePipelineCompartmentResponse.java new file mode 100644 index 00000000000..fc57f223c43 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ChangePipelineCompartmentResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ChangePipelineCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangePipelineCompartmentResponse( + 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< + ChangePipelineCompartmentResponse> { + 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; + } + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to + * query status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include 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(ChangePipelineCompartmentResponse 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 ChangePipelineCompartmentResponse build() { + return new ChangePipelineCompartmentResponse( + __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 ChangePipelineCompartmentResponse)) { + return false; + } + + ChangePipelineCompartmentResponse other = (ChangePipelineCompartmentResponse) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/CreatePipelineResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/CreatePipelineResponse.java new file mode 100644 index 00000000000..f31a6a5660a --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/CreatePipelineResponse.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class CreatePipelineResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** 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; + } + + /** The returned {@code Pipeline} instance. */ + private com.oracle.bmc.goldengate.model.Pipeline pipeline; + + /** + * The returned {@code Pipeline} instance. + * + * @return the value + */ + public com.oracle.bmc.goldengate.model.Pipeline getPipeline() { + return pipeline; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId", + "etag", + "pipeline" + }) + private CreatePipelineResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId, + String etag, + com.oracle.bmc.goldengate.model.Pipeline pipeline) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.etag = etag; + this.pipeline = pipeline; + } + + 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; + } + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to + * query status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** The returned {@code Pipeline} instance. */ + private com.oracle.bmc.goldengate.model.Pipeline pipeline; + + /** + * The returned {@code Pipeline} instance. + * + * @param pipeline the value to set + * @return this builder + */ + public Builder pipeline(com.oracle.bmc.goldengate.model.Pipeline pipeline) { + this.pipeline = pipeline; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreatePipelineResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + pipeline(o.getPipeline()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreatePipelineResponse build() { + return new CreatePipelineResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId, etag, pipeline); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",pipeline=").append(String.valueOf(pipeline)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreatePipelineResponse)) { + return false; + } + + CreatePipelineResponse other = (CreatePipelineResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.pipeline, other.pipeline); + } + + @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()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.pipeline == null ? 43 : this.pipeline.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/DeletePipelineResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/DeletePipelineResponse.java new file mode 100644 index 00000000000..d9f9cc9da22 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/DeletePipelineResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class DeletePipelineResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeletePipelineResponse( + 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; + } + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to + * query status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include 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(DeletePipelineResponse 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 DeletePipelineResponse build() { + return new DeletePipelineResponse( + __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 DeletePipelineResponse)) { + return false; + } + + DeletePipelineResponse other = (DeletePipelineResponse) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/GetPipelineResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/GetPipelineResponse.java new file mode 100644 index 00000000000..a1726bf5a32 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/GetPipelineResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class GetPipelineResponse 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code Pipeline} instance. */ + private com.oracle.bmc.goldengate.model.Pipeline pipeline; + + /** + * The returned {@code Pipeline} instance. + * + * @return the value + */ + public com.oracle.bmc.goldengate.model.Pipeline getPipeline() { + return pipeline; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "pipeline" + }) + private GetPipelineResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.goldengate.model.Pipeline pipeline) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.pipeline = pipeline; + } + + 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include 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 Pipeline} instance. */ + private com.oracle.bmc.goldengate.model.Pipeline pipeline; + + /** + * The returned {@code Pipeline} instance. + * + * @param pipeline the value to set + * @return this builder + */ + public Builder pipeline(com.oracle.bmc.goldengate.model.Pipeline pipeline) { + this.pipeline = pipeline; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetPipelineResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + pipeline(o.getPipeline()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetPipelineResponse build() { + return new GetPipelineResponse( + __httpStatusCode__, headers, etag, opcRequestId, pipeline); + } + } + + /** + * 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(",pipeline=").append(String.valueOf(pipeline)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetPipelineResponse)) { + return false; + } + + GetPipelineResponse other = (GetPipelineResponse) 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.pipeline, other.pipeline); + } + + @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.pipeline == null ? 43 : this.pipeline.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineInitializationStepsResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineInitializationStepsResponse.java new file mode 100644 index 00000000000..d678793c896 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineInitializationStepsResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListPipelineInitializationStepsResponse 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code PipelineInitializationSteps} instance. */ + private com.oracle.bmc.goldengate.model.PipelineInitializationSteps pipelineInitializationSteps; + + /** + * The returned {@code PipelineInitializationSteps} instance. + * + * @return the value + */ + public com.oracle.bmc.goldengate.model.PipelineInitializationSteps + getPipelineInitializationSteps() { + return pipelineInitializationSteps; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "pipelineInitializationSteps" + }) + private ListPipelineInitializationStepsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.goldengate.model.PipelineInitializationSteps + pipelineInitializationSteps) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.pipelineInitializationSteps = pipelineInitializationSteps; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListPipelineInitializationStepsResponse> { + 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include 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 PipelineInitializationSteps} instance. */ + private com.oracle.bmc.goldengate.model.PipelineInitializationSteps + pipelineInitializationSteps; + + /** + * The returned {@code PipelineInitializationSteps} instance. + * + * @param pipelineInitializationSteps the value to set + * @return this builder + */ + public Builder pipelineInitializationSteps( + com.oracle.bmc.goldengate.model.PipelineInitializationSteps + pipelineInitializationSteps) { + this.pipelineInitializationSteps = pipelineInitializationSteps; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListPipelineInitializationStepsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + pipelineInitializationSteps(o.getPipelineInitializationSteps()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListPipelineInitializationStepsResponse build() { + return new ListPipelineInitializationStepsResponse( + __httpStatusCode__, headers, etag, opcRequestId, pipelineInitializationSteps); + } + } + + /** + * 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(",pipelineInitializationSteps=") + .append(String.valueOf(pipelineInitializationSteps)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPipelineInitializationStepsResponse)) { + return false; + } + + ListPipelineInitializationStepsResponse other = (ListPipelineInitializationStepsResponse) 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.pipelineInitializationSteps, other.pipelineInitializationSteps); + } + + @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.pipelineInitializationSteps == null + ? 43 + : this.pipelineInitializationSteps.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineRunningProcessesResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineRunningProcessesResponse.java new file mode 100644 index 00000000000..2f2a396980d --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineRunningProcessesResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListPipelineRunningProcessesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + */ + private String opcNextPage; + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code PipelineRunningProcessCollection} instance. */ + private com.oracle.bmc.goldengate.model.PipelineRunningProcessCollection + pipelineRunningProcessCollection; + + /** + * The returned {@code PipelineRunningProcessCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.goldengate.model.PipelineRunningProcessCollection + getPipelineRunningProcessCollection() { + return pipelineRunningProcessCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "pipelineRunningProcessCollection" + }) + private ListPipelineRunningProcessesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.goldengate.model.PipelineRunningProcessCollection + pipelineRunningProcessCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.pipelineRunningProcessCollection = pipelineRunningProcessCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListPipelineRunningProcessesResponse> { + 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; + } + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + */ + private String opcNextPage; + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include 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 PipelineRunningProcessCollection} instance. */ + private com.oracle.bmc.goldengate.model.PipelineRunningProcessCollection + pipelineRunningProcessCollection; + + /** + * The returned {@code PipelineRunningProcessCollection} instance. + * + * @param pipelineRunningProcessCollection the value to set + * @return this builder + */ + public Builder pipelineRunningProcessCollection( + com.oracle.bmc.goldengate.model.PipelineRunningProcessCollection + pipelineRunningProcessCollection) { + this.pipelineRunningProcessCollection = pipelineRunningProcessCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListPipelineRunningProcessesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + pipelineRunningProcessCollection(o.getPipelineRunningProcessCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListPipelineRunningProcessesResponse build() { + return new ListPipelineRunningProcessesResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + pipelineRunningProcessCollection); + } + } + + /** + * 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(",pipelineRunningProcessCollection=") + .append(String.valueOf(pipelineRunningProcessCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPipelineRunningProcessesResponse)) { + return false; + } + + ListPipelineRunningProcessesResponse other = (ListPipelineRunningProcessesResponse) 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.pipelineRunningProcessCollection, + other.pipelineRunningProcessCollection); + } + + @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.pipelineRunningProcessCollection == null + ? 43 + : this.pipelineRunningProcessCollection.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineSchemaTablesResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineSchemaTablesResponse.java new file mode 100644 index 00000000000..317c1bc4ac7 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineSchemaTablesResponse.java @@ -0,0 +1,233 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListPipelineSchemaTablesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + */ + private String opcNextPage; + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code PipelineSchemaTableCollection} instance. */ + private com.oracle.bmc.goldengate.model.PipelineSchemaTableCollection + pipelineSchemaTableCollection; + + /** + * The returned {@code PipelineSchemaTableCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.goldengate.model.PipelineSchemaTableCollection + getPipelineSchemaTableCollection() { + return pipelineSchemaTableCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "pipelineSchemaTableCollection" + }) + private ListPipelineSchemaTablesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.goldengate.model.PipelineSchemaTableCollection + pipelineSchemaTableCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.pipelineSchemaTableCollection = pipelineSchemaTableCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListPipelineSchemaTablesResponse> { + 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + */ + private String opcNextPage; + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code PipelineSchemaTableCollection} instance. */ + private com.oracle.bmc.goldengate.model.PipelineSchemaTableCollection + pipelineSchemaTableCollection; + + /** + * The returned {@code PipelineSchemaTableCollection} instance. + * + * @param pipelineSchemaTableCollection the value to set + * @return this builder + */ + public Builder pipelineSchemaTableCollection( + com.oracle.bmc.goldengate.model.PipelineSchemaTableCollection + pipelineSchemaTableCollection) { + this.pipelineSchemaTableCollection = pipelineSchemaTableCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListPipelineSchemaTablesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + pipelineSchemaTableCollection(o.getPipelineSchemaTableCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListPipelineSchemaTablesResponse build() { + return new ListPipelineSchemaTablesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + pipelineSchemaTableCollection); + } + } + + /** + * 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(",pipelineSchemaTableCollection=") + .append(String.valueOf(pipelineSchemaTableCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPipelineSchemaTablesResponse)) { + return false; + } + + ListPipelineSchemaTablesResponse other = (ListPipelineSchemaTablesResponse) 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.pipelineSchemaTableCollection, other.pipelineSchemaTableCollection); + } + + @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.pipelineSchemaTableCollection == null + ? 43 + : this.pipelineSchemaTableCollection.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineSchemasResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineSchemasResponse.java new file mode 100644 index 00000000000..21258a85738 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelineSchemasResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListPipelineSchemasResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + */ + private String opcNextPage; + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code PipelineSchemaCollection} instance. */ + private com.oracle.bmc.goldengate.model.PipelineSchemaCollection pipelineSchemaCollection; + + /** + * The returned {@code PipelineSchemaCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.goldengate.model.PipelineSchemaCollection getPipelineSchemaCollection() { + return pipelineSchemaCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "pipelineSchemaCollection" + }) + private ListPipelineSchemasResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.goldengate.model.PipelineSchemaCollection pipelineSchemaCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.pipelineSchemaCollection = pipelineSchemaCollection; + } + + 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + */ + private String opcNextPage; + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code PipelineSchemaCollection} instance. */ + private com.oracle.bmc.goldengate.model.PipelineSchemaCollection pipelineSchemaCollection; + + /** + * The returned {@code PipelineSchemaCollection} instance. + * + * @param pipelineSchemaCollection the value to set + * @return this builder + */ + public Builder pipelineSchemaCollection( + com.oracle.bmc.goldengate.model.PipelineSchemaCollection pipelineSchemaCollection) { + this.pipelineSchemaCollection = pipelineSchemaCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListPipelineSchemasResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + pipelineSchemaCollection(o.getPipelineSchemaCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListPipelineSchemasResponse build() { + return new ListPipelineSchemasResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + pipelineSchemaCollection); + } + } + + /** + * 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(",pipelineSchemaCollection=").append(String.valueOf(pipelineSchemaCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPipelineSchemasResponse)) { + return false; + } + + ListPipelineSchemasResponse other = (ListPipelineSchemasResponse) 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.pipelineSchemaCollection, other.pipelineSchemaCollection); + } + + @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.pipelineSchemaCollection == null + ? 43 + : this.pipelineSchemaCollection.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelinesResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelinesResponse.java new file mode 100644 index 00000000000..e0759a958d5 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListPipelinesResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListPipelinesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + */ + private String opcNextPage; + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code PipelineCollection} instance. */ + private com.oracle.bmc.goldengate.model.PipelineCollection pipelineCollection; + + /** + * The returned {@code PipelineCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.goldengate.model.PipelineCollection getPipelineCollection() { + return pipelineCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "pipelineCollection" + }) + private ListPipelinesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.goldengate.model.PipelineCollection pipelineCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.pipelineCollection = pipelineCollection; + } + + 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + */ + private String opcNextPage; + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code PipelineCollection} instance. */ + private com.oracle.bmc.goldengate.model.PipelineCollection pipelineCollection; + + /** + * The returned {@code PipelineCollection} instance. + * + * @param pipelineCollection the value to set + * @return this builder + */ + public Builder pipelineCollection( + com.oracle.bmc.goldengate.model.PipelineCollection pipelineCollection) { + this.pipelineCollection = pipelineCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListPipelinesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + pipelineCollection(o.getPipelineCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListPipelinesResponse build() { + return new ListPipelinesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, pipelineCollection); + } + } + + /** + * 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(",pipelineCollection=").append(String.valueOf(pipelineCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListPipelinesResponse)) { + return false; + } + + ListPipelinesResponse other = (ListPipelinesResponse) 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.pipelineCollection, other.pipelineCollection); + } + + @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.pipelineCollection == null + ? 43 + : this.pipelineCollection.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListRecipesResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListRecipesResponse.java new file mode 100644 index 00000000000..99aecd4287b --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/ListRecipesResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class ListRecipesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + */ + private String opcNextPage; + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code RecipeSummaryCollection} instance. */ + private com.oracle.bmc.goldengate.model.RecipeSummaryCollection recipeSummaryCollection; + + /** + * The returned {@code RecipeSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.goldengate.model.RecipeSummaryCollection getRecipeSummaryCollection() { + return recipeSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "recipeSummaryCollection" + }) + private ListRecipesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.goldengate.model.RecipeSummaryCollection recipeSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.recipeSummaryCollection = recipeSummaryCollection; + } + + 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + */ + private String opcNextPage; + + /** + * The page token represents the page to start retrieving results. This is usually retrieved + * from a previous list call. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code RecipeSummaryCollection} instance. */ + private com.oracle.bmc.goldengate.model.RecipeSummaryCollection recipeSummaryCollection; + + /** + * The returned {@code RecipeSummaryCollection} instance. + * + * @param recipeSummaryCollection the value to set + * @return this builder + */ + public Builder recipeSummaryCollection( + com.oracle.bmc.goldengate.model.RecipeSummaryCollection recipeSummaryCollection) { + this.recipeSummaryCollection = recipeSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListRecipesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + recipeSummaryCollection(o.getRecipeSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListRecipesResponse build() { + return new ListRecipesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + recipeSummaryCollection); + } + } + + /** + * 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(",recipeSummaryCollection=").append(String.valueOf(recipeSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListRecipesResponse)) { + return false; + } + + ListRecipesResponse other = (ListRecipesResponse) 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.recipeSummaryCollection, other.recipeSummaryCollection); + } + + @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.recipeSummaryCollection == null + ? 43 + : this.recipeSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/StartPipelineResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/StartPipelineResponse.java new file mode 100644 index 00000000000..791f65eacb9 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/StartPipelineResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class StartPipelineResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StartPipelineResponse( + 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; + } + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to + * query status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include 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(StartPipelineResponse 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 StartPipelineResponse build() { + return new StartPipelineResponse( + __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 StartPipelineResponse)) { + return false; + } + + StartPipelineResponse other = (StartPipelineResponse) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/StopPipelineResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/StopPipelineResponse.java new file mode 100644 index 00000000000..9e1bb221796 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/StopPipelineResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class StopPipelineResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StopPipelineResponse( + 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; + } + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to + * query status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include 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(StopPipelineResponse 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 StopPipelineResponse build() { + return new StopPipelineResponse( + __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 StopPipelineResponse)) { + return false; + } + + StopPipelineResponse other = (StopPipelineResponse) 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-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/TestPipelineConnectionResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/TestPipelineConnectionResponse.java new file mode 100644 index 00000000000..e3cf25cd435 --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/TestPipelineConnectionResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class TestPipelineConnectionResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** 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; + } + + /** The returned {@code TestPipelineConnectionResult} instance. */ + private com.oracle.bmc.goldengate.model.TestPipelineConnectionResult + testPipelineConnectionResult; + + /** + * The returned {@code TestPipelineConnectionResult} instance. + * + * @return the value + */ + public com.oracle.bmc.goldengate.model.TestPipelineConnectionResult + getTestPipelineConnectionResult() { + return testPipelineConnectionResult; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "testPipelineConnectionResult" + }) + private TestPipelineConnectionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.goldengate.model.TestPipelineConnectionResult + testPipelineConnectionResult) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.testPipelineConnectionResult = testPipelineConnectionResult; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + TestPipelineConnectionResponse> { + 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + 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; + } + + /** The returned {@code TestPipelineConnectionResult} instance. */ + private com.oracle.bmc.goldengate.model.TestPipelineConnectionResult + testPipelineConnectionResult; + + /** + * The returned {@code TestPipelineConnectionResult} instance. + * + * @param testPipelineConnectionResult the value to set + * @return this builder + */ + public Builder testPipelineConnectionResult( + com.oracle.bmc.goldengate.model.TestPipelineConnectionResult + testPipelineConnectionResult) { + this.testPipelineConnectionResult = testPipelineConnectionResult; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(TestPipelineConnectionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + testPipelineConnectionResult(o.getTestPipelineConnectionResult()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public TestPipelineConnectionResponse build() { + return new TestPipelineConnectionResponse( + __httpStatusCode__, headers, opcRequestId, etag, testPipelineConnectionResult); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",testPipelineConnectionResult=") + .append(String.valueOf(testPipelineConnectionResult)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TestPipelineConnectionResponse)) { + return false; + } + + TestPipelineConnectionResponse other = (TestPipelineConnectionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.testPipelineConnectionResult, other.testPipelineConnectionResult); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.testPipelineConnectionResult == null + ? 43 + : this.testPipelineConnectionResult.hashCode()); + return result; + } +} diff --git a/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/UpdatePipelineResponse.java b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/UpdatePipelineResponse.java new file mode 100644 index 00000000000..c4168b2f5eb --- /dev/null +++ b/bmc-goldengate/src/main/java/com/oracle/bmc/goldengate/responses/UpdatePipelineResponse.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.goldengate.responses; + +import com.oracle.bmc.goldengate.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") +public class UpdatePipelineResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please include the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdatePipelineResponse( + 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; + } + + /** + * A unique Oracle-assigned identifier for an asynchronous request. You can use this to + * query status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * A unique Oracle-assigned identifier for an 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; + } + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include the request ID. + */ + private String opcRequestId; + + /** + * A unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please include 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(UpdatePipelineResponse 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 UpdatePipelineResponse build() { + return new UpdatePipelineResponse( + __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 UpdatePipelineResponse)) { + return false; + } + + UpdatePipelineResponse other = (UpdatePipelineResponse) 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-goldengate/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-goldengate/reflect-config.json b/bmc-goldengate/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-goldengate/reflect-config.json index f0f0388b71f..ff753929eee 100644 --- a/bmc-goldengate/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-goldengate/reflect-config.json +++ b/bmc-goldengate/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-goldengate/reflect-config.json @@ -344,6 +344,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ChangePipelineCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ChangePipelineCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.CollectDeploymentDiagnosticDetails", @@ -879,6 +893,13 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.CreatePipelineDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.CreatePostgresqlConnectionDetails", @@ -921,6 +942,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.CreateZeroEtlPipelineDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.CreateZeroEtlPipelineDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.CredentialStore", @@ -1153,6 +1188,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.DefaultStartPipelineDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.DefaultStartPipelineDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.DefaultStopDeploymentDetails", @@ -1167,6 +1216,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.DefaultStopPipelineDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.DefaultStopPipelineDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.DefaultTestConnectionAssignmentDetails", @@ -1181,6 +1244,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.DefaultTestPipelineConnectionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.DefaultTestPipelineConnectionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.DefaultUpgradeDeploymentUpgradeDetails", @@ -1829,6 +1906,32 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.InitialDataLoad", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.InitialDataLoad$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.InitialDataLoad$IsInitialLoad", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.InitialLoadAction", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.JavaMessageServiceConnection", @@ -2041,6 +2144,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.MappingRule", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.MappingRule$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.MappingType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.MessageSummary", @@ -2335,6 +2458,158 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.Pipeline", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.Pipeline$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineInitializationStep", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineInitializationStep$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineInitializationSteps", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineInitializationSteps$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineLifecycleSubState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineRunningProcessCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineRunningProcessCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineRunningProcessSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineRunningProcessSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineSchemaCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineSchemaCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineSchemaSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineSchemaSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineSchemaTableCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineSchemaTableCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineSchemaTableSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineSchemaTableSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.PipelineSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.PostgresqlConnection", @@ -2381,6 +2656,72 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ProcessOptions", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ProcessOptions$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ProcessOptions$ShouldRestartOnFailure", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ProcessStatusType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ProcessType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.RecipeSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.RecipeSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.RecipeSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.RecipeSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.RecipeType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.RedisConnection", @@ -2466,6 +2807,38 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ReplicateDdlErrorAction", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ReplicateDmlErrorAction", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ReplicateSchemaChange", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ReplicateSchemaChange$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ReplicateSchemaChange$CanReplicateSchemaChange", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.RescheduleDeploymentUpgradeDetails", @@ -2545,6 +2918,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.SeverityType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.SnoozeDeploymentUpgradeDetails", @@ -2604,6 +2983,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.SourcePipelineConnectionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.SourcePipelineConnectionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.StartDeploymentDetails", @@ -2617,6 +3010,39 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.StartPipelineDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.StartPipelineType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.StepMessage", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.StepMessage$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.StepStatusType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.StopDeploymentDetails", @@ -2630,6 +3056,33 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.StopPipelineDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.StopPipelineType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.TargetPipelineConnectionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.TargetPipelineConnectionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.TechnologyType", @@ -2683,6 +3136,53 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.TestPipelineConnectionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.TestPipelineConnectionError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.TestPipelineConnectionError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.TestPipelineConnectionResult", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.TestPipelineConnectionResult$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.TestPipelineConnectionResult$ResultType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.TestPipelineConnectionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.TrailFileCollection", @@ -3144,6 +3644,13 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.UpdatePipelineDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.UpdatePostgresqlConnectionDetails", @@ -3186,6 +3693,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.UpdateZeroEtlPipelineDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.UpdateZeroEtlPipelineDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.goldengate.model.UpgradeDeploymentCurrentReleaseDetails", @@ -3301,5 +3822,33 @@ "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ZeroEtlPipeline", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ZeroEtlPipeline$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ZeroEtlPipelineSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.goldengate.model.ZeroEtlPipelineSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true } ] \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 22a8ae50b81..b5a560861b2 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index d693a313594..fc03a89a1e7 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index dc4c04e2487..413d6aaf41c 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index 0efd209324c..c28473f0fa4 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index bc40ecbe34f..3d20adcba4a 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 1b25551787e..c4f284b9390 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 0ca08179e06..36fc03c9474 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index 142a529bf17..b402ba92a04 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 70400861d33..53a9d877a21 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 860f43a4355..af86f799412 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 85364af80e7..56eb613b79b 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 36f511d10d0..1e23ebaa45a 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index b5b0637118d..1ef62ea9d28 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index cf0226f37a2..04d29b263b5 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index c9d90bffa6b..4c106b87797 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index ee02411d2af..f488db6b48a 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 8505ca38eca..a1cab79b040 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index d74d44286f6..d08abb1da29 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index f2da3779a58..039e4ca45e8 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index fff2c4809a8..01ec40ac3ed 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 80aefacbee7..6c5de1e0a68 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 11c6161c1c7..d7e751dcc06 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 3d0951f079f..a517c741ec6 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 6fa8691f7c1..486c2714b9a 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 7d616ab44de..d0198a5862b 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index 27ceea64dcf..85ab28bdfda 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 59f8ddc45d9..92d97120204 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 58fd62e02d1..72783922a9c 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 61b20f80354..5219af8c434 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.55.0 + 3.55.1 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.55.0 + 3.55.1 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 28e02642ae5..3a166ab85d4 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.55.0 + 3.55.1 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.55.0 + 3.55.1 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 7ac2565678f..8272bdef7b2 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.55.0 + 3.55.1 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index fbf414fcdf0..1cba753791d 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 8130a3a453d..ca7d12742d7 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index bdd42a68252..623c2963308 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 1d690285a18..26fa4d5648d 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 9b63687a797..45c5f49bdbe 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index e8fa4dd1726..46859c9c166 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 8496c4e144d..fae08ca66c1 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 3ae3cf4b50a..99d8fb1b74b 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 833f8d3ed22..46bfbfa64d9 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 3b0c610ef11..30a26a4c572 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 1febe516297..24047a8568d 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index c8d5df8571e..ffd15242db7 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index 5888ca4c6f6..36f1bbd4174 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index c62cc9ec74a..17995e932a1 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 7d87a5a20b7..0946bd29b9c 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index c035ca12391..1ffb66610e0 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 3c015069586..c2bbf3bd283 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 73ff09ca34a..7bf47f8355c 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index d1575fde3ff..97ef41cc08b 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ 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 c5163bb7ab8..f1349970833 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.55.0 + 3.55.1 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.55.0 + 3.55.1 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.0 + 3.55.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.0 + 3.55.1 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index a7c2eed9b46..6b088e49a85 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.55.0 + 3.55.1 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.55.0 + 3.55.1 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.55.0 + 3.55.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.55.0 + 3.55.1 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index ea0a7227cbe..4f0feadb3f4 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.55.0 + 3.55.1 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.55.0 + 3.55.1 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.55.0 + 3.55.1 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index d766bc951f3..f3f48dbb073 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.55.0 + 3.55.1 ../pom.xml diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 3e16f6419e1..863ef0262a8 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index e5baf7bc95a..e706afc84a6 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index f404f04ba47..658a94655a2 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index d38f2f8e1e3..fda8f4b202c 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index d77d85277c9..24f6d1eba05 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index d187efc49a3..aeef800d1fc 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 5a932e90dd5..c8c07b2c1e3 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index f80e031f184..6fe51180dda 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 28091542969..62445c5c9e7 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 3700f9b79a7..0fba05d6915 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index 2f86a112899..7f77b9def31 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index ec5046cbf75..635761c92fa 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 15e4985e715..fd6be3ca4fe 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index 3a3cfd03a66..e626ad867c0 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-servicemesh @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ 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 18025d34c5c..a4fa6468384 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.55.0 + 3.55.1 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index e5dba59db76..0fe7b8b1471 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index a028bab384b..87127b6a2c1 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/StackMonitoringAsyncClient.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/StackMonitoringAsyncClient.java index 89d6f7c803b..e3d81089523 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/StackMonitoringAsyncClient.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/StackMonitoringAsyncClient.java @@ -1653,7 +1653,6 @@ public java.util.concurrent.Future listMetricExten final com.oracle.bmc.responses.AsyncHandler< ListMetricExtensionsRequest, ListMetricExtensionsResponse> handler) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListMetricExtensionsResponse::builder) .logger(LOG, "listMetricExtensions") @@ -1675,6 +1674,7 @@ public java.util.concurrent.Future listMetricExten .appendEnumQueryParam("status", request.getStatus()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("enabledOnResourceId", request.getEnabledOnResourceId()) + .appendQueryParam("metricExtensionId", request.getMetricExtensionId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/StackMonitoringClient.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/StackMonitoringClient.java index e487321d6c3..9eeab5d98b4 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/StackMonitoringClient.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/StackMonitoringClient.java @@ -1542,7 +1542,6 @@ public ListMaintenanceWindowsResponse listMaintenanceWindows( @Override public ListMetricExtensionsResponse listMetricExtensions(ListMetricExtensionsRequest request) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListMetricExtensionsResponse::builder) .logger(LOG, "listMetricExtensions") @@ -1564,6 +1563,7 @@ public ListMetricExtensionsResponse listMetricExtensions(ListMetricExtensionsReq .appendEnumQueryParam("status", request.getStatus()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("enabledOnResourceId", request.getEnabledOnResourceId()) + .appendQueryParam("metricExtensionId", request.getMetricExtensionId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpProtocolTypes.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpProtocolTypes.java new file mode 100644 index 00000000000..190e3eaa318 --- /dev/null +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpProtocolTypes.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.stackmonitoring.model; + +/** Possible protocol types of HTTP collection method */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210330") +public enum HttpProtocolTypes implements com.oracle.bmc.http.internal.BmcEnum { + Http("HTTP"), + Https("HTTPS"), + + /** + * 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(HttpProtocolTypes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HttpProtocolTypes v : HttpProtocolTypes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HttpProtocolTypes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HttpProtocolTypes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HttpProtocolTypes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpQueryProperties.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpQueryProperties.java new file mode 100644 index 00000000000..2fa57b72164 --- /dev/null +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpQueryProperties.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.stackmonitoring.model; + +/** + * Query properties applicable to HTTP type of collection method
+ * 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: 20210330") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HttpQueryProperties.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "collectionMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class HttpQueryProperties extends MetricExtensionQueryProperties { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Http(s) end point URL */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * Http(s) end point URL + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** Type of content response given by the http(s) URL */ + @com.fasterxml.jackson.annotation.JsonProperty("responseContentType") + private HttpResponseContentTypes responseContentType; + + /** + * Type of content response given by the http(s) URL + * + * @param responseContentType the value to set + * @return this builder + */ + public Builder responseContentType(HttpResponseContentTypes responseContentType) { + this.responseContentType = responseContentType; + this.__explicitlySet__.add("responseContentType"); + return this; + } + /** + * Supported protocol of resources to be associated with this metric extension. This is + * optional and defaults to HTTPS, which uses secure connection to the URL + */ + @com.fasterxml.jackson.annotation.JsonProperty("protocolType") + private HttpProtocolTypes protocolType; + + /** + * Supported protocol of resources to be associated with this metric extension. This is + * optional and defaults to HTTPS, which uses secure connection to the URL + * + * @param protocolType the value to set + * @return this builder + */ + public Builder protocolType(HttpProtocolTypes protocolType) { + this.protocolType = protocolType; + this.__explicitlySet__.add("protocolType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scriptDetails") + private HttpScriptFileDetails scriptDetails; + + public Builder scriptDetails(HttpScriptFileDetails scriptDetails) { + this.scriptDetails = scriptDetails; + this.__explicitlySet__.add("scriptDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HttpQueryProperties build() { + HttpQueryProperties model = + new HttpQueryProperties( + this.url, + this.responseContentType, + this.protocolType, + this.scriptDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HttpQueryProperties model) { + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("responseContentType")) { + this.responseContentType(model.getResponseContentType()); + } + if (model.wasPropertyExplicitlySet("protocolType")) { + this.protocolType(model.getProtocolType()); + } + if (model.wasPropertyExplicitlySet("scriptDetails")) { + this.scriptDetails(model.getScriptDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public HttpQueryProperties( + String url, + HttpResponseContentTypes responseContentType, + HttpProtocolTypes protocolType, + HttpScriptFileDetails scriptDetails) { + super(); + this.url = url; + this.responseContentType = responseContentType; + this.protocolType = protocolType; + this.scriptDetails = scriptDetails; + } + + /** Http(s) end point URL */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * Http(s) end point URL + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** Type of content response given by the http(s) URL */ + @com.fasterxml.jackson.annotation.JsonProperty("responseContentType") + private final HttpResponseContentTypes responseContentType; + + /** + * Type of content response given by the http(s) URL + * + * @return the value + */ + public HttpResponseContentTypes getResponseContentType() { + return responseContentType; + } + + /** + * Supported protocol of resources to be associated with this metric extension. This is optional + * and defaults to HTTPS, which uses secure connection to the URL + */ + @com.fasterxml.jackson.annotation.JsonProperty("protocolType") + private final HttpProtocolTypes protocolType; + + /** + * Supported protocol of resources to be associated with this metric extension. This is optional + * and defaults to HTTPS, which uses secure connection to the URL + * + * @return the value + */ + public HttpProtocolTypes getProtocolType() { + return protocolType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scriptDetails") + private final HttpScriptFileDetails scriptDetails; + + public HttpScriptFileDetails getScriptDetails() { + return scriptDetails; + } + + @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("HttpQueryProperties("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", responseContentType=").append(String.valueOf(this.responseContentType)); + sb.append(", protocolType=").append(String.valueOf(this.protocolType)); + sb.append(", scriptDetails=").append(String.valueOf(this.scriptDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HttpQueryProperties)) { + return false; + } + + HttpQueryProperties other = (HttpQueryProperties) o; + return java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.responseContentType, other.responseContentType) + && java.util.Objects.equals(this.protocolType, other.protocolType) + && java.util.Objects.equals(this.scriptDetails, other.scriptDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = + (result * PRIME) + + (this.responseContentType == null + ? 43 + : this.responseContentType.hashCode()); + result = (result * PRIME) + (this.protocolType == null ? 43 : this.protocolType.hashCode()); + result = + (result * PRIME) + + (this.scriptDetails == null ? 43 : this.scriptDetails.hashCode()); + return result; + } +} diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpResponseContentTypes.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpResponseContentTypes.java new file mode 100644 index 00000000000..31762bb385d --- /dev/null +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpResponseContentTypes.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.stackmonitoring.model; + +/** Possible response content types of HTTP collection method */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210330") +public enum HttpResponseContentTypes implements com.oracle.bmc.http.internal.BmcEnum { + TextPlain("TEXT_PLAIN"), + TextHtml("TEXT_HTML"), + ApplicationJson("APPLICATION_JSON"), + ApplicationXml("APPLICATION_XML"), + + /** + * 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(HttpResponseContentTypes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HttpResponseContentTypes v : HttpResponseContentTypes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HttpResponseContentTypes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HttpResponseContentTypes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HttpResponseContentTypes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpScriptFileDetails.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpScriptFileDetails.java new file mode 100644 index 00000000000..a3c830d4445 --- /dev/null +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpScriptFileDetails.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.stackmonitoring.model; + +/** + * JavaScript file details which is used to convert http(s) response into metric data
+ * 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: 20210330") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HttpScriptFileDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class HttpScriptFileDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "content"}) + public HttpScriptFileDetails(String name, String content) { + super(); + this.name = name; + this.content = content; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the script file */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the script file + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Content of the JavaScript file as base64 encoded string */ + @com.fasterxml.jackson.annotation.JsonProperty("content") + private String content; + + /** + * Content of the JavaScript file as base64 encoded string + * + * @param content the value to set + * @return this builder + */ + public Builder content(String content) { + this.content = content; + this.__explicitlySet__.add("content"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HttpScriptFileDetails build() { + HttpScriptFileDetails model = new HttpScriptFileDetails(this.name, this.content); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HttpScriptFileDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("content")) { + this.content(model.getContent()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the script file */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the script file + * + * @return the value + */ + public String getName() { + return name; + } + + /** Content of the JavaScript file as base64 encoded string */ + @com.fasterxml.jackson.annotation.JsonProperty("content") + private final String content; + + /** + * Content of the JavaScript file as base64 encoded string + * + * @return the value + */ + public String getContent() { + return content; + } + + @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("HttpScriptFileDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", content=").append(String.valueOf(this.content)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HttpScriptFileDetails)) { + return false; + } + + HttpScriptFileDetails other = (HttpScriptFileDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.content, other.content) + && 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.content == null ? 43 : this.content.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpUpdateQueryProperties.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpUpdateQueryProperties.java new file mode 100644 index 00000000000..a47beba5adc --- /dev/null +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/HttpUpdateQueryProperties.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.stackmonitoring.model; + +/** + * Query properties applicable to HTTP type of collection method
+ * 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: 20210330") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HttpUpdateQueryProperties.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "collectionMethod") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class HttpUpdateQueryProperties extends MetricExtensionUpdateQueryProperties { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Http(s) end point URL */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * Http(s) end point URL + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** Type of content response given by the http(s) URL */ + @com.fasterxml.jackson.annotation.JsonProperty("responseContentType") + private HttpResponseContentTypes responseContentType; + + /** + * Type of content response given by the http(s) URL + * + * @param responseContentType the value to set + * @return this builder + */ + public Builder responseContentType(HttpResponseContentTypes responseContentType) { + this.responseContentType = responseContentType; + this.__explicitlySet__.add("responseContentType"); + return this; + } + /** + * Supported protocol of resources to be associated with this metric extension. This is + * optional and defaults to HTTPS, which uses secure connection to the URL + */ + @com.fasterxml.jackson.annotation.JsonProperty("protocolType") + private HttpProtocolTypes protocolType; + + /** + * Supported protocol of resources to be associated with this metric extension. This is + * optional and defaults to HTTPS, which uses secure connection to the URL + * + * @param protocolType the value to set + * @return this builder + */ + public Builder protocolType(HttpProtocolTypes protocolType) { + this.protocolType = protocolType; + this.__explicitlySet__.add("protocolType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scriptDetails") + private UpdateHttpScriptFileDetails scriptDetails; + + public Builder scriptDetails(UpdateHttpScriptFileDetails scriptDetails) { + this.scriptDetails = scriptDetails; + this.__explicitlySet__.add("scriptDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HttpUpdateQueryProperties build() { + HttpUpdateQueryProperties model = + new HttpUpdateQueryProperties( + this.url, + this.responseContentType, + this.protocolType, + this.scriptDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HttpUpdateQueryProperties model) { + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("responseContentType")) { + this.responseContentType(model.getResponseContentType()); + } + if (model.wasPropertyExplicitlySet("protocolType")) { + this.protocolType(model.getProtocolType()); + } + if (model.wasPropertyExplicitlySet("scriptDetails")) { + this.scriptDetails(model.getScriptDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public HttpUpdateQueryProperties( + String url, + HttpResponseContentTypes responseContentType, + HttpProtocolTypes protocolType, + UpdateHttpScriptFileDetails scriptDetails) { + super(); + this.url = url; + this.responseContentType = responseContentType; + this.protocolType = protocolType; + this.scriptDetails = scriptDetails; + } + + /** Http(s) end point URL */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * Http(s) end point URL + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** Type of content response given by the http(s) URL */ + @com.fasterxml.jackson.annotation.JsonProperty("responseContentType") + private final HttpResponseContentTypes responseContentType; + + /** + * Type of content response given by the http(s) URL + * + * @return the value + */ + public HttpResponseContentTypes getResponseContentType() { + return responseContentType; + } + + /** + * Supported protocol of resources to be associated with this metric extension. This is optional + * and defaults to HTTPS, which uses secure connection to the URL + */ + @com.fasterxml.jackson.annotation.JsonProperty("protocolType") + private final HttpProtocolTypes protocolType; + + /** + * Supported protocol of resources to be associated with this metric extension. This is optional + * and defaults to HTTPS, which uses secure connection to the URL + * + * @return the value + */ + public HttpProtocolTypes getProtocolType() { + return protocolType; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scriptDetails") + private final UpdateHttpScriptFileDetails scriptDetails; + + public UpdateHttpScriptFileDetails getScriptDetails() { + return scriptDetails; + } + + @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("HttpUpdateQueryProperties("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", responseContentType=").append(String.valueOf(this.responseContentType)); + sb.append(", protocolType=").append(String.valueOf(this.protocolType)); + sb.append(", scriptDetails=").append(String.valueOf(this.scriptDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HttpUpdateQueryProperties)) { + return false; + } + + HttpUpdateQueryProperties other = (HttpUpdateQueryProperties) o; + return java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.responseContentType, other.responseContentType) + && java.util.Objects.equals(this.protocolType, other.protocolType) + && java.util.Objects.equals(this.scriptDetails, other.scriptDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = + (result * PRIME) + + (this.responseContentType == null + ? 43 + : this.responseContentType.hashCode()); + result = (result * PRIME) + (this.protocolType == null ? 43 : this.protocolType.hashCode()); + result = + (result * PRIME) + + (this.scriptDetails == null ? 43 : this.scriptDetails.hashCode()); + return result; + } +} diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionCollectionMethods.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionCollectionMethods.java index adf1092bd0a..231aa5208ea 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionCollectionMethods.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionCollectionMethods.java @@ -10,6 +10,7 @@ public enum MetricExtensionCollectionMethods implements com.oracle.bmc.http.inte OsCommand("OS_COMMAND"), Sql("SQL"), Jmx("JMX"), + Http("HTTP"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionQueryProperties.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionQueryProperties.java index dde4776f455..5680ea5af42 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionQueryProperties.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionQueryProperties.java @@ -30,7 +30,10 @@ name = "SQL"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = JmxQueryProperties.class, - name = "JMX") + name = "JMX"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = HttpQueryProperties.class, + name = "HTTP") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionSortBy.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionSortBy.java index 2751eeac83f..74d6fa7d418 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionSortBy.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionSortBy.java @@ -9,6 +9,7 @@ public enum MetricExtensionSortBy implements com.oracle.bmc.http.internal.BmcEnum { Name("NAME"), TimeCreated("TIME_CREATED"), + EnabledOnResourceCount("ENABLED_ON_RESOURCE_COUNT"), ; private final String value; diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionUpdateQueryProperties.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionUpdateQueryProperties.java index ea625bb20d2..ba5d784cb4f 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionUpdateQueryProperties.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/MetricExtensionUpdateQueryProperties.java @@ -30,7 +30,10 @@ name = "JMX"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = OsCommandUpdateQueryProperties.class, - name = "OS_COMMAND") + name = "OS_COMMAND"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = HttpUpdateQueryProperties.class, + name = "HTTP") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/ScriptFileDetails.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/ScriptFileDetails.java index a676aac641c..be3491a5a4d 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/ScriptFileDetails.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/ScriptFileDetails.java @@ -6,7 +6,8 @@ /** * Script details applicable to any OS Command based Metric Extension which needs to run a script to - * collect data
+ * collect data. For removing it during update, set its "content" property to an empty string. In + * that case, "name" property value is ignored.
* 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-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/SqlOutParamDetails.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/SqlOutParamDetails.java index f634c9043e7..11f97d9faec 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/SqlOutParamDetails.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/SqlOutParamDetails.java @@ -23,21 +23,27 @@ public final class SqlOutParamDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"outParamPosition", "outParamType"}) - public SqlOutParamDetails(Integer outParamPosition, SqlOutParamTypes outParamType) { + @java.beans.ConstructorProperties({"outParamPosition", "outParamType", "outParamName"}) + public SqlOutParamDetails( + Integer outParamPosition, SqlOutParamTypes outParamType, String outParamName) { super(); this.outParamPosition = outParamPosition; this.outParamType = outParamType; + this.outParamName = outParamName; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Position of PL/SQL procedure OUT parameter */ + /** + * Position of PL/SQL procedure OUT parameter. The value of this property is ignored during + * update, if "outParamType" is set to NO_OUT_PARAM value. + */ @com.fasterxml.jackson.annotation.JsonProperty("outParamPosition") private Integer outParamPosition; /** - * Position of PL/SQL procedure OUT parameter + * Position of PL/SQL procedure OUT parameter. The value of this property is ignored during + * update, if "outParamType" is set to NO_OUT_PARAM value. * * @param outParamPosition the value to set * @return this builder @@ -47,12 +53,18 @@ public Builder outParamPosition(Integer outParamPosition) { this.__explicitlySet__.add("outParamPosition"); return this; } - /** SQL Type of PL/SQL procedure OUT parameter */ + /** + * SQL Type of PL/SQL procedure OUT parameter. During the update, to completely remove the + * out parameter, use the value NO_OUT_PARAM. In that case, the value of "outParamPosition" + * will be ignored. + */ @com.fasterxml.jackson.annotation.JsonProperty("outParamType") private SqlOutParamTypes outParamType; /** - * SQL Type of PL/SQL procedure OUT parameter + * SQL Type of PL/SQL procedure OUT parameter. During the update, to completely remove the + * out parameter, use the value NO_OUT_PARAM. In that case, the value of "outParamPosition" + * will be ignored. * * @param outParamType the value to set * @return this builder @@ -62,13 +74,29 @@ public Builder outParamType(SqlOutParamTypes outParamType) { this.__explicitlySet__.add("outParamType"); return this; } + /** Name of the Out Parameter */ + @com.fasterxml.jackson.annotation.JsonProperty("outParamName") + private String outParamName; + + /** + * Name of the Out Parameter + * + * @param outParamName the value to set + * @return this builder + */ + public Builder outParamName(String outParamName) { + this.outParamName = outParamName; + this.__explicitlySet__.add("outParamName"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public SqlOutParamDetails build() { SqlOutParamDetails model = - new SqlOutParamDetails(this.outParamPosition, this.outParamType); + new SqlOutParamDetails( + this.outParamPosition, this.outParamType, this.outParamName); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -83,6 +111,9 @@ public Builder copy(SqlOutParamDetails model) { if (model.wasPropertyExplicitlySet("outParamType")) { this.outParamType(model.getOutParamType()); } + if (model.wasPropertyExplicitlySet("outParamName")) { + this.outParamName(model.getOutParamName()); + } return this; } } @@ -96,12 +127,16 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Position of PL/SQL procedure OUT parameter */ + /** + * Position of PL/SQL procedure OUT parameter. The value of this property is ignored during + * update, if "outParamType" is set to NO_OUT_PARAM value. + */ @com.fasterxml.jackson.annotation.JsonProperty("outParamPosition") private final Integer outParamPosition; /** - * Position of PL/SQL procedure OUT parameter + * Position of PL/SQL procedure OUT parameter. The value of this property is ignored during + * update, if "outParamType" is set to NO_OUT_PARAM value. * * @return the value */ @@ -109,12 +144,18 @@ public Integer getOutParamPosition() { return outParamPosition; } - /** SQL Type of PL/SQL procedure OUT parameter */ + /** + * SQL Type of PL/SQL procedure OUT parameter. During the update, to completely remove the out + * parameter, use the value NO_OUT_PARAM. In that case, the value of "outParamPosition" will be + * ignored. + */ @com.fasterxml.jackson.annotation.JsonProperty("outParamType") private final SqlOutParamTypes outParamType; /** - * SQL Type of PL/SQL procedure OUT parameter + * SQL Type of PL/SQL procedure OUT parameter. During the update, to completely remove the out + * parameter, use the value NO_OUT_PARAM. In that case, the value of "outParamPosition" will be + * ignored. * * @return the value */ @@ -122,6 +163,19 @@ public SqlOutParamTypes getOutParamType() { return outParamType; } + /** Name of the Out Parameter */ + @com.fasterxml.jackson.annotation.JsonProperty("outParamName") + private final String outParamName; + + /** + * Name of the Out Parameter + * + * @return the value + */ + public String getOutParamName() { + return outParamName; + } + @Override public String toString() { return this.toString(true); @@ -139,6 +193,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("outParamPosition=").append(String.valueOf(this.outParamPosition)); sb.append(", outParamType=").append(String.valueOf(this.outParamType)); + sb.append(", outParamName=").append(String.valueOf(this.outParamName)); sb.append(")"); return sb.toString(); } @@ -155,6 +210,7 @@ public boolean equals(Object o) { SqlOutParamDetails other = (SqlOutParamDetails) o; return java.util.Objects.equals(this.outParamPosition, other.outParamPosition) && java.util.Objects.equals(this.outParamType, other.outParamType) + && java.util.Objects.equals(this.outParamName, other.outParamName) && super.equals(other); } @@ -166,6 +222,7 @@ public int hashCode() { (result * PRIME) + (this.outParamPosition == null ? 43 : this.outParamPosition.hashCode()); result = (result * PRIME) + (this.outParamType == null ? 43 : this.outParamType.hashCode()); + result = (result * PRIME) + (this.outParamName == null ? 43 : this.outParamName.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/SqlOutParamTypes.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/SqlOutParamTypes.java index f30087cf692..c69e15ad93d 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/SqlOutParamTypes.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/SqlOutParamTypes.java @@ -4,11 +4,15 @@ */ package com.oracle.bmc.stackmonitoring.model; -/** Possible out parameter types of SQL collection method */ +/** + * Possible out parameter types of SQL collection method. During the update, to completely remove + * the out parameter, use the value NO_OUT_PARAM + */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210330") public enum SqlOutParamTypes implements com.oracle.bmc.http.internal.BmcEnum { SqlCursor("SQL_CURSOR"), Array("ARRAY"), + NoOutParam("NO_OUT_PARAM"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/UpdateHttpScriptFileDetails.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/UpdateHttpScriptFileDetails.java new file mode 100644 index 00000000000..351bfebd7bc --- /dev/null +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/model/UpdateHttpScriptFileDetails.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.stackmonitoring.model; + +/** + * JavaScript file details which is used to convert http(s) response into metric data
+ * 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: 20210330") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateHttpScriptFileDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateHttpScriptFileDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "content"}) + public UpdateHttpScriptFileDetails(String name, String content) { + super(); + this.name = name; + this.content = content; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the script file */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the script file + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Content of the JavaScript file as base64 encoded string */ + @com.fasterxml.jackson.annotation.JsonProperty("content") + private String content; + + /** + * Content of the JavaScript file as base64 encoded string + * + * @param content the value to set + * @return this builder + */ + public Builder content(String content) { + this.content = content; + this.__explicitlySet__.add("content"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateHttpScriptFileDetails build() { + UpdateHttpScriptFileDetails model = + new UpdateHttpScriptFileDetails(this.name, this.content); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateHttpScriptFileDetails model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("content")) { + this.content(model.getContent()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the script file */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the script file + * + * @return the value + */ + public String getName() { + return name; + } + + /** Content of the JavaScript file as base64 encoded string */ + @com.fasterxml.jackson.annotation.JsonProperty("content") + private final String content; + + /** + * Content of the JavaScript file as base64 encoded string + * + * @return the value + */ + public String getContent() { + return content; + } + + @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("UpdateHttpScriptFileDetails("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", content=").append(String.valueOf(this.content)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateHttpScriptFileDetails)) { + return false; + } + + UpdateHttpScriptFileDetails other = (UpdateHttpScriptFileDetails) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.content, other.content) + && 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.content == null ? 43 : this.content.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/requests/ListMetricExtensionsRequest.java b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/requests/ListMetricExtensionsRequest.java index b6407091953..150a227eada 100644 --- a/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/requests/ListMetricExtensionsRequest.java +++ b/bmc-stackmonitoring/src/main/java/com/oracle/bmc/stackmonitoring/requests/ListMetricExtensionsRequest.java @@ -14,13 +14,6 @@ public class ListMetricExtensionsRequest extends com.oracle.bmc.requests.BmcRequest { - /** The ID of the compartment in which data is listed. */ - private String compartmentId; - - /** The ID of the compartment in which data is listed. */ - public String getCompartmentId() { - return compartmentId; - } /** * For list pagination. The maximum number of results per page, or items to return in a * paginated "List" call. For important details about how pagination works, see [List @@ -71,6 +64,13 @@ public com.oracle.bmc.stackmonitoring.model.MetricExtensionSortBy getSortBy() { public com.oracle.bmc.stackmonitoring.model.SortOrder getSortOrder() { return sortOrder; } + /** The ID of the compartment in which data is listed. */ + private String compartmentId; + + /** The ID of the compartment in which data is listed. */ + public String getCompartmentId() { + return compartmentId; + } /** A filter to return resources based on resource type. */ private String resourceType; @@ -112,6 +112,13 @@ public com.oracle.bmc.stackmonitoring.model.MetricExtensionLifeCycleStates getLi public String getEnabledOnResourceId() { return enabledOnResourceId; } + /** Identifier for the metric extension */ + private String metricExtensionId; + + /** Identifier for the metric extension */ + public String getMetricExtensionId() { + return metricExtensionId; + } /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -132,20 +139,6 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The ID of the compartment in which data is listed. */ - private String compartmentId = null; - - /** - * The ID of the compartment in which data is listed. - * - * @param compartmentId the value to set - * @return this builder instance - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - return this; - } - /** * For list pagination. The maximum number of results per page, or items to return in a * paginated "List" call. For important details about how pagination works, see [List @@ -218,6 +211,20 @@ public Builder sortOrder(com.oracle.bmc.stackmonitoring.model.SortOrder sortOrde return this; } + /** The ID of the compartment in which data is listed. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which data is listed. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + /** A filter to return resources based on resource type. */ private String resourceType = null; @@ -296,6 +303,20 @@ public Builder enabledOnResourceId(String enabledOnResourceId) { return this; } + /** Identifier for the metric extension */ + private String metricExtensionId = null; + + /** + * Identifier for the metric extension + * + * @param metricExtensionId the value to set + * @return this builder instance + */ + public Builder metricExtensionId(String metricExtensionId) { + this.metricExtensionId = metricExtensionId; + return this; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -344,16 +365,17 @@ public Builder retryConfiguration( * @return this builder instance */ public Builder copy(ListMetricExtensionsRequest o) { - compartmentId(o.getCompartmentId()); limit(o.getLimit()); page(o.getPage()); sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); + compartmentId(o.getCompartmentId()); resourceType(o.getResourceType()); name(o.getName()); status(o.getStatus()); lifecycleState(o.getLifecycleState()); enabledOnResourceId(o.getEnabledOnResourceId()); + metricExtensionId(o.getMetricExtensionId()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -389,20 +411,22 @@ public ListMetricExtensionsRequest build() { */ public ListMetricExtensionsRequest buildWithoutInvocationCallback() { ListMetricExtensionsRequest request = new ListMetricExtensionsRequest(); - request.compartmentId = compartmentId; request.limit = limit; request.page = page; request.sortBy = sortBy; request.sortOrder = sortOrder; + request.compartmentId = compartmentId; request.resourceType = resourceType; request.name = name; request.status = status; request.lifecycleState = lifecycleState; request.enabledOnResourceId = enabledOnResourceId; + request.metricExtensionId = metricExtensionId; request.opcRequestId = opcRequestId; return request; - // new ListMetricExtensionsRequest(compartmentId, limit, page, sortBy, sortOrder, - // resourceType, name, status, lifecycleState, enabledOnResourceId, opcRequestId); + // new ListMetricExtensionsRequest(limit, page, sortBy, sortOrder, compartmentId, + // resourceType, name, status, lifecycleState, enabledOnResourceId, metricExtensionId, + // opcRequestId); } } @@ -413,16 +437,17 @@ public ListMetricExtensionsRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .compartmentId(compartmentId) .limit(limit) .page(page) .sortBy(sortBy) .sortOrder(sortOrder) + .compartmentId(compartmentId) .resourceType(resourceType) .name(name) .status(status) .lifecycleState(lifecycleState) .enabledOnResourceId(enabledOnResourceId) + .metricExtensionId(metricExtensionId) .opcRequestId(opcRequestId); } @@ -440,16 +465,17 @@ 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(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",resourceType=").append(String.valueOf(this.resourceType)); sb.append(",name=").append(String.valueOf(this.name)); sb.append(",status=").append(String.valueOf(this.status)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",enabledOnResourceId=").append(String.valueOf(this.enabledOnResourceId)); + sb.append(",metricExtensionId=").append(String.valueOf(this.metricExtensionId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -466,16 +492,17 @@ public boolean equals(Object o) { ListMetricExtensionsRequest other = (ListMetricExtensionsRequest) o; return super.equals(o) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.resourceType, other.resourceType) && java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.status, other.status) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.enabledOnResourceId, other.enabledOnResourceId) + && java.util.Objects.equals(this.metricExtensionId, other.metricExtensionId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -483,13 +510,13 @@ public boolean equals(Object o) { 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.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.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.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); @@ -501,6 +528,9 @@ public int hashCode() { + (this.enabledOnResourceId == null ? 43 : this.enabledOnResourceId.hashCode()); + result = + (result * PRIME) + + (this.metricExtensionId == null ? 43 : this.metricExtensionId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-stackmonitoring/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-stackmonitoring/reflect-config.json b/bmc-stackmonitoring/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-stackmonitoring/reflect-config.json index c9b68508eff..b074b612cde 100644 --- a/bmc-stackmonitoring/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-stackmonitoring/reflect-config.json +++ b/bmc-stackmonitoring/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-stackmonitoring/reflect-config.json @@ -802,6 +802,60 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.stackmonitoring.model.HttpProtocolTypes", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.stackmonitoring.model.HttpQueryProperties", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.stackmonitoring.model.HttpQueryProperties$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.stackmonitoring.model.HttpResponseContentTypes", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.stackmonitoring.model.HttpScriptFileDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.stackmonitoring.model.HttpScriptFileDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.stackmonitoring.model.HttpUpdateQueryProperties", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.stackmonitoring.model.HttpUpdateQueryProperties$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.stackmonitoring.model.ImportOciTelemetryResourcesTaskDetails", @@ -1953,6 +2007,20 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.stackmonitoring.model.UpdateHttpScriptFileDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.stackmonitoring.model.UpdateHttpScriptFileDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.stackmonitoring.model.UpdateLicenseAutoAssignConfigDetails", diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index c3dc2fcdfa2..a809f0a25c8 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 4d41133a1f2..7287c70a37e 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index a27dbf6cab8..b36e2c3088e 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 586b10f439b..375648d9c9d 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index dff5a7074af..db85cd6a253 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 099de6e730a..b47d6bd3a72 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.55.0 + 3.55.1 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 3964418b45a..1bd233abe8c 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index 97983fa8bde..c021485aaba 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 6de2550c5f3..beb691a8468 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 5b8a64a94b1..5e8387ee1ab 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index bf6f939ace2..93c46d31c76 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 160c257c5d0..fe8b19b5698 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 057f295cbda..9fa719fde82 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 166453545c1..49cdaa40e25 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index 5e38ef27321..96f73002ca4 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.55.0 + 3.55.1 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 2ae798fe522..9b99fb10f77 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.55.0 + 3.55.1 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure