diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a84d94f54b..b588770eed4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,33 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.95.0 - 2026-08-25 +### Added +- Support for blue/green deployments in the MySQL HeatWave service +- Support for capacity reservations, capacity reservation configurations, and associating reservations when creating instances in the Big Data service +- Support for Zero Trust Packet Routing (ZPR) security attributes on recovery subnets in the Autonomous Recovery service +- Support for network firewall as a Virtual Test Access Points (VTAP) source in the Networking service +- Support for NL2SQL model selection, annotation, background mode and delta enrichment in the Generative AI service +- Support for NL2SQL model selection, annotation, background mode and delta enrichment in the Generative AI Data service +- Support for B200, B300, L40S, and MI300X dedicated AI cluster unit shapes in the Generative AI service   + +### Breaking Changes +- Class `com.oracle.bmc.generativeaidata.CancelEnrichmentJob` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.CancelEnrichmentJobClient$Builder` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GenerateEnrichmentJob` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GenerateEnrichmentJobClient$Builder` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GenerateSqlFromNlJob` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GenerateSqlFromNlJobClient$Builder` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GetEnrichmentJob` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GetEnrichmentJobClient$Builder` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GetEnrichmentJobWaiters` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.ListEnrichmentJobs` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.ListEnrichmentJobsClient$Builder` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.ListEnrichmentJobsPaginators` has been removed from the Generative AI Data service + +### Changed +- Updated `jackson-core` and `jackson-databind` to version `2.21.5` to address CVE-2026-54515 + ## 3.94.2 - 2026-08-18 ### Added - Support for creating databases from another database with additional input fields and source encryption-key location details in the Database service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 649bf55b855..80a2464dbe8 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-addons/bmc-adk/pom.xml b/bmc-addons/bmc-adk/pom.xml index a2c733cc247..ff81f0eb0a4 100644 --- a/bmc-addons/bmc-adk/pom.xml +++ b/bmc-addons/bmc-adk/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.94.2 + 3.95.0 oci-java-sdk-addons-adk diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index b2dbac932b1..b08ab1ab275 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.94.2 + 3.95.0 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.2 + 3.95.0 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 0d2bf1f0968..1197d450b55 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.94.2 + 3.95.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.94.2 + 3.95.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.2 + 3.95.0 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index 548824a00b0..0597cc268dc 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.94.2 + 3.95.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.94.2 + 3.95.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.94.2 + 3.95.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index decaf06a679..aa7ac82c6c8 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.94.2 + 3.95.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 15ea87730d1..74d8389f382 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.94.2 + 3.95.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.94.2 + 3.95.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.94.2 + 3.95.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.94.2 + 3.95.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index aa2eff84b6d..485c07425b6 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.94.2 + 3.95.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml index 35bbb72790d..c30b6255343 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.94.2 + 3.95.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.94.2 + 3.95.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.94.2 + 3.95.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 0bfcf4fc05e..a7f240a50ef 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.94.2 + 3.95.0 ../pom.xml @@ -61,7 +61,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 54b056ef385..c2e1ebc2046 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.94.2 + 3.95.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.94.2 + 3.95.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.94.2 + 3.95.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 9535b3af5d1..7ceda43e912 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.94.2 + 3.95.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.94.2 + 3.95.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.2 + 3.95.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 354080c7cf3..b6054681862 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index eac508dd34e..b49309d2053 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 42e40fa5338..96f398f20df 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index b8b93b04d49..e52ffb55b4b 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 72a2633a8a4..0f167e49614 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index e36c06adf06..4016d2b2e0f 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 7bb4b27f2cb..15249da796d 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 8a5a12e6ea8..a0967b6190e 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 1dad94088ca..44afcaaeb10 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index ae07a4eda49..6d4598bb0b6 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 524603d4270..50b290b9d43 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index 66e5da247d0..273fb6eee0a 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 6c9bbb6c97a..8ec4887921b 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index bd91700d49e..de9fe3e787b 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 34701c6088a..c9c45ab9964 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 0f98d9abd82..f956f1ff784 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index b417037f59f..ec804893a30 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index a3715b8a9b3..9a7ee54aa48 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 506ed2d7ff1..dbe30ca25e0 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 44805a87db1..6888dd161b5 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 724a944dbf5..4d481e1af76 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index 6a61efdf246..8fdac6cd69a 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 591581a2727..79eb1747865 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file 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 0921d336b25..608e1de330b 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 @@ -66,6 +66,23 @@ public interface Bds extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Activates the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * ActivateBdsCapacityReservationConfiguration API. + */ + ActivateBdsCapacityReservationConfigurationResponse activateBdsCapacityReservationConfiguration( + ActivateBdsCapacityReservationConfigurationRequest request); + /** * Activate specified metastore configuration. * @@ -286,6 +303,23 @@ BdsInstanceResetPasswordResponse bdsInstanceResetPassword( */ CertificateServiceInfoResponse certificateServiceInfo(CertificateServiceInfoRequest request); + /** + * Moves a BDS capacity reservation into a different 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 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 + * ChangeBdsCapacityReservationCompartment API. + */ + ChangeBdsCapacityReservationCompartmentResponse changeBdsCapacityReservationCompartment( + ChangeBdsCapacityReservationCompartmentRequest request); + /** * Moves a Big Data Service cluster into a different compartment. * @@ -353,6 +387,40 @@ ChangeBdsInstanceCompartmentResponse changeBdsInstanceCompartment( */ CreateBdsCapacityReportResponse createBdsCapacityReport(CreateBdsCapacityReportRequest request); + /** + * Creates a reusable BDS capacity reservation 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 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 + * CreateBdsCapacityReservation API. + */ + CreateBdsCapacityReservationResponse createBdsCapacityReservation( + CreateBdsCapacityReservationRequest request); + + /** + * Creates a configuration between the specified BDS cluster and a BDS capacity reservation. + * + * @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 + * CreateBdsCapacityReservationConfiguration API. + */ + CreateBdsCapacityReservationConfigurationResponse createBdsCapacityReservationConfiguration( + CreateBdsCapacityReservationConfigurationRequest request); + /** * Create a BDS certificate configuration for the cluster. * @@ -471,6 +539,24 @@ CreateNodeReplaceConfigurationResponse createNodeReplaceConfiguration( CreateResourcePrincipalConfigurationResponse createResourcePrincipalConfiguration( CreateResourcePrincipalConfigurationRequest request); + /** + * Deactivates the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * DeactivateBdsCapacityReservationConfiguration API. + */ + DeactivateBdsCapacityReservationConfigurationResponse + deactivateBdsCapacityReservationConfiguration( + DeactivateBdsCapacityReservationConfigurationRequest request); + /** * Deactivate the IAM user sync configuration. * @@ -521,6 +607,40 @@ DeactivateUpstConfigurationResponse deactivateUpstConfiguration( */ DeleteBdsApiKeyResponse deleteBdsApiKey(DeleteBdsApiKeyRequest request); + /** + * Deletes the BDS capacity reservation identified by the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * DeleteBdsCapacityReservation API. + */ + DeleteBdsCapacityReservationResponse deleteBdsCapacityReservation( + DeleteBdsCapacityReservationRequest request); + + /** + * Deletes the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * DeleteBdsCapacityReservationConfiguration API. + */ + DeleteBdsCapacityReservationConfigurationResponse deleteBdsCapacityReservationConfiguration( + DeleteBdsCapacityReservationConfigurationRequest request); + /** * Delete the BDS certificate configuration for the given ID. * @@ -736,6 +856,41 @@ GetAutoScalingConfigurationResponse getAutoScalingConfiguration( */ GetBdsApiKeyResponse getBdsApiKey(GetBdsApiKeyRequest request); + /** + * Returns information about the BDS capacity reservation identified by the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * GetBdsCapacityReservation API. + */ + GetBdsCapacityReservationResponse getBdsCapacityReservation( + GetBdsCapacityReservationRequest request); + + /** + * Returns information about the BDS capacity reservation configuration identified by the given + * ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * GetBdsCapacityReservationConfiguration API. + */ + GetBdsCapacityReservationConfigurationResponse getBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request); + /** * Returns details of the BdsCertificateConfiguration identified by the given ID. * @@ -993,6 +1148,59 @@ ListAutoScalingConfigurationsResponse listAutoScalingConfigurations( */ ListBdsApiKeysResponse listBdsApiKeys(ListBdsApiKeysRequest request); + /** + * Returns a list of BDS capacity reservation configurations associated with the specified BDS + * capacity reservation. + * + * @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 + * ListBdsCapacityReservationAssociatedConfigurations API. + */ + ListBdsCapacityReservationAssociatedConfigurationsResponse + listBdsCapacityReservationAssociatedConfigurations( + ListBdsCapacityReservationAssociatedConfigurationsRequest request); + + /** + * Returns a list of BDS capacity reservation configurations for the specified BDS 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 + * ListBdsCapacityReservationConfigurations API. + */ + ListBdsCapacityReservationConfigurationsResponse listBdsCapacityReservationConfigurations( + ListBdsCapacityReservationConfigurationsRequest request); + + /** + * Returns a list of BDS capacity reservations in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * ListBdsCapacityReservations API. + */ + ListBdsCapacityReservationsResponse listBdsCapacityReservations( + ListBdsCapacityReservationsRequest request); + /** * Returns a list of BDS certificate configurations associated with this Big Data Service * cluster. @@ -1563,6 +1771,40 @@ TestBdsObjectStorageConnectionResponse testBdsObjectStorageConnection( UpdateAutoScalingConfigurationResponse updateAutoScalingConfiguration( UpdateAutoScalingConfigurationRequest request); + /** + * Updates the BDS capacity reservation identified by the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * UpdateBdsCapacityReservation API. + */ + UpdateBdsCapacityReservationResponse updateBdsCapacityReservation( + UpdateBdsCapacityReservationRequest request); + + /** + * Updates the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation 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 + * UpdateBdsCapacityReservationConfiguration API. + */ + UpdateBdsCapacityReservationConfigurationResponse updateBdsCapacityReservationConfiguration( + UpdateBdsCapacityReservationConfigurationRequest request); + /** * Updates the Big Data Service cluster identified by the given ID. * 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 e002ce2679f..e3d861f5853 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 @@ -63,6 +63,24 @@ public interface BdsAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Activates the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + activateBdsCapacityReservationConfiguration( + ActivateBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + ActivateBdsCapacityReservationConfigurationRequest, + ActivateBdsCapacityReservationConfigurationResponse> + handler); + /** * Activate specified metastore configuration. * @@ -277,6 +295,24 @@ java.util.concurrent.Future certificateServiceIn CertificateServiceInfoRequest, CertificateServiceInfoResponse> handler); + /** + * Moves a BDS capacity reservation into a different 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 + changeBdsCapacityReservationCompartment( + ChangeBdsCapacityReservationCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeBdsCapacityReservationCompartmentRequest, + ChangeBdsCapacityReservationCompartmentResponse> + handler); + /** * Moves a Big Data Service cluster into a different compartment. * @@ -342,6 +378,41 @@ java.util.concurrent.Future createBdsCapacityRe CreateBdsCapacityReportRequest, CreateBdsCapacityReportResponse> handler); + /** + * Creates a reusable BDS capacity reservation 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 createBdsCapacityReservation( + CreateBdsCapacityReservationRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationRequest, + CreateBdsCapacityReservationResponse> + handler); + + /** + * Creates a configuration between the specified BDS cluster and a BDS capacity reservation. + * + * @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 + createBdsCapacityReservationConfiguration( + CreateBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationConfigurationRequest, + CreateBdsCapacityReservationConfigurationResponse> + handler); + /** * Create a BDS certificate configuration for the cluster. * @@ -464,6 +535,24 @@ java.util.concurrent.Future createIdentityC CreateResourcePrincipalConfigurationResponse> handler); + /** + * Deactivates the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + deactivateBdsCapacityReservationConfiguration( + DeactivateBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeactivateBdsCapacityReservationConfigurationRequest, + DeactivateBdsCapacityReservationConfigurationResponse> + handler); + /** * Deactivate the IAM user sync configuration. * @@ -513,6 +602,41 @@ java.util.concurrent.Future deleteBdsApiKey( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Deletes the BDS capacity reservation identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteBdsCapacityReservation( + DeleteBdsCapacityReservationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationRequest, + DeleteBdsCapacityReservationResponse> + handler); + + /** + * Deletes the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + deleteBdsCapacityReservationConfiguration( + DeleteBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationConfigurationRequest, + DeleteBdsCapacityReservationConfigurationResponse> + handler); + /** * Delete the BDS certificate configuration for the given ID. * @@ -729,6 +853,41 @@ java.util.concurrent.Future getBdsApiKey( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Returns information about the BDS capacity reservation identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getBdsCapacityReservation( + GetBdsCapacityReservationRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + handler); + + /** + * Returns information about the BDS capacity reservation configuration identified by the given + * ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + getBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + handler); + /** * Returns details of the BdsCertificateConfiguration identified by the given ID. * @@ -986,6 +1145,59 @@ java.util.concurrent.Future listBdsApiKeys( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Returns a list of BDS capacity reservation configurations associated with the specified BDS + * capacity reservation. + * + * @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 + listBdsCapacityReservationAssociatedConfigurations( + ListBdsCapacityReservationAssociatedConfigurationsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse> + handler); + + /** + * Returns a list of BDS capacity reservation configurations for the specified BDS 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 + listBdsCapacityReservationConfigurations( + ListBdsCapacityReservationConfigurationsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse> + handler); + + /** + * Returns a list of BDS capacity reservations in a compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listBdsCapacityReservations( + ListBdsCapacityReservationsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationsRequest, ListBdsCapacityReservationsResponse> + handler); + /** * Returns a list of BDS certificate configurations associated with this Big Data Service * cluster. @@ -1556,6 +1768,41 @@ java.util.concurrent.Future stopBdsInstance( UpdateAutoScalingConfigurationResponse> handler); + /** + * Updates the BDS capacity reservation identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future updateBdsCapacityReservation( + UpdateBdsCapacityReservationRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationRequest, + UpdateBdsCapacityReservationResponse> + handler); + + /** + * Updates the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + updateBdsCapacityReservationConfiguration( + UpdateBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationConfigurationRequest, + UpdateBdsCapacityReservationConfigurationResponse> + handler); + /** * Updates the Big Data Service cluster identified by the given ID. * 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 32a7c64456d..07435613f99 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 @@ -96,6 +96,52 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future + activateBdsCapacityReservationConfiguration( + ActivateBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ActivateBdsCapacityReservationConfigurationRequest, + ActivateBdsCapacityReservationConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + + return clientCall(request, ActivateBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "activateBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "ActivateBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ActivateBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendPathParam(request.getBdsCapacityReservationConfigurationId()) + .appendPathParam("actions") + .appendPathParam("activate") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.class, + ActivateBdsCapacityReservationConfigurationResponse.Builder + ::bdsCapacityReservationConfiguration) + .handleResponseHeaderString( + "opc-request-id", + ActivateBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", ActivateBdsCapacityReservationConfigurationResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future activateBdsMetastoreConfiguration( @@ -595,6 +641,46 @@ public java.util.concurrent.Future certificateSe .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeBdsCapacityReservationCompartment( + ChangeBdsCapacityReservationCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeBdsCapacityReservationCompartmentRequest, + ChangeBdsCapacityReservationCompartmentResponse> + handler) { + + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + Objects.requireNonNull( + request.getChangeBdsCapacityReservationCompartmentDetails(), + "changeBdsCapacityReservationCompartmentDetails is required"); + + return clientCall(request, ChangeBdsCapacityReservationCompartmentResponse::builder) + .logger(LOG, "changeBdsCapacityReservationCompartment") + .serviceDetails( + "Bds", + "ChangeBdsCapacityReservationCompartment", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/ChangeBdsCapacityReservationCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeBdsCapacityReservationCompartmentRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendPathParam(request.getBdsCapacityReservationId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .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", + ChangeBdsCapacityReservationCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeBdsInstanceCompartment( @@ -736,6 +822,102 @@ public java.util.concurrent.Future createBdsCap .callAsync(handler); } + @Override + public java.util.concurrent.Future + createBdsCapacityReservation( + CreateBdsCapacityReservationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationRequest, + CreateBdsCapacityReservationResponse> + handler) { + Objects.requireNonNull( + request.getCreateBdsCapacityReservationDetails(), + "createBdsCapacityReservationDetails is required"); + + return clientCall(request, CreateBdsCapacityReservationResponse::builder) + .logger(LOG, "createBdsCapacityReservation") + .serviceDetails( + "Bds", + "CreateBdsCapacityReservation", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/CreateBdsCapacityReservation") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateBdsCapacityReservationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservation.class, + CreateBdsCapacityReservationResponse.Builder::bdsCapacityReservation) + .handleResponseHeaderString( + "opc-request-id", + CreateBdsCapacityReservationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateBdsCapacityReservationResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "location", CreateBdsCapacityReservationResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateBdsCapacityReservationResponse.Builder::contentLocation) + .handleResponseHeaderString( + "etag", CreateBdsCapacityReservationResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + createBdsCapacityReservationConfiguration( + CreateBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationConfigurationRequest, + CreateBdsCapacityReservationConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull( + request.getCreateBdsCapacityReservationConfigurationDetails(), + "createBdsCapacityReservationConfigurationDetails is required"); + + return clientCall(request, CreateBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "createBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "CreateBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/CreateBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.class, + CreateBdsCapacityReservationConfigurationResponse.Builder + ::bdsCapacityReservationConfiguration) + .handleResponseHeaderString( + "opc-request-id", + CreateBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateBdsCapacityReservationConfigurationResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "location", + CreateBdsCapacityReservationConfigurationResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateBdsCapacityReservationConfigurationResponse.Builder::contentLocation) + .handleResponseHeaderString( + "etag", CreateBdsCapacityReservationConfigurationResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createBdsCertificateConfiguration( @@ -999,6 +1181,52 @@ public java.util.concurrent.Future createBdsInstance( .callAsync(handler); } + @Override + public java.util.concurrent.Future + deactivateBdsCapacityReservationConfiguration( + DeactivateBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeactivateBdsCapacityReservationConfigurationRequest, + DeactivateBdsCapacityReservationConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + + return clientCall(request, DeactivateBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "deactivateBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "DeactivateBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/DeactivateBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DeactivateBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendPathParam(request.getBdsCapacityReservationConfigurationId()) + .appendPathParam("actions") + .appendPathParam("deactivate") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.class, + DeactivateBdsCapacityReservationConfigurationResponse.Builder + ::bdsCapacityReservationConfiguration) + .handleResponseHeaderString( + "opc-request-id", + DeactivateBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", DeactivateBdsCapacityReservationConfigurationResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deactivateIamUserSyncConfiguration( @@ -1124,6 +1352,76 @@ public java.util.concurrent.Future deleteBdsApiKey( .callAsync(handler); } + @Override + public java.util.concurrent.Future + deleteBdsCapacityReservation( + DeleteBdsCapacityReservationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationRequest, + DeleteBdsCapacityReservationResponse> + handler) { + + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + + return clientCall(request, DeleteBdsCapacityReservationResponse::builder) + .logger(LOG, "deleteBdsCapacityReservation") + .serviceDetails( + "Bds", + "DeleteBdsCapacityReservation", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/DeleteBdsCapacityReservation") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteBdsCapacityReservationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendPathParam(request.getBdsCapacityReservationId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteBdsCapacityReservationResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + deleteBdsCapacityReservationConfiguration( + DeleteBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationConfigurationRequest, + DeleteBdsCapacityReservationConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + + return clientCall(request, DeleteBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "deleteBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "DeleteBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/DeleteBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendPathParam(request.getBdsCapacityReservationConfigurationId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteBdsCertificateConfiguration( @@ -1614,6 +1912,81 @@ public java.util.concurrent.Future getBdsApiKey( .callAsync(handler); } + @Override + public java.util.concurrent.Future getBdsCapacityReservation( + GetBdsCapacityReservationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + handler) { + + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + + return clientCall(request, GetBdsCapacityReservationResponse::builder) + .logger(LOG, "getBdsCapacityReservation") + .serviceDetails( + "Bds", + "GetBdsCapacityReservation", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/GetBdsCapacityReservation") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetBdsCapacityReservationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendPathParam(request.getBdsCapacityReservationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservation.class, + GetBdsCapacityReservationResponse.Builder::bdsCapacityReservation) + .handleResponseHeaderString( + "opc-request-id", GetBdsCapacityReservationResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetBdsCapacityReservationResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + getBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + + return clientCall(request, GetBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "getBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "GetBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/GetBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendPathParam(request.getBdsCapacityReservationConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.class, + GetBdsCapacityReservationConfigurationResponse.Builder + ::bdsCapacityReservationConfiguration) + .handleResponseHeaderString( + "opc-request-id", + GetBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetBdsCapacityReservationConfigurationResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getBdsCertificateConfiguration( @@ -2219,6 +2592,144 @@ public java.util.concurrent.Future listBdsApiKeys( .callAsync(handler); } + @Override + public java.util.concurrent.Future + listBdsCapacityReservationAssociatedConfigurations( + ListBdsCapacityReservationAssociatedConfigurationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse> + handler) { + + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall( + request, + ListBdsCapacityReservationAssociatedConfigurationsResponse::builder) + .logger(LOG, "listBdsCapacityReservationAssociatedConfigurations") + .serviceDetails( + "Bds", + "ListBdsCapacityReservationAssociatedConfigurations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ListBdsCapacityReservationAssociatedConfigurations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListBdsCapacityReservationAssociatedConfigurationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendPathParam(request.getBdsCapacityReservationId()) + .appendPathParam("associatedConfigurations") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model + .BdsCapacityReservationAssociatedConfigurationCollection.class, + ListBdsCapacityReservationAssociatedConfigurationsResponse.Builder + ::bdsCapacityReservationAssociatedConfigurationCollection) + .handleResponseHeaderString( + "opc-request-id", + ListBdsCapacityReservationAssociatedConfigurationsResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListBdsCapacityReservationAssociatedConfigurationsResponse.Builder + ::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listBdsCapacityReservationConfigurations( + ListBdsCapacityReservationConfigurationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + return clientCall(request, ListBdsCapacityReservationConfigurationsResponse::builder) + .logger(LOG, "listBdsCapacityReservationConfigurations") + .serviceDetails( + "Bds", + "ListBdsCapacityReservationConfigurations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ListBdsCapacityReservationConfigurations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListBdsCapacityReservationConfigurationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + .class, + ListBdsCapacityReservationConfigurationsResponse.Builder + ::bdsCapacityReservationConfigurationCollection) + .handleResponseHeaderString( + "opc-request-id", + ListBdsCapacityReservationConfigurationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListBdsCapacityReservationConfigurationsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listBdsCapacityReservations( + ListBdsCapacityReservationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationsRequest, + ListBdsCapacityReservationsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListBdsCapacityReservationsResponse::builder) + .logger(LOG, "listBdsCapacityReservations") + .serviceDetails( + "Bds", + "ListBdsCapacityReservations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/ListBdsCapacityReservations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListBdsCapacityReservationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationCollection.class, + ListBdsCapacityReservationsResponse.Builder + ::bdsCapacityReservationCollection) + .handleResponseHeaderString( + "opc-request-id", ListBdsCapacityReservationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListBdsCapacityReservationsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listBdsCertificateConfigurations( @@ -3610,6 +4121,97 @@ public java.util.concurrent.Future stopBdsInstance( .callAsync(handler); } + @Override + public java.util.concurrent.Future + updateBdsCapacityReservation( + UpdateBdsCapacityReservationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationRequest, + UpdateBdsCapacityReservationResponse> + handler) { + + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + Objects.requireNonNull( + request.getUpdateBdsCapacityReservationDetails(), + "updateBdsCapacityReservationDetails is required"); + + return clientCall(request, UpdateBdsCapacityReservationResponse::builder) + .logger(LOG, "updateBdsCapacityReservation") + .serviceDetails( + "Bds", + "UpdateBdsCapacityReservation", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/UpdateBdsCapacityReservation") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateBdsCapacityReservationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendPathParam(request.getBdsCapacityReservationId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservation.class, + UpdateBdsCapacityReservationResponse.Builder::bdsCapacityReservation) + .handleResponseHeaderString( + "opc-request-id", + UpdateBdsCapacityReservationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", UpdateBdsCapacityReservationResponse.Builder::etag) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + updateBdsCapacityReservationConfiguration( + UpdateBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationConfigurationRequest, + UpdateBdsCapacityReservationConfigurationResponse> + handler) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + Objects.requireNonNull( + request.getUpdateBdsCapacityReservationConfigurationDetails(), + "updateBdsCapacityReservationConfigurationDetails is required"); + + return clientCall(request, UpdateBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "updateBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "UpdateBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/UpdateBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendPathParam(request.getBdsCapacityReservationConfigurationId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.class, + UpdateBdsCapacityReservationConfigurationResponse.Builder + ::bdsCapacityReservationConfiguration) + .handleResponseHeaderString( + "opc-request-id", + UpdateBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", UpdateBdsCapacityReservationConfigurationResponse.Builder::etag) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateBdsInstance( UpdateBdsInstanceRequest request, 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 6be3a448d22..48666c74efa 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 @@ -122,6 +122,48 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public ActivateBdsCapacityReservationConfigurationResponse + activateBdsCapacityReservationConfiguration( + ActivateBdsCapacityReservationConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + + return clientCall(request, ActivateBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "activateBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "ActivateBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ActivateBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ActivateBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendPathParam(request.getBdsCapacityReservationConfigurationId()) + .appendPathParam("actions") + .appendPathParam("activate") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.class, + ActivateBdsCapacityReservationConfigurationResponse.Builder + ::bdsCapacityReservationConfiguration) + .handleResponseHeaderString( + "opc-request-id", + ActivateBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", ActivateBdsCapacityReservationConfigurationResponse.Builder::etag) + .callSync(); + } + @Override public ActivateBdsMetastoreConfigurationResponse activateBdsMetastoreConfiguration( ActivateBdsMetastoreConfigurationRequest request) { @@ -572,6 +614,41 @@ public CertificateServiceInfoResponse certificateServiceInfo( .callSync(); } + @Override + public ChangeBdsCapacityReservationCompartmentResponse changeBdsCapacityReservationCompartment( + ChangeBdsCapacityReservationCompartmentRequest request) { + + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + Objects.requireNonNull( + request.getChangeBdsCapacityReservationCompartmentDetails(), + "changeBdsCapacityReservationCompartmentDetails is required"); + + return clientCall(request, ChangeBdsCapacityReservationCompartmentResponse::builder) + .logger(LOG, "changeBdsCapacityReservationCompartment") + .serviceDetails( + "Bds", + "ChangeBdsCapacityReservationCompartment", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/ChangeBdsCapacityReservationCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeBdsCapacityReservationCompartmentRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendPathParam(request.getBdsCapacityReservationId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .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", + ChangeBdsCapacityReservationCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeBdsInstanceCompartmentResponse changeBdsInstanceCompartment( ChangeBdsInstanceCompartmentRequest request) { @@ -698,6 +775,93 @@ public CreateBdsCapacityReportResponse createBdsCapacityReport( .callSync(); } + @Override + public CreateBdsCapacityReservationResponse createBdsCapacityReservation( + CreateBdsCapacityReservationRequest request) { + Objects.requireNonNull( + request.getCreateBdsCapacityReservationDetails(), + "createBdsCapacityReservationDetails is required"); + + return clientCall(request, CreateBdsCapacityReservationResponse::builder) + .logger(LOG, "createBdsCapacityReservation") + .serviceDetails( + "Bds", + "CreateBdsCapacityReservation", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/CreateBdsCapacityReservation") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateBdsCapacityReservationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservation.class, + CreateBdsCapacityReservationResponse.Builder::bdsCapacityReservation) + .handleResponseHeaderString( + "opc-request-id", + CreateBdsCapacityReservationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateBdsCapacityReservationResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "location", CreateBdsCapacityReservationResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateBdsCapacityReservationResponse.Builder::contentLocation) + .handleResponseHeaderString( + "etag", CreateBdsCapacityReservationResponse.Builder::etag) + .callSync(); + } + + @Override + public CreateBdsCapacityReservationConfigurationResponse + createBdsCapacityReservationConfiguration( + CreateBdsCapacityReservationConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Objects.requireNonNull( + request.getCreateBdsCapacityReservationConfigurationDetails(), + "createBdsCapacityReservationConfigurationDetails is required"); + + return clientCall(request, CreateBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "createBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "CreateBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/CreateBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.class, + CreateBdsCapacityReservationConfigurationResponse.Builder + ::bdsCapacityReservationConfiguration) + .handleResponseHeaderString( + "opc-request-id", + CreateBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateBdsCapacityReservationConfigurationResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "location", + CreateBdsCapacityReservationConfigurationResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateBdsCapacityReservationConfigurationResponse.Builder::contentLocation) + .handleResponseHeaderString( + "etag", CreateBdsCapacityReservationConfigurationResponse.Builder::etag) + .callSync(); + } + @Override public CreateBdsCertificateConfigurationResponse createBdsCertificateConfiguration( CreateBdsCertificateConfigurationRequest request) { @@ -927,6 +1091,48 @@ public CreateResourcePrincipalConfigurationResponse createResourcePrincipalConfi .callSync(); } + @Override + public DeactivateBdsCapacityReservationConfigurationResponse + deactivateBdsCapacityReservationConfiguration( + DeactivateBdsCapacityReservationConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + + return clientCall(request, DeactivateBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "deactivateBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "DeactivateBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/DeactivateBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DeactivateBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendPathParam(request.getBdsCapacityReservationConfigurationId()) + .appendPathParam("actions") + .appendPathParam("deactivate") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.class, + DeactivateBdsCapacityReservationConfigurationResponse.Builder + ::bdsCapacityReservationConfiguration) + .handleResponseHeaderString( + "opc-request-id", + DeactivateBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", DeactivateBdsCapacityReservationConfigurationResponse.Builder::etag) + .callSync(); + } + @Override public DeactivateIamUserSyncConfigurationResponse deactivateIamUserSyncConfiguration( DeactivateIamUserSyncConfigurationRequest request) { @@ -1038,6 +1244,67 @@ public DeleteBdsApiKeyResponse deleteBdsApiKey(DeleteBdsApiKeyRequest request) { .callSync(); } + @Override + public DeleteBdsCapacityReservationResponse deleteBdsCapacityReservation( + DeleteBdsCapacityReservationRequest request) { + + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + + return clientCall(request, DeleteBdsCapacityReservationResponse::builder) + .logger(LOG, "deleteBdsCapacityReservation") + .serviceDetails( + "Bds", + "DeleteBdsCapacityReservation", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/DeleteBdsCapacityReservation") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteBdsCapacityReservationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendPathParam(request.getBdsCapacityReservationId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteBdsCapacityReservationResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public DeleteBdsCapacityReservationConfigurationResponse + deleteBdsCapacityReservationConfiguration( + DeleteBdsCapacityReservationConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + + return clientCall(request, DeleteBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "deleteBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "DeleteBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/DeleteBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendPathParam(request.getBdsCapacityReservationConfigurationId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + DeleteBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteBdsCertificateConfigurationResponse deleteBdsCertificateConfiguration( DeleteBdsCertificateConfigurationRequest request) { @@ -1473,6 +1740,73 @@ public GetBdsApiKeyResponse getBdsApiKey(GetBdsApiKeyRequest request) { .callSync(); } + @Override + public GetBdsCapacityReservationResponse getBdsCapacityReservation( + GetBdsCapacityReservationRequest request) { + + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + + return clientCall(request, GetBdsCapacityReservationResponse::builder) + .logger(LOG, "getBdsCapacityReservation") + .serviceDetails( + "Bds", + "GetBdsCapacityReservation", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/GetBdsCapacityReservation") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetBdsCapacityReservationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendPathParam(request.getBdsCapacityReservationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservation.class, + GetBdsCapacityReservationResponse.Builder::bdsCapacityReservation) + .handleResponseHeaderString( + "opc-request-id", GetBdsCapacityReservationResponse.Builder::opcRequestId) + .handleResponseHeaderString("etag", GetBdsCapacityReservationResponse.Builder::etag) + .callSync(); + } + + @Override + public GetBdsCapacityReservationConfigurationResponse getBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + + return clientCall(request, GetBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "getBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "GetBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/GetBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendPathParam(request.getBdsCapacityReservationConfigurationId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.class, + GetBdsCapacityReservationConfigurationResponse.Builder + ::bdsCapacityReservationConfiguration) + .handleResponseHeaderString( + "opc-request-id", + GetBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", GetBdsCapacityReservationConfigurationResponse.Builder::etag) + .callSync(); + } + @Override public GetBdsCertificateConfigurationResponse getBdsCertificateConfiguration( GetBdsCertificateConfigurationRequest request) { @@ -2012,6 +2346,131 @@ public ListBdsApiKeysResponse listBdsApiKeys(ListBdsApiKeysRequest request) { .callSync(); } + @Override + public ListBdsCapacityReservationAssociatedConfigurationsResponse + listBdsCapacityReservationAssociatedConfigurations( + ListBdsCapacityReservationAssociatedConfigurationsRequest request) { + + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall( + request, + ListBdsCapacityReservationAssociatedConfigurationsResponse::builder) + .logger(LOG, "listBdsCapacityReservationAssociatedConfigurations") + .serviceDetails( + "Bds", + "ListBdsCapacityReservationAssociatedConfigurations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ListBdsCapacityReservationAssociatedConfigurations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListBdsCapacityReservationAssociatedConfigurationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendPathParam(request.getBdsCapacityReservationId()) + .appendPathParam("associatedConfigurations") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model + .BdsCapacityReservationAssociatedConfigurationCollection.class, + ListBdsCapacityReservationAssociatedConfigurationsResponse.Builder + ::bdsCapacityReservationAssociatedConfigurationCollection) + .handleResponseHeaderString( + "opc-request-id", + ListBdsCapacityReservationAssociatedConfigurationsResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListBdsCapacityReservationAssociatedConfigurationsResponse.Builder + ::opcNextPage) + .callSync(); + } + + @Override + public ListBdsCapacityReservationConfigurationsResponse + listBdsCapacityReservationConfigurations( + ListBdsCapacityReservationConfigurationsRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + return clientCall(request, ListBdsCapacityReservationConfigurationsResponse::builder) + .logger(LOG, "listBdsCapacityReservationConfigurations") + .serviceDetails( + "Bds", + "ListBdsCapacityReservationConfigurations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ListBdsCapacityReservationConfigurations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListBdsCapacityReservationConfigurationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + .class, + ListBdsCapacityReservationConfigurationsResponse.Builder + ::bdsCapacityReservationConfigurationCollection) + .handleResponseHeaderString( + "opc-request-id", + ListBdsCapacityReservationConfigurationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListBdsCapacityReservationConfigurationsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListBdsCapacityReservationsResponse listBdsCapacityReservations( + ListBdsCapacityReservationsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListBdsCapacityReservationsResponse::builder) + .logger(LOG, "listBdsCapacityReservations") + .serviceDetails( + "Bds", + "ListBdsCapacityReservations", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/ListBdsCapacityReservations") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListBdsCapacityReservationsRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationCollection.class, + ListBdsCapacityReservationsResponse.Builder + ::bdsCapacityReservationCollection) + .handleResponseHeaderString( + "opc-request-id", ListBdsCapacityReservationsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListBdsCapacityReservationsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListBdsCertificateConfigurationsResponse listBdsCertificateConfigurations( ListBdsCertificateConfigurationsRequest request) { @@ -3257,6 +3716,88 @@ public UpdateAutoScalingConfigurationResponse updateAutoScalingConfiguration( .callSync(); } + @Override + public UpdateBdsCapacityReservationResponse updateBdsCapacityReservation( + UpdateBdsCapacityReservationRequest request) { + + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + Objects.requireNonNull( + request.getUpdateBdsCapacityReservationDetails(), + "updateBdsCapacityReservationDetails is required"); + + return clientCall(request, UpdateBdsCapacityReservationResponse::builder) + .logger(LOG, "updateBdsCapacityReservation") + .serviceDetails( + "Bds", + "UpdateBdsCapacityReservation", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/UpdateBdsCapacityReservation") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateBdsCapacityReservationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsCapacityReservations") + .appendPathParam(request.getBdsCapacityReservationId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservation.class, + UpdateBdsCapacityReservationResponse.Builder::bdsCapacityReservation) + .handleResponseHeaderString( + "opc-request-id", + UpdateBdsCapacityReservationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", UpdateBdsCapacityReservationResponse.Builder::etag) + .callSync(); + } + + @Override + public UpdateBdsCapacityReservationConfigurationResponse + updateBdsCapacityReservationConfiguration( + UpdateBdsCapacityReservationConfigurationRequest request) { + + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + Objects.requireNonNull( + request.getUpdateBdsCapacityReservationConfigurationDetails(), + "updateBdsCapacityReservationConfigurationDetails is required"); + + return clientCall(request, UpdateBdsCapacityReservationConfigurationResponse::builder) + .logger(LOG, "updateBdsCapacityReservationConfiguration") + .serviceDetails( + "Bds", + "UpdateBdsCapacityReservationConfiguration", + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/UpdateBdsCapacityReservationConfiguration") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateBdsCapacityReservationConfigurationRequest::builder) + .basePath("/20190531") + .appendPathParam("bdsInstances") + .appendPathParam(request.getBdsInstanceId()) + .appendPathParam("bdsCapacityReservationConfigurations") + .appendPathParam(request.getBdsCapacityReservationConfigurationId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.class, + UpdateBdsCapacityReservationConfigurationResponse.Builder + ::bdsCapacityReservationConfiguration) + .handleResponseHeaderString( + "opc-request-id", + UpdateBdsCapacityReservationConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "etag", UpdateBdsCapacityReservationConfigurationResponse.Builder::etag) + .callSync(); + } + @Override public UpdateBdsInstanceResponse updateBdsInstance(UpdateBdsInstanceRequest 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 984797d2d69..8e45f777cd2 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,410 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listBdsCapacityReservationAssociatedConfigurations 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 + listBdsCapacityReservationAssociatedConfigurationsResponseIterator( + final ListBdsCapacityReservationAssociatedConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder, + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse>( + new java.util.function.Supplier< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder get() { + return ListBdsCapacityReservationAssociatedConfigurationsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationAssociatedConfigurationsResponse, String>() { + @Override + public String apply( + ListBdsCapacityReservationAssociatedConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder>, + ListBdsCapacityReservationAssociatedConfigurationsRequest>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationAssociatedConfigurationsRequest + .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< + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsResponse apply( + ListBdsCapacityReservationAssociatedConfigurationsRequest request) { + return client.listBdsCapacityReservationAssociatedConfigurations(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationSummary} objects + * contained in responses from the listBdsCapacityReservationAssociatedConfigurations 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.BdsCapacityReservationAssociatedConfigurationSummary} objects + * contained in responses received from the service. + */ + public Iterable + listBdsCapacityReservationAssociatedConfigurationsRecordIterator( + final ListBdsCapacityReservationAssociatedConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder, + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse, + com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationSummary>( + new java.util.function.Supplier< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder get() { + return ListBdsCapacityReservationAssociatedConfigurationsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationAssociatedConfigurationsResponse, String>() { + @Override + public String apply( + ListBdsCapacityReservationAssociatedConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder>, + ListBdsCapacityReservationAssociatedConfigurationsRequest>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationAssociatedConfigurationsRequest + .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< + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsResponse apply( + ListBdsCapacityReservationAssociatedConfigurationsRequest request) { + return client.listBdsCapacityReservationAssociatedConfigurations(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationAssociatedConfigurationsResponse, + java.util.List< + com.oracle.bmc.bds.model + .BdsCapacityReservationAssociatedConfigurationSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.bds.model + .BdsCapacityReservationAssociatedConfigurationSummary> + apply( + ListBdsCapacityReservationAssociatedConfigurationsResponse + response) { + return response.getBdsCapacityReservationAssociatedConfigurationCollection() + .getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listBdsCapacityReservationConfigurations 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 + listBdsCapacityReservationConfigurationsResponseIterator( + final ListBdsCapacityReservationConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBdsCapacityReservationConfigurationsRequest.Builder, + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse>( + new java.util.function.Supplier< + ListBdsCapacityReservationConfigurationsRequest.Builder>() { + @Override + public ListBdsCapacityReservationConfigurationsRequest.Builder get() { + return ListBdsCapacityReservationConfigurationsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationConfigurationsResponse, String>() { + @Override + public String apply(ListBdsCapacityReservationConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationConfigurationsRequest.Builder>, + ListBdsCapacityReservationConfigurationsRequest>() { + @Override + public ListBdsCapacityReservationConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationConfigurationsRequest.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< + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse>() { + @Override + public ListBdsCapacityReservationConfigurationsResponse apply( + ListBdsCapacityReservationConfigurationsRequest request) { + return client.listBdsCapacityReservationConfigurations(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationSummary} objects contained in + * responses from the listBdsCapacityReservationConfigurations 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.BdsCapacityReservationConfigurationSummary} objects contained in + * responses received from the service. + */ + public Iterable + listBdsCapacityReservationConfigurationsRecordIterator( + final ListBdsCapacityReservationConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBdsCapacityReservationConfigurationsRequest.Builder, + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse, + com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationSummary>( + new java.util.function.Supplier< + ListBdsCapacityReservationConfigurationsRequest.Builder>() { + @Override + public ListBdsCapacityReservationConfigurationsRequest.Builder get() { + return ListBdsCapacityReservationConfigurationsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationConfigurationsResponse, String>() { + @Override + public String apply(ListBdsCapacityReservationConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationConfigurationsRequest.Builder>, + ListBdsCapacityReservationConfigurationsRequest>() { + @Override + public ListBdsCapacityReservationConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationConfigurationsRequest.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< + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse>() { + @Override + public ListBdsCapacityReservationConfigurationsResponse apply( + ListBdsCapacityReservationConfigurationsRequest request) { + return client.listBdsCapacityReservationConfigurations(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationConfigurationsResponse, + java.util.List< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfigurationSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfigurationSummary> + apply(ListBdsCapacityReservationConfigurationsResponse response) { + return response.getBdsCapacityReservationConfigurationCollection() + .getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listBdsCapacityReservations 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 + listBdsCapacityReservationsResponseIterator( + final ListBdsCapacityReservationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBdsCapacityReservationsRequest.Builder, + ListBdsCapacityReservationsRequest, + ListBdsCapacityReservationsResponse>( + new java.util.function.Supplier() { + @Override + public ListBdsCapacityReservationsRequest.Builder get() { + return ListBdsCapacityReservationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBdsCapacityReservationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationsRequest.Builder>, + ListBdsCapacityReservationsRequest>() { + @Override + public ListBdsCapacityReservationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationsRequest.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< + ListBdsCapacityReservationsRequest, ListBdsCapacityReservationsResponse>() { + @Override + public ListBdsCapacityReservationsResponse apply( + ListBdsCapacityReservationsRequest request) { + return client.listBdsCapacityReservations(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.bds.model.BdsCapacityReservationSummary} objects contained in responses from + * the listBdsCapacityReservations 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.BdsCapacityReservationSummary} objects contained in responses + * received from the service. + */ + public Iterable + listBdsCapacityReservationsRecordIterator( + final ListBdsCapacityReservationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBdsCapacityReservationsRequest.Builder, + ListBdsCapacityReservationsRequest, + ListBdsCapacityReservationsResponse, + com.oracle.bmc.bds.model.BdsCapacityReservationSummary>( + new java.util.function.Supplier() { + @Override + public ListBdsCapacityReservationsRequest.Builder get() { + return ListBdsCapacityReservationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBdsCapacityReservationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationsRequest.Builder>, + ListBdsCapacityReservationsRequest>() { + @Override + public ListBdsCapacityReservationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationsRequest.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< + ListBdsCapacityReservationsRequest, ListBdsCapacityReservationsResponse>() { + @Override + public ListBdsCapacityReservationsResponse apply( + ListBdsCapacityReservationsRequest request) { + return client.listBdsCapacityReservations(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListBdsCapacityReservationsResponse response) { + return response.getBdsCapacityReservationCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listBdsCertificateConfigurations operation. This iterable will fetch more data from the 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 f0fd5ea98d5..274e15c0b60 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 @@ -238,6 +238,245 @@ public boolean test(GetBdsApiKeyResponse 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< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + forBdsCapacityReservation( + GetBdsCapacityReservationRequest request, + com.oracle.bmc.bds.model.BdsCapacityReservation.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 forBdsCapacityReservation( + 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< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + forBdsCapacityReservation( + GetBdsCapacityReservationRequest request, + com.oracle.bmc.bds.model.BdsCapacityReservation.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 forBdsCapacityReservation( + 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< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + forBdsCapacityReservation( + GetBdsCapacityReservationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.bds.model.BdsCapacityReservation.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 forBdsCapacityReservation( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for BdsCapacityReservation. + private com.oracle.bmc.waiter.Waiter< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + forBdsCapacityReservation( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetBdsCapacityReservationRequest request, + final com.oracle.bmc.bds.model.BdsCapacityReservation.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< + GetBdsCapacityReservationRequest, + GetBdsCapacityReservationResponse>() { + @Override + public GetBdsCapacityReservationResponse apply( + GetBdsCapacityReservationRequest request) { + return client.getBdsCapacityReservation(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetBdsCapacityReservationResponse response) { + return targetStatesSet.contains( + response.getBdsCapacityReservation().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState + .Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + forBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.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 forBdsCapacityReservationConfiguration( + 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< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + forBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.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 forBdsCapacityReservationConfiguration( + 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< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + forBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.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 forBdsCapacityReservationConfiguration( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for BdsCapacityReservationConfiguration. + private com.oracle.bmc.waiter.Waiter< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + forBdsCapacityReservationConfiguration( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + .LifecycleState + ... + targetStates) { + final java.util.Set< + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse>() { + @Override + public GetBdsCapacityReservationConfigurationResponse apply( + GetBdsCapacityReservationConfigurationRequest request) { + return client.getBdsCapacityReservationConfiguration(request); + } + }, + new java.util.function.Predicate< + GetBdsCapacityReservationConfigurationResponse>() { + @Override + public boolean test( + GetBdsCapacityReservationConfigurationResponse response) { + return targetStatesSet.contains( + response.getBdsCapacityReservationConfiguration() + .getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + .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/BdsCapacityReservation.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservation.java new file mode 100644 index 00000000000..0393a229fc4 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservation.java @@ -0,0 +1,562 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * A reusable BDS capacity reservation resource.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BdsCapacityReservation + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "computeCapacityReservations", + "lifecycleState", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public BdsCapacityReservation( + String id, + String displayName, + String compartmentId, + ComputeCapacityReservations computeCapacityReservations, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.computeCapacityReservations = computeCapacityReservations; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the BDS capacity reservation. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** A user-friendly name for the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The OCID of the compartment that contains the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the BDS capacity reservation. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private ComputeCapacityReservations computeCapacityReservations; + + public Builder computeCapacityReservations( + ComputeCapacityReservations computeCapacityReservations) { + this.computeCapacityReservations = computeCapacityReservations; + this.__explicitlySet__.add("computeCapacityReservations"); + return this; + } + /** The lifecycle state of the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation 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; + } + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation 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; + } + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists + * for cross-compatibility only. For example, {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists + * for cross-compatibility only. 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. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * + * @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 BdsCapacityReservation build() { + BdsCapacityReservation model = + new BdsCapacityReservation( + this.id, + this.displayName, + this.compartmentId, + this.computeCapacityReservations, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservation model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("computeCapacityReservations")) { + this.computeCapacityReservations(model.getComputeCapacityReservations()); + } + 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("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the BDS capacity reservation. + * + * @return the value + */ + public String getId() { + return id; + } + + /** A user-friendly name for the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the compartment that contains the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the BDS capacity reservation. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private final ComputeCapacityReservations computeCapacityReservations; + + public ComputeCapacityReservations getComputeCapacityReservations() { + return computeCapacityReservations; + } + + /** The lifecycle state of the BDS capacity reservation. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + 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; + } + }; + /** The lifecycle state of the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for + * cross-compatibility only. For example, {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for + * cross-compatibility only. 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. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * + * @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("BdsCapacityReservation("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", computeCapacityReservations=") + .append(String.valueOf(this.computeCapacityReservations)); + 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(", 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 BdsCapacityReservation)) { + return false; + } + + BdsCapacityReservation other = (BdsCapacityReservation) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.computeCapacityReservations, other.computeCapacityReservations) + && 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.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.computeCapacityReservations == null + ? 43 + : this.computeCapacityReservations.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.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-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationCollection.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationCollection.java new file mode 100644 index 00000000000..7ef4707f0f9 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationCollection.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Results of a BDS capacity reservation associated configuration search.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservationAssociatedConfigurationCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BdsCapacityReservationAssociatedConfigurationCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public BdsCapacityReservationAssociatedConfigurationCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of BDS capacity reservation configuration summaries associated with a BDS capacity + * reservation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of BDS capacity reservation configuration summaries associated with a BDS capacity + * reservation. + * + * @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 BdsCapacityReservationAssociatedConfigurationCollection build() { + BdsCapacityReservationAssociatedConfigurationCollection model = + new BdsCapacityReservationAssociatedConfigurationCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationAssociatedConfigurationCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of BDS capacity reservation configuration summaries associated with a BDS capacity + * reservation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of BDS capacity reservation configuration summaries associated with a BDS capacity + * reservation. + * + * @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("BdsCapacityReservationAssociatedConfigurationCollection("); + 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 BdsCapacityReservationAssociatedConfigurationCollection)) { + return false; + } + + BdsCapacityReservationAssociatedConfigurationCollection other = + (BdsCapacityReservationAssociatedConfigurationCollection) 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-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationSummary.java new file mode 100644 index 00000000000..ba7e3b9ebe7 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationSummary.java @@ -0,0 +1,431 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a BDS capacity reservation configuration associated with a BDS capacity reservation. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are 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 = BdsCapacityReservationAssociatedConfigurationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BdsCapacityReservationAssociatedConfigurationSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "bdsInstanceId", + "displayName", + "compartmentId", + "lifecycleState", + "timeCreated", + "timeUpdated" + }) + public BdsCapacityReservationAssociatedConfigurationSummary( + String id, + String bdsInstanceId, + String displayName, + String compartmentId, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.bdsInstanceId = bdsInstanceId; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * + * @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 BDS cluster linked through the BDS capacity reservation configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private String bdsInstanceId; + + /** + * The OCID of the BDS cluster linked through the BDS capacity reservation configuration. + * + * @param bdsInstanceId the value to set + * @return this builder + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + this.__explicitlySet__.add("bdsInstanceId"); + return this; + } + /** The display name of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The OCID of the compartment that contains the BDS cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the BDS cluster. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The lifecycle state of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the configuration was created, shown as an RFC 3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the 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; + } + /** + * The time the configuration was updated, shown as an RFC 3339 formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the configuration 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 BdsCapacityReservationAssociatedConfigurationSummary build() { + BdsCapacityReservationAssociatedConfigurationSummary model = + new BdsCapacityReservationAssociatedConfigurationSummary( + this.id, + this.bdsInstanceId, + this.displayName, + this.compartmentId, + this.lifecycleState, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationAssociatedConfigurationSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("bdsInstanceId")) { + this.bdsInstanceId(model.getBdsInstanceId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + 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); + } + + /** The OCID of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the BDS cluster linked through the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private final String bdsInstanceId; + + /** + * The OCID of the BDS cluster linked through the BDS capacity reservation configuration. + * + * @return the value + */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + + /** The display name of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the compartment that contains the BDS cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the BDS cluster. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The lifecycle state of the BDS capacity reservation configuration. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + 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; + } + }; + /** The lifecycle state of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The time the configuration was created, shown as an RFC 3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the configuration was created, shown as an RFC 3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the configuration was updated, shown as an RFC 3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the configuration 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("BdsCapacityReservationAssociatedConfigurationSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + 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 BdsCapacityReservationAssociatedConfigurationSummary)) { + return false; + } + + BdsCapacityReservationAssociatedConfigurationSummary other = + (BdsCapacityReservationAssociatedConfigurationSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && 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.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.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/BdsCapacityReservationCollection.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationCollection.java new file mode 100644 index 00000000000..c10796b2968 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Results of a BDS capacity reservation search.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservationCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BdsCapacityReservationCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public BdsCapacityReservationCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of BDS capacity reservation summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of BDS capacity reservation 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 BdsCapacityReservationCollection build() { + BdsCapacityReservationCollection model = + new BdsCapacityReservationCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of BDS capacity reservation summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of BDS capacity reservation 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("BdsCapacityReservationCollection("); + 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 BdsCapacityReservationCollection)) { + return false; + } + + BdsCapacityReservationCollection other = (BdsCapacityReservationCollection) 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-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfiguration.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfiguration.java new file mode 100644 index 00000000000..f30d6d2b0ad --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfiguration.java @@ -0,0 +1,443 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * A configuration between a BDS cluster and a BDS capacity reservation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are 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 = BdsCapacityReservationConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BdsCapacityReservationConfiguration + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "bdsInstanceId", + "bdsCapacityReservationId", + "displayName", + "lifecycleState", + "timeCreated", + "timeUpdated" + }) + public BdsCapacityReservationConfiguration( + String id, + String bdsInstanceId, + String bdsCapacityReservationId, + String displayName, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.bdsInstanceId = bdsInstanceId; + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * + * @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 BDS cluster associated with the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private String bdsInstanceId; + + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + * + * @param bdsInstanceId the value to set + * @return this builder + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + this.__explicitlySet__.add("bdsInstanceId"); + return this; + } + /** The OCID of the BDS capacity reservation associated with the BDS cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + * + * @param bdsCapacityReservationId the value to set + * @return this builder + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.__explicitlySet__.add("bdsCapacityReservationId"); + return this; + } + /** The display name of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The lifecycle state of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation 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; + } + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation configuration 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 BdsCapacityReservationConfiguration build() { + BdsCapacityReservationConfiguration model = + new BdsCapacityReservationConfiguration( + this.id, + this.bdsInstanceId, + this.bdsCapacityReservationId, + this.displayName, + this.lifecycleState, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationConfiguration model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("bdsInstanceId")) { + this.bdsInstanceId(model.getBdsInstanceId()); + } + if (model.wasPropertyExplicitlySet("bdsCapacityReservationId")) { + this.bdsCapacityReservationId(model.getBdsCapacityReservationId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + 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); + } + + /** The OCID of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the BDS cluster associated with the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private final String bdsInstanceId; + + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + * + * @return the value + */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + + /** The OCID of the BDS capacity reservation associated with the BDS cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private final String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + * + * @return the value + */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + + /** The display name of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The lifecycle state of the BDS capacity reservation configuration. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + 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; + } + }; + /** The lifecycle state of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 + * formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation configuration 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("BdsCapacityReservationConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(", bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + 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 BdsCapacityReservationConfiguration)) { + return false; + } + + BdsCapacityReservationConfiguration other = (BdsCapacityReservationConfiguration) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals(this.displayName, other.displayName) + && 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.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.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/BdsCapacityReservationConfigurationCollection.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationCollection.java new file mode 100644 index 00000000000..5cd79641f31 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationCollection.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Results of a BDS capacity reservation configuration search.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservationConfigurationCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BdsCapacityReservationConfigurationCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public BdsCapacityReservationConfigurationCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of BDS capacity reservation configuration summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of BDS capacity reservation configuration 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 BdsCapacityReservationConfigurationCollection build() { + BdsCapacityReservationConfigurationCollection model = + new BdsCapacityReservationConfigurationCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationConfigurationCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of BDS capacity reservation configuration summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of BDS capacity reservation configuration 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("BdsCapacityReservationConfigurationCollection("); + 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 BdsCapacityReservationConfigurationCollection)) { + return false; + } + + BdsCapacityReservationConfigurationCollection other = + (BdsCapacityReservationConfigurationCollection) 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-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationSummary.java new file mode 100644 index 00000000000..3128b004c7a --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationSummary.java @@ -0,0 +1,395 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a configuration between a BDS cluster and a BDS capacity reservation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are 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 = BdsCapacityReservationConfigurationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BdsCapacityReservationConfigurationSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "bdsInstanceId", + "bdsCapacityReservationId", + "displayName", + "lifecycleState", + "timeCreated", + "timeUpdated" + }) + public BdsCapacityReservationConfigurationSummary( + String id, + String bdsInstanceId, + String bdsCapacityReservationId, + String displayName, + BdsCapacityReservationConfiguration.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.bdsInstanceId = bdsInstanceId; + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * + * @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 BDS cluster associated with the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private String bdsInstanceId; + + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + * + * @param bdsInstanceId the value to set + * @return this builder + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + this.__explicitlySet__.add("bdsInstanceId"); + return this; + } + /** The OCID of the BDS capacity reservation associated with the BDS cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + * + * @param bdsCapacityReservationId the value to set + * @return this builder + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.__explicitlySet__.add("bdsCapacityReservationId"); + return this; + } + /** The display name of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The lifecycle state of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private BdsCapacityReservationConfiguration.LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState( + BdsCapacityReservationConfiguration.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation 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; + } + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation configuration 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 BdsCapacityReservationConfigurationSummary build() { + BdsCapacityReservationConfigurationSummary model = + new BdsCapacityReservationConfigurationSummary( + this.id, + this.bdsInstanceId, + this.bdsCapacityReservationId, + this.displayName, + this.lifecycleState, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationConfigurationSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("bdsInstanceId")) { + this.bdsInstanceId(model.getBdsInstanceId()); + } + if (model.wasPropertyExplicitlySet("bdsCapacityReservationId")) { + this.bdsCapacityReservationId(model.getBdsCapacityReservationId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + 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); + } + + /** The OCID of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the BDS cluster associated with the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private final String bdsInstanceId; + + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + * + * @return the value + */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + + /** The OCID of the BDS capacity reservation associated with the BDS cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private final String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + * + * @return the value + */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + + /** The display name of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The lifecycle state of the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final BdsCapacityReservationConfiguration.LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * + * @return the value + */ + public BdsCapacityReservationConfiguration.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 + * formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 + * formatted datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation configuration 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("BdsCapacityReservationConfigurationSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(", bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + 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 BdsCapacityReservationConfigurationSummary)) { + return false; + } + + BdsCapacityReservationConfigurationSummary other = + (BdsCapacityReservationConfigurationSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals(this.displayName, other.displayName) + && 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.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.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/BdsCapacityReservationSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationSummary.java new file mode 100644 index 00000000000..28c0975e994 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationSummary.java @@ -0,0 +1,513 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a BDS capacity reservation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are 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 = BdsCapacityReservationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BdsCapacityReservationSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "computeCapacityReservations", + "lifecycleState", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public BdsCapacityReservationSummary( + String id, + String displayName, + String compartmentId, + ComputeCapacityReservations computeCapacityReservations, + BdsCapacityReservation.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.computeCapacityReservations = computeCapacityReservations; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the BDS capacity reservation. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** A user-friendly name for the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The OCID of the compartment that contains the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the BDS capacity reservation. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private ComputeCapacityReservations computeCapacityReservations; + + public Builder computeCapacityReservations( + ComputeCapacityReservations computeCapacityReservations) { + this.computeCapacityReservations = computeCapacityReservations; + this.__explicitlySet__.add("computeCapacityReservations"); + return this; + } + /** The lifecycle state of the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private BdsCapacityReservation.LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(BdsCapacityReservation.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation 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; + } + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted + * datetime string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation 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; + } + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists + * for cross-compatibility only. For example, {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists + * for cross-compatibility only. 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. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * + * @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 BdsCapacityReservationSummary build() { + BdsCapacityReservationSummary model = + new BdsCapacityReservationSummary( + this.id, + this.displayName, + this.compartmentId, + this.computeCapacityReservations, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("computeCapacityReservations")) { + this.computeCapacityReservations(model.getComputeCapacityReservations()); + } + 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("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the BDS capacity reservation. + * + * @return the value + */ + public String getId() { + return id; + } + + /** A user-friendly name for the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the compartment that contains the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the BDS capacity reservation. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private final ComputeCapacityReservations computeCapacityReservations; + + public ComputeCapacityReservations getComputeCapacityReservations() { + return computeCapacityReservations; + } + + /** The lifecycle state of the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final BdsCapacityReservation.LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation. + * + * @return the value + */ + public BdsCapacityReservation.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime + * string. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime + * string. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for + * cross-compatibility only. For example, {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for + * cross-compatibility only. 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. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * + * @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("BdsCapacityReservationSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", computeCapacityReservations=") + .append(String.valueOf(this.computeCapacityReservations)); + 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(", 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 BdsCapacityReservationSummary)) { + return false; + } + + BdsCapacityReservationSummary other = (BdsCapacityReservationSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.computeCapacityReservations, other.computeCapacityReservations) + && 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.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.computeCapacityReservations == null + ? 43 + : this.computeCapacityReservations.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.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-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 38aa17e1a67..66dae70506d 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 @@ -36,6 +36,7 @@ public final class BdsInstance extends com.oracle.bmc.http.client.internal.Expli "networkConfig", "clusterDetails", "nodes", + "bdsCapacityReservationConfigurations", "cloudSqlDetails", "createdBy", "timeCreated", @@ -65,6 +66,8 @@ public BdsInstance( NetworkConfig networkConfig, ClusterDetails clusterDetails, java.util.List nodes, + java.util.List + bdsCapacityReservationConfigurations, CloudSqlDetails cloudSqlDetails, String createdBy, java.util.Date timeCreated, @@ -93,6 +96,7 @@ public BdsInstance( this.networkConfig = networkConfig; this.clusterDetails = clusterDetails; this.nodes = nodes; + this.bdsCapacityReservationConfigurations = bdsCapacityReservationConfigurations; this.cloudSqlDetails = cloudSqlDetails; this.createdBy = createdBy; this.timeCreated = timeCreated; @@ -312,6 +316,24 @@ public Builder nodes(java.util.List nodes) { this.__explicitlySet__.add("nodes"); return this; } + /** The list of BDS capacity reservation configurations associated with the cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationConfigurations") + private java.util.List + bdsCapacityReservationConfigurations; + + /** + * The list of BDS capacity reservation configurations associated with the cluster. + * + * @param bdsCapacityReservationConfigurations the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfigurations( + java.util.List + bdsCapacityReservationConfigurations) { + this.bdsCapacityReservationConfigurations = bdsCapacityReservationConfigurations; + this.__explicitlySet__.add("bdsCapacityReservationConfigurations"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("cloudSqlDetails") private CloudSqlDetails cloudSqlDetails; @@ -535,6 +557,7 @@ public BdsInstance build() { this.networkConfig, this.clusterDetails, this.nodes, + this.bdsCapacityReservationConfigurations, this.cloudSqlDetails, this.createdBy, this.timeCreated, @@ -598,6 +621,10 @@ public Builder copy(BdsInstance model) { if (model.wasPropertyExplicitlySet("nodes")) { this.nodes(model.getNodes()); } + if (model.wasPropertyExplicitlySet("bdsCapacityReservationConfigurations")) { + this.bdsCapacityReservationConfigurations( + model.getBdsCapacityReservationConfigurations()); + } if (model.wasPropertyExplicitlySet("cloudSqlDetails")) { this.cloudSqlDetails(model.getCloudSqlDetails()); } @@ -929,6 +956,21 @@ public java.util.List getNodes() { return nodes; } + /** The list of BDS capacity reservation configurations associated with the cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationConfigurations") + private final java.util.List + bdsCapacityReservationConfigurations; + + /** + * The list of BDS capacity reservation configurations associated with the cluster. + * + * @return the value + */ + public java.util.List + getBdsCapacityReservationConfigurations() { + return bdsCapacityReservationConfigurations; + } + @com.fasterxml.jackson.annotation.JsonProperty("cloudSqlDetails") private final CloudSqlDetails cloudSqlDetails; @@ -1182,6 +1224,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", networkConfig=").append(String.valueOf(this.networkConfig)); sb.append(", clusterDetails=").append(String.valueOf(this.clusterDetails)); sb.append(", nodes=").append(String.valueOf(this.nodes)); + sb.append(", bdsCapacityReservationConfigurations=") + .append(String.valueOf(this.bdsCapacityReservationConfigurations)); sb.append(", cloudSqlDetails=").append(String.valueOf(this.cloudSqlDetails)); sb.append(", createdBy=").append(String.valueOf(this.createdBy)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -1226,6 +1270,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.networkConfig, other.networkConfig) && java.util.Objects.equals(this.clusterDetails, other.clusterDetails) && java.util.Objects.equals(this.nodes, other.nodes) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurations, + other.bdsCapacityReservationConfigurations) && java.util.Objects.equals(this.cloudSqlDetails, other.cloudSqlDetails) && java.util.Objects.equals(this.createdBy, other.createdBy) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -1287,6 +1334,11 @@ public int hashCode() { (result * PRIME) + (this.clusterDetails == null ? 43 : this.clusterDetails.hashCode()); result = (result * PRIME) + (this.nodes == null ? 43 : this.nodes.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfigurations == null + ? 43 + : this.bdsCapacityReservationConfigurations.hashCode()); result = (result * PRIME) + (this.cloudSqlDetails == null ? 43 : this.cloudSqlDetails.hashCode()); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeBdsCapacityReservationCompartmentDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeBdsCapacityReservationCompartmentDetails.java new file mode 100644 index 00000000000..03d510639ad --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeBdsCapacityReservationCompartmentDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 moving a BDS capacity reservation to a different 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: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeBdsCapacityReservationCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeBdsCapacityReservationCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeBdsCapacityReservationCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the compartment to move the BDS capacity reservation to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment to move the BDS capacity reservation to. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeBdsCapacityReservationCompartmentDetails build() { + ChangeBdsCapacityReservationCompartmentDetails model = + new ChangeBdsCapacityReservationCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeBdsCapacityReservationCompartmentDetails 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 of the compartment to move the BDS capacity reservation to. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment to move the BDS capacity reservation to. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeBdsCapacityReservationCompartmentDetails("); + 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 ChangeBdsCapacityReservationCompartmentDetails)) { + return false; + } + + ChangeBdsCapacityReservationCompartmentDetails other = + (ChangeBdsCapacityReservationCompartmentDetails) 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-bds/src/main/java/com/oracle/bmc/bds/model/ComputeCapacityReservations.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ComputeCapacityReservations.java new file mode 100644 index 00000000000..a37b88b5e30 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ComputeCapacityReservations.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Compute capacity reservation ID mappings by domain. For a multi-AD region, domain1, domain2, and + * domain3 correspond to AD1, AD2, and AD3 respectively. For a single-AD region, domain1, domain2, + * and domain3 correspond to FD1, FD2, and FD3 respectively.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are 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 = ComputeCapacityReservations.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ComputeCapacityReservations + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "domain1ReservationId", + "domain2ReservationId", + "domain3ReservationId" + }) + public ComputeCapacityReservations( + String domain1ReservationId, String domain2ReservationId, String domain3ReservationId) { + super(); + this.domain1ReservationId = domain1ReservationId; + this.domain2ReservationId = domain2ReservationId; + this.domain3ReservationId = domain3ReservationId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a + * single-AD region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain1ReservationId") + private String domain1ReservationId; + + /** + * Capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a + * single-AD region. + * + * @param domain1ReservationId the value to set + * @return this builder + */ + public Builder domain1ReservationId(String domain1ReservationId) { + this.domain1ReservationId = domain1ReservationId; + this.__explicitlySet__.add("domain1ReservationId"); + return this; + } + /** + * Capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a + * single-AD region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain2ReservationId") + private String domain2ReservationId; + + /** + * Capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a + * single-AD region. + * + * @param domain2ReservationId the value to set + * @return this builder + */ + public Builder domain2ReservationId(String domain2ReservationId) { + this.domain2ReservationId = domain2ReservationId; + this.__explicitlySet__.add("domain2ReservationId"); + return this; + } + /** + * Capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a + * single-AD region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain3ReservationId") + private String domain3ReservationId; + + /** + * Capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a + * single-AD region. + * + * @param domain3ReservationId the value to set + * @return this builder + */ + public Builder domain3ReservationId(String domain3ReservationId) { + this.domain3ReservationId = domain3ReservationId; + this.__explicitlySet__.add("domain3ReservationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComputeCapacityReservations build() { + ComputeCapacityReservations model = + new ComputeCapacityReservations( + this.domain1ReservationId, + this.domain2ReservationId, + this.domain3ReservationId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComputeCapacityReservations model) { + if (model.wasPropertyExplicitlySet("domain1ReservationId")) { + this.domain1ReservationId(model.getDomain1ReservationId()); + } + if (model.wasPropertyExplicitlySet("domain2ReservationId")) { + this.domain2ReservationId(model.getDomain2ReservationId()); + } + if (model.wasPropertyExplicitlySet("domain3ReservationId")) { + this.domain3ReservationId(model.getDomain3ReservationId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD + * region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain1ReservationId") + private final String domain1ReservationId; + + /** + * Capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD + * region. + * + * @return the value + */ + public String getDomain1ReservationId() { + return domain1ReservationId; + } + + /** + * Capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD + * region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain2ReservationId") + private final String domain2ReservationId; + + /** + * Capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD + * region. + * + * @return the value + */ + public String getDomain2ReservationId() { + return domain2ReservationId; + } + + /** + * Capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD + * region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("domain3ReservationId") + private final String domain3ReservationId; + + /** + * Capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD + * region. + * + * @return the value + */ + public String getDomain3ReservationId() { + return domain3ReservationId; + } + + @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("ComputeCapacityReservations("); + sb.append("super=").append(super.toString()); + sb.append("domain1ReservationId=").append(String.valueOf(this.domain1ReservationId)); + sb.append(", domain2ReservationId=").append(String.valueOf(this.domain2ReservationId)); + sb.append(", domain3ReservationId=").append(String.valueOf(this.domain3ReservationId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComputeCapacityReservations)) { + return false; + } + + ComputeCapacityReservations other = (ComputeCapacityReservations) o; + return java.util.Objects.equals(this.domain1ReservationId, other.domain1ReservationId) + && java.util.Objects.equals(this.domain2ReservationId, other.domain2ReservationId) + && java.util.Objects.equals(this.domain3ReservationId, other.domain3ReservationId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.domain1ReservationId == null + ? 43 + : this.domain1ReservationId.hashCode()); + result = + (result * PRIME) + + (this.domain2ReservationId == null + ? 43 + : this.domain2ReservationId.hashCode()); + result = + (result * PRIME) + + (this.domain3ReservationId == null + ? 43 + : this.domain3ReservationId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationConfigurationDetails.java new file mode 100644 index 00000000000..e9f146f58fd --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationConfigurationDetails.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 associating a BDS capacity reservation with a BDS 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 = CreateBdsCapacityReservationConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateBdsCapacityReservationConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "bdsCapacityReservationId"}) + public CreateBdsCapacityReservationConfigurationDetails( + String displayName, String bdsCapacityReservationId) { + super(); + this.displayName = displayName; + this.bdsCapacityReservationId = bdsCapacityReservationId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A user-friendly name for the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the BDS capacity reservation configuration. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The OCID of the BDS capacity reservation to associate with the BDS cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + * + * @param bdsCapacityReservationId the value to set + * @return this builder + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.__explicitlySet__.add("bdsCapacityReservationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateBdsCapacityReservationConfigurationDetails build() { + CreateBdsCapacityReservationConfigurationDetails model = + new CreateBdsCapacityReservationConfigurationDetails( + this.displayName, this.bdsCapacityReservationId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateBdsCapacityReservationConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("bdsCapacityReservationId")) { + this.bdsCapacityReservationId(model.getBdsCapacityReservationId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A user-friendly name for the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the BDS capacity reservation configuration. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the BDS capacity reservation to associate with the BDS cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private final String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + * + * @return the value + */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + + @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("CreateBdsCapacityReservationConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBdsCapacityReservationConfigurationDetails)) { + return false; + } + + CreateBdsCapacityReservationConfigurationDetails other = + (CreateBdsCapacityReservationConfigurationDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && 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.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationDetails.java new file mode 100644 index 00000000000..bc97ec63750 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationDetails.java @@ -0,0 +1,305 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a BDS capacity reservation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are 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 = CreateBdsCapacityReservationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateBdsCapacityReservationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "compartmentId", + "computeCapacityReservations", + "freeformTags", + "definedTags" + }) + public CreateBdsCapacityReservationDetails( + String displayName, + String compartmentId, + ComputeCapacityReservations computeCapacityReservations, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.compartmentId = compartmentId; + this.computeCapacityReservations = computeCapacityReservations; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A user-friendly name for the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The OCID of the compartment in which to create the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment in which to create the BDS capacity reservation. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private ComputeCapacityReservations computeCapacityReservations; + + public Builder computeCapacityReservations( + ComputeCapacityReservations computeCapacityReservations) { + this.computeCapacityReservations = computeCapacityReservations; + this.__explicitlySet__.add("computeCapacityReservations"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists + * for cross-compatibility only. For example, {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists + * for cross-compatibility only. 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 CreateBdsCapacityReservationDetails build() { + CreateBdsCapacityReservationDetails model = + new CreateBdsCapacityReservationDetails( + this.displayName, + this.compartmentId, + this.computeCapacityReservations, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateBdsCapacityReservationDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("computeCapacityReservations")) { + this.computeCapacityReservations(model.getComputeCapacityReservations()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A user-friendly name for the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the compartment in which to create the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment in which to create the BDS capacity reservation. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private final ComputeCapacityReservations computeCapacityReservations; + + public ComputeCapacityReservations getComputeCapacityReservations() { + return computeCapacityReservations; + } + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for + * cross-compatibility only. For example, {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for + * cross-compatibility only. 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("CreateBdsCapacityReservationDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", computeCapacityReservations=") + .append(String.valueOf(this.computeCapacityReservations)); + 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 CreateBdsCapacityReservationDetails)) { + return false; + } + + CreateBdsCapacityReservationDetails other = (CreateBdsCapacityReservationDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.computeCapacityReservations, other.computeCapacityReservations) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.computeCapacityReservations == null + ? 43 + : this.computeCapacityReservations.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-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 d6f27cc935e..70f1f73b8f7 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 @@ -36,6 +36,8 @@ public CreateBdsInstanceDetails( NetworkConfig networkConfig, String bootstrapScriptUrl, java.util.List nodes, + java.util.List + bdsCapacityReservationConfigurations, String kerberosRealmName, java.util.Map freeformTags, java.util.Map> definedTags, @@ -56,6 +58,7 @@ public CreateBdsInstanceDetails( this.networkConfig = networkConfig; this.bootstrapScriptUrl = bootstrapScriptUrl; this.nodes = nodes; + this.bdsCapacityReservationConfigurations = bdsCapacityReservationConfigurations; this.kerberosRealmName = kerberosRealmName; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -79,6 +82,7 @@ public CreateBdsInstanceDetails( "networkConfig", "bootstrapScriptUrl", "nodes", + "bdsCapacityReservationConfigurations", "kerberosRealmName", "freeformTags", "definedTags", @@ -99,6 +103,8 @@ public CreateBdsInstanceDetails( NetworkConfig networkConfig, String bootstrapScriptUrl, java.util.List nodes, + java.util.List + bdsCapacityReservationConfigurations, String kerberosRealmName, java.util.Map freeformTags, java.util.Map> definedTags, @@ -118,6 +124,7 @@ public CreateBdsInstanceDetails( this.networkConfig = networkConfig; this.bootstrapScriptUrl = bootstrapScriptUrl; this.nodes = nodes; + this.bdsCapacityReservationConfigurations = bdsCapacityReservationConfigurations; this.kerberosRealmName = kerberosRealmName; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -317,6 +324,28 @@ public Builder nodes(java.util.List nodes) { this.__explicitlySet__.add("nodes"); return this; } + /** + * Optional BDS capacity reservation configurations to associate with the cluster during + * creation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationConfigurations") + private java.util.List + bdsCapacityReservationConfigurations; + + /** + * Optional BDS capacity reservation configurations to associate with the cluster during + * creation. + * + * @param bdsCapacityReservationConfigurations the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfigurations( + java.util.List + bdsCapacityReservationConfigurations) { + this.bdsCapacityReservationConfigurations = bdsCapacityReservationConfigurations; + this.__explicitlySet__.add("bdsCapacityReservationConfigurations"); + return this; + } /** The user-defined kerberos realm name. */ @com.fasterxml.jackson.annotation.JsonProperty("kerberosRealmName") private String kerberosRealmName; @@ -429,6 +458,7 @@ public CreateBdsInstanceDetails build() { this.networkConfig, this.bootstrapScriptUrl, this.nodes, + this.bdsCapacityReservationConfigurations, this.kerberosRealmName, this.freeformTags, this.definedTags, @@ -479,6 +509,10 @@ public Builder copy(CreateBdsInstanceDetails model) { if (model.wasPropertyExplicitlySet("nodes")) { this.nodes(model.getNodes()); } + if (model.wasPropertyExplicitlySet("bdsCapacityReservationConfigurations")) { + this.bdsCapacityReservationConfigurations( + model.getBdsCapacityReservationConfigurations()); + } if (model.wasPropertyExplicitlySet("kerberosRealmName")) { this.kerberosRealmName(model.getKerberosRealmName()); } @@ -682,6 +716,25 @@ public java.util.List getNodes() { return nodes; } + /** + * Optional BDS capacity reservation configurations to associate with the cluster during + * creation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationConfigurations") + private final java.util.List + bdsCapacityReservationConfigurations; + + /** + * Optional BDS capacity reservation configurations to associate with the cluster during + * creation. + * + * @return the value + */ + public java.util.List + getBdsCapacityReservationConfigurations() { + return bdsCapacityReservationConfigurations; + } + /** The user-defined kerberos realm name. */ @com.fasterxml.jackson.annotation.JsonProperty("kerberosRealmName") private final String kerberosRealmName; @@ -789,6 +842,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", networkConfig=").append(String.valueOf(this.networkConfig)); sb.append(", bootstrapScriptUrl=").append(String.valueOf(this.bootstrapScriptUrl)); sb.append(", nodes=").append(String.valueOf(this.nodes)); + sb.append(", bdsCapacityReservationConfigurations=") + .append(String.valueOf(this.bdsCapacityReservationConfigurations)); sb.append(", kerberosRealmName=").append(String.valueOf(this.kerberosRealmName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -822,6 +877,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.networkConfig, other.networkConfig) && java.util.Objects.equals(this.bootstrapScriptUrl, other.bootstrapScriptUrl) && java.util.Objects.equals(this.nodes, other.nodes) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurations, + other.bdsCapacityReservationConfigurations) && java.util.Objects.equals(this.kerberosRealmName, other.kerberosRealmName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -870,6 +928,11 @@ public int hashCode() { ? 43 : this.bootstrapScriptUrl.hashCode()); result = (result * PRIME) + (this.nodes == null ? 43 : this.nodes.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfigurations == null + ? 43 + : this.bdsCapacityReservationConfigurations.hashCode()); result = (result * PRIME) + (this.kerberosRealmName == null ? 43 : this.kerberosRealmName.hashCode()); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java index 2afad949d69..eafd83eae59 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java @@ -35,6 +35,7 @@ public final class Node extends com.oracle.bmc.http.client.internal.ExplicitlySe "sshFingerprint", "availabilityDomain", "faultDomain", + "computeCapacityReservationId", "timeCreated", "timeUpdated", "ocpus", @@ -63,6 +64,7 @@ public Node( String sshFingerprint, String availabilityDomain, String faultDomain, + String computeCapacityReservationId, java.util.Date timeCreated, java.util.Date timeUpdated, Integer ocpus, @@ -90,6 +92,7 @@ public Node( this.sshFingerprint = sshFingerprint; this.availabilityDomain = availabilityDomain; this.faultDomain = faultDomain; + this.computeCapacityReservationId = computeCapacityReservationId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.ocpus = ocpus; @@ -303,6 +306,21 @@ public Builder faultDomain(String faultDomain) { this.__explicitlySet__.add("faultDomain"); return this; } + /** The OCID of the Compute capacity reservation used by this node. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservationId") + private String computeCapacityReservationId; + + /** + * The OCID of the Compute capacity reservation used by this node. + * + * @param computeCapacityReservationId the value to set + * @return this builder + */ + public Builder computeCapacityReservationId(String computeCapacityReservationId) { + this.computeCapacityReservationId = computeCapacityReservationId; + this.__explicitlySet__.add("computeCapacityReservationId"); + return this; + } /** The time the node was created, shown as an RFC 3339 formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; @@ -536,6 +554,7 @@ public Node build() { this.sshFingerprint, this.availabilityDomain, this.faultDomain, + this.computeCapacityReservationId, this.timeCreated, this.timeUpdated, this.ocpus, @@ -596,6 +615,9 @@ public Builder copy(Node model) { if (model.wasPropertyExplicitlySet("faultDomain")) { this.faultDomain(model.getFaultDomain()); } + if (model.wasPropertyExplicitlySet("computeCapacityReservationId")) { + this.computeCapacityReservationId(model.getComputeCapacityReservationId()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -923,6 +945,19 @@ public String getFaultDomain() { return faultDomain; } + /** The OCID of the Compute capacity reservation used by this node. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservationId") + private final String computeCapacityReservationId; + + /** + * The OCID of the Compute capacity reservation used by this node. + * + * @return the value + */ + public String getComputeCapacityReservationId() { + return computeCapacityReservationId; + } + /** The time the node was created, shown as an RFC 3339 formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; @@ -1134,6 +1169,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sshFingerprint=").append(String.valueOf(this.sshFingerprint)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", faultDomain=").append(String.valueOf(this.faultDomain)); + sb.append(", computeCapacityReservationId=") + .append(String.valueOf(this.computeCapacityReservationId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", ocpus=").append(String.valueOf(this.ocpus)); @@ -1177,6 +1214,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sshFingerprint, other.sshFingerprint) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals(this.faultDomain, other.faultDomain) + && java.util.Objects.equals( + this.computeCapacityReservationId, other.computeCapacityReservationId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.ocpus, other.ocpus) @@ -1225,6 +1264,11 @@ public int hashCode() { ? 43 : this.availabilityDomain.hashCode()); result = (result * PRIME) + (this.faultDomain == null ? 43 : this.faultDomain.hashCode()); + result = + (result * PRIME) + + (this.computeCapacityReservationId == null + ? 43 + : this.computeCapacityReservationId.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.ocpus == null ? 43 : this.ocpus.hashCode()); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationConfigurationDetails.java new file mode 100644 index 00000000000..fe73c7b5a22 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationConfigurationDetails.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a BDS capacity reservation 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 = UpdateBdsCapacityReservationConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateBdsCapacityReservationConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"bdsCapacityReservationId", "displayName"}) + public UpdateBdsCapacityReservationConfigurationDetails( + String bdsCapacityReservationId, String displayName) { + super(); + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.displayName = displayName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the BDS capacity reservation to associate with the BDS cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + * + * @param bdsCapacityReservationId the value to set + * @return this builder + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.__explicitlySet__.add("bdsCapacityReservationId"); + return this; + } + /** A user-friendly name for the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the BDS capacity reservation configuration. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateBdsCapacityReservationConfigurationDetails build() { + UpdateBdsCapacityReservationConfigurationDetails model = + new UpdateBdsCapacityReservationConfigurationDetails( + this.bdsCapacityReservationId, this.displayName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateBdsCapacityReservationConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("bdsCapacityReservationId")) { + this.bdsCapacityReservationId(model.getBdsCapacityReservationId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the BDS capacity reservation to associate with the BDS cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private final String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + * + * @return the value + */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + + /** A user-friendly name for the BDS capacity reservation configuration. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the BDS capacity reservation configuration. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + @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("UpdateBdsCapacityReservationConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + 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 UpdateBdsCapacityReservationConfigurationDetails)) { + return false; + } + + UpdateBdsCapacityReservationConfigurationDetails other = + (UpdateBdsCapacityReservationConfigurationDetails) o; + return java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals(this.displayName, other.displayName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationDetails.java new file mode 100644 index 00000000000..e4b4893041a --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationDetails.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a BDS capacity reservation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are 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 = UpdateBdsCapacityReservationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateBdsCapacityReservationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "computeCapacityReservations", + "freeformTags", + "definedTags" + }) + public UpdateBdsCapacityReservationDetails( + String displayName, + ComputeCapacityReservations computeCapacityReservations, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.computeCapacityReservations = computeCapacityReservations; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A user-friendly name for the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private ComputeCapacityReservations computeCapacityReservations; + + public Builder computeCapacityReservations( + ComputeCapacityReservations computeCapacityReservations) { + this.computeCapacityReservations = computeCapacityReservations; + this.__explicitlySet__.add("computeCapacityReservations"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists + * for cross-compatibility only. For example, {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists + * for cross-compatibility only. 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 UpdateBdsCapacityReservationDetails build() { + UpdateBdsCapacityReservationDetails model = + new UpdateBdsCapacityReservationDetails( + this.displayName, + this.computeCapacityReservations, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateBdsCapacityReservationDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("computeCapacityReservations")) { + this.computeCapacityReservations(model.getComputeCapacityReservations()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A user-friendly name for the BDS capacity reservation. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private final ComputeCapacityReservations computeCapacityReservations; + + public ComputeCapacityReservations getComputeCapacityReservations() { + return computeCapacityReservations; + } + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for + * cross-compatibility only. For example, {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for + * cross-compatibility only. 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("UpdateBdsCapacityReservationDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", computeCapacityReservations=") + .append(String.valueOf(this.computeCapacityReservations)); + 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 UpdateBdsCapacityReservationDetails)) { + return false; + } + + UpdateBdsCapacityReservationDetails other = (UpdateBdsCapacityReservationDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.computeCapacityReservations, other.computeCapacityReservations) + && 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.computeCapacityReservations == null + ? 43 + : this.computeCapacityReservations.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-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateBdsCapacityReservationConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateBdsCapacityReservationConfigurationRequest.java new file mode 100644 index 00000000000..742f578a33f --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateBdsCapacityReservationConfigurationRequest.java @@ -0,0 +1,333 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ActivateBdsCapacityReservationConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ActivateBdsCapacityReservationConfigurationRequest + 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 BDS capacity reservation configuration. */ + private String bdsCapacityReservationConfigurationId; + + /** The OCID of the BDS capacity reservation configuration. */ + public String getBdsCapacityReservationConfigurationId() { + return bdsCapacityReservationConfigurationId; + } + /** 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ActivateBdsCapacityReservationConfigurationRequest, 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 BDS capacity reservation configuration. */ + private String bdsCapacityReservationConfigurationId = null; + + /** + * The OCID of the BDS capacity reservation configuration. + * + * @param bdsCapacityReservationConfigurationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationConfigurationId( + String bdsCapacityReservationConfigurationId) { + this.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + 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(ActivateBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + bdsCapacityReservationConfigurationId(o.getBdsCapacityReservationConfigurationId()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ActivateBdsCapacityReservationConfigurationRequest 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 ActivateBdsCapacityReservationConfigurationRequest + */ + public ActivateBdsCapacityReservationConfigurationRequest build() { + ActivateBdsCapacityReservationConfigurationRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ActivateBdsCapacityReservationConfigurationRequest 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 ActivateBdsCapacityReservationConfigurationRequest + */ + public ActivateBdsCapacityReservationConfigurationRequest buildWithoutInvocationCallback() { + ActivateBdsCapacityReservationConfigurationRequest request = + new ActivateBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new ActivateBdsCapacityReservationConfigurationRequest(bdsInstanceId, + // bdsCapacityReservationConfigurationId, 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) + .bdsCapacityReservationConfigurationId(bdsCapacityReservationConfigurationId) + .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(",bdsCapacityReservationConfigurationId=") + .append(String.valueOf(this.bdsCapacityReservationConfigurationId)); + 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 ActivateBdsCapacityReservationConfigurationRequest)) { + return false; + } + + ActivateBdsCapacityReservationConfigurationRequest other = + (ActivateBdsCapacityReservationConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurationId, + other.bdsCapacityReservationConfigurationId) + && 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.bdsCapacityReservationConfigurationId == null + ? 43 + : this.bdsCapacityReservationConfigurationId.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/ChangeBdsCapacityReservationCompartmentRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ChangeBdsCapacityReservationCompartmentRequest.java new file mode 100644 index 00000000000..6d6c8dacf17 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ChangeBdsCapacityReservationCompartmentRequest.java @@ -0,0 +1,372 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ChangeBdsCapacityReservationCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ChangeBdsCapacityReservationCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails> { + + /** The OCID of the BDS capacity reservation. */ + private String bdsCapacityReservationId; + + /** The OCID of the BDS capacity reservation. */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + /** Details for moving the BDS capacity reservation to a different compartment. */ + private com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails + changeBdsCapacityReservationCompartmentDetails; + + /** Details for moving the BDS capacity reservation to a different compartment. */ + public com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails + getChangeBdsCapacityReservationCompartmentDetails() { + return changeBdsCapacityReservationCompartmentDetails; + } + /** 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.ChangeBdsCapacityReservationCompartmentDetails getBody$() { + return changeBdsCapacityReservationCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeBdsCapacityReservationCompartmentRequest, + com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the BDS capacity reservation. */ + private String bdsCapacityReservationId = null; + + /** + * The OCID of the BDS capacity reservation. + * + * @param bdsCapacityReservationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + return this; + } + + /** Details for moving the BDS capacity reservation to a different compartment. */ + private com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails + changeBdsCapacityReservationCompartmentDetails = null; + + /** + * Details for moving the BDS capacity reservation to a different compartment. + * + * @param changeBdsCapacityReservationCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeBdsCapacityReservationCompartmentDetails( + com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails + changeBdsCapacityReservationCompartmentDetails) { + this.changeBdsCapacityReservationCompartmentDetails = + changeBdsCapacityReservationCompartmentDetails; + 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(ChangeBdsCapacityReservationCompartmentRequest o) { + bdsCapacityReservationId(o.getBdsCapacityReservationId()); + changeBdsCapacityReservationCompartmentDetails( + o.getChangeBdsCapacityReservationCompartmentDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeBdsCapacityReservationCompartmentRequest 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 ChangeBdsCapacityReservationCompartmentRequest + */ + public ChangeBdsCapacityReservationCompartmentRequest build() { + ChangeBdsCapacityReservationCompartmentRequest 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.ChangeBdsCapacityReservationCompartmentDetails body) { + changeBdsCapacityReservationCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeBdsCapacityReservationCompartmentRequest 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 ChangeBdsCapacityReservationCompartmentRequest + */ + public ChangeBdsCapacityReservationCompartmentRequest buildWithoutInvocationCallback() { + ChangeBdsCapacityReservationCompartmentRequest request = + new ChangeBdsCapacityReservationCompartmentRequest(); + request.bdsCapacityReservationId = bdsCapacityReservationId; + request.changeBdsCapacityReservationCompartmentDetails = + changeBdsCapacityReservationCompartmentDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeBdsCapacityReservationCompartmentRequest(bdsCapacityReservationId, + // changeBdsCapacityReservationCompartmentDetails, 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() + .bdsCapacityReservationId(bdsCapacityReservationId) + .changeBdsCapacityReservationCompartmentDetails( + changeBdsCapacityReservationCompartmentDetails) + .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(",bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(",changeBdsCapacityReservationCompartmentDetails=") + .append(String.valueOf(this.changeBdsCapacityReservationCompartmentDetails)); + 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 ChangeBdsCapacityReservationCompartmentRequest)) { + return false; + } + + ChangeBdsCapacityReservationCompartmentRequest other = + (ChangeBdsCapacityReservationCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals( + this.changeBdsCapacityReservationCompartmentDetails, + other.changeBdsCapacityReservationCompartmentDetails) + && 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.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = + (result * PRIME) + + (this.changeBdsCapacityReservationCompartmentDetails == null + ? 43 + : this.changeBdsCapacityReservationCompartmentDetails.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/CreateBdsCapacityReservationConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationConfigurationRequest.java new file mode 100644 index 00000000000..cfa6caf4548 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationConfigurationRequest.java @@ -0,0 +1,322 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * CreateBdsCapacityReservationConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateBdsCapacityReservationConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** Details for creating the BDS capacity reservation configuration. */ + private com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails + createBdsCapacityReservationConfigurationDetails; + + /** Details for creating the BDS capacity reservation configuration. */ + public com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails + getCreateBdsCapacityReservationConfigurationDetails() { + return createBdsCapacityReservationConfigurationDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails getBody$() { + return createBdsCapacityReservationConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateBdsCapacityReservationConfigurationRequest, + com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails> { + 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 the BDS capacity reservation configuration. */ + private com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails + createBdsCapacityReservationConfigurationDetails = null; + + /** + * Details for creating the BDS capacity reservation configuration. + * + * @param createBdsCapacityReservationConfigurationDetails the value to set + * @return this builder instance + */ + public Builder createBdsCapacityReservationConfigurationDetails( + com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails + createBdsCapacityReservationConfigurationDetails) { + this.createBdsCapacityReservationConfigurationDetails = + createBdsCapacityReservationConfigurationDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after + * 24 hours but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after + * 24 hours but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + createBdsCapacityReservationConfigurationDetails( + o.getCreateBdsCapacityReservationConfigurationDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateBdsCapacityReservationConfigurationRequest 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 CreateBdsCapacityReservationConfigurationRequest + */ + public CreateBdsCapacityReservationConfigurationRequest build() { + CreateBdsCapacityReservationConfigurationRequest 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.CreateBdsCapacityReservationConfigurationDetails body) { + createBdsCapacityReservationConfigurationDetails(body); + return this; + } + + /** + * Build the instance of CreateBdsCapacityReservationConfigurationRequest 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 CreateBdsCapacityReservationConfigurationRequest + */ + public CreateBdsCapacityReservationConfigurationRequest buildWithoutInvocationCallback() { + CreateBdsCapacityReservationConfigurationRequest request = + new CreateBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.createBdsCapacityReservationConfigurationDetails = + createBdsCapacityReservationConfigurationDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateBdsCapacityReservationConfigurationRequest(bdsInstanceId, + // createBdsCapacityReservationConfigurationDetails, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .bdsInstanceId(bdsInstanceId) + .createBdsCapacityReservationConfigurationDetails( + createBdsCapacityReservationConfigurationDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",createBdsCapacityReservationConfigurationDetails=") + .append(String.valueOf(this.createBdsCapacityReservationConfigurationDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBdsCapacityReservationConfigurationRequest)) { + return false; + } + + CreateBdsCapacityReservationConfigurationRequest other = + (CreateBdsCapacityReservationConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.createBdsCapacityReservationConfigurationDetails, + other.createBdsCapacityReservationConfigurationDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.createBdsCapacityReservationConfigurationDetails == null + ? 43 + : this.createBdsCapacityReservationConfigurationDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationRequest.java new file mode 100644 index 00000000000..2bdfb14e256 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationRequest.java @@ -0,0 +1,283 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * CreateBdsCapacityReservationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateBdsCapacityReservationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails> { + + /** Details for the new BDS capacity reservation. */ + private com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails + createBdsCapacityReservationDetails; + + /** Details for the new BDS capacity reservation. */ + public com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails + getCreateBdsCapacityReservationDetails() { + return createBdsCapacityReservationDetails; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails getBody$() { + return createBdsCapacityReservationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateBdsCapacityReservationRequest, + com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new BDS capacity reservation. */ + private com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails + createBdsCapacityReservationDetails = null; + + /** + * Details for the new BDS capacity reservation. + * + * @param createBdsCapacityReservationDetails the value to set + * @return this builder instance + */ + public Builder createBdsCapacityReservationDetails( + com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails + createBdsCapacityReservationDetails) { + this.createBdsCapacityReservationDetails = createBdsCapacityReservationDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after + * 24 hours but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after + * 24 hours but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateBdsCapacityReservationRequest o) { + createBdsCapacityReservationDetails(o.getCreateBdsCapacityReservationDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateBdsCapacityReservationRequest 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 CreateBdsCapacityReservationRequest + */ + public CreateBdsCapacityReservationRequest build() { + CreateBdsCapacityReservationRequest 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.CreateBdsCapacityReservationDetails body) { + createBdsCapacityReservationDetails(body); + return this; + } + + /** + * Build the instance of CreateBdsCapacityReservationRequest 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 CreateBdsCapacityReservationRequest + */ + public CreateBdsCapacityReservationRequest buildWithoutInvocationCallback() { + CreateBdsCapacityReservationRequest request = new CreateBdsCapacityReservationRequest(); + request.createBdsCapacityReservationDetails = createBdsCapacityReservationDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateBdsCapacityReservationRequest(createBdsCapacityReservationDetails, + // opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createBdsCapacityReservationDetails(createBdsCapacityReservationDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createBdsCapacityReservationDetails=") + .append(String.valueOf(this.createBdsCapacityReservationDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBdsCapacityReservationRequest)) { + return false; + } + + CreateBdsCapacityReservationRequest other = (CreateBdsCapacityReservationRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createBdsCapacityReservationDetails, + other.createBdsCapacityReservationDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createBdsCapacityReservationDetails == null + ? 43 + : this.createBdsCapacityReservationDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateBdsCapacityReservationConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateBdsCapacityReservationConfigurationRequest.java new file mode 100644 index 00000000000..5a701ee7846 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateBdsCapacityReservationConfigurationRequest.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * DeactivateBdsCapacityReservationConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeactivateBdsCapacityReservationConfigurationRequest + 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 BDS capacity reservation configuration. */ + private String bdsCapacityReservationConfigurationId; + + /** The OCID of the BDS capacity reservation configuration. */ + public String getBdsCapacityReservationConfigurationId() { + return bdsCapacityReservationConfigurationId; + } + /** 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeactivateBdsCapacityReservationConfigurationRequest, 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 BDS capacity reservation configuration. */ + private String bdsCapacityReservationConfigurationId = null; + + /** + * The OCID of the BDS capacity reservation configuration. + * + * @param bdsCapacityReservationConfigurationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationConfigurationId( + String bdsCapacityReservationConfigurationId) { + this.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + 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(DeactivateBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + bdsCapacityReservationConfigurationId(o.getBdsCapacityReservationConfigurationId()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeactivateBdsCapacityReservationConfigurationRequest 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 DeactivateBdsCapacityReservationConfigurationRequest + */ + public DeactivateBdsCapacityReservationConfigurationRequest build() { + DeactivateBdsCapacityReservationConfigurationRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeactivateBdsCapacityReservationConfigurationRequest 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 DeactivateBdsCapacityReservationConfigurationRequest + */ + public DeactivateBdsCapacityReservationConfigurationRequest + buildWithoutInvocationCallback() { + DeactivateBdsCapacityReservationConfigurationRequest request = + new DeactivateBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new DeactivateBdsCapacityReservationConfigurationRequest(bdsInstanceId, + // bdsCapacityReservationConfigurationId, 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) + .bdsCapacityReservationConfigurationId(bdsCapacityReservationConfigurationId) + .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(",bdsCapacityReservationConfigurationId=") + .append(String.valueOf(this.bdsCapacityReservationConfigurationId)); + 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 DeactivateBdsCapacityReservationConfigurationRequest)) { + return false; + } + + DeactivateBdsCapacityReservationConfigurationRequest other = + (DeactivateBdsCapacityReservationConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurationId, + other.bdsCapacityReservationConfigurationId) + && 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.bdsCapacityReservationConfigurationId == null + ? 43 + : this.bdsCapacityReservationConfigurationId.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/DeleteBdsCapacityReservationConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationConfigurationRequest.java new file mode 100644 index 00000000000..a743ed5b69e --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationConfigurationRequest.java @@ -0,0 +1,282 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * DeleteBdsCapacityReservationConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteBdsCapacityReservationConfigurationRequest + 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 BDS capacity reservation configuration. */ + private String bdsCapacityReservationConfigurationId; + + /** The OCID of the BDS capacity reservation configuration. */ + public String getBdsCapacityReservationConfigurationId() { + return bdsCapacityReservationConfigurationId; + } + /** + * 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< + DeleteBdsCapacityReservationConfigurationRequest, 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 BDS capacity reservation configuration. */ + private String bdsCapacityReservationConfigurationId = null; + + /** + * The OCID of the BDS capacity reservation configuration. + * + * @param bdsCapacityReservationConfigurationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationConfigurationId( + String bdsCapacityReservationConfigurationId) { + this.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + 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(DeleteBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + bdsCapacityReservationConfigurationId(o.getBdsCapacityReservationConfigurationId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteBdsCapacityReservationConfigurationRequest 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 DeleteBdsCapacityReservationConfigurationRequest + */ + public DeleteBdsCapacityReservationConfigurationRequest build() { + DeleteBdsCapacityReservationConfigurationRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteBdsCapacityReservationConfigurationRequest 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 DeleteBdsCapacityReservationConfigurationRequest + */ + public DeleteBdsCapacityReservationConfigurationRequest buildWithoutInvocationCallback() { + DeleteBdsCapacityReservationConfigurationRequest request = + new DeleteBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteBdsCapacityReservationConfigurationRequest(bdsInstanceId, + // bdsCapacityReservationConfigurationId, 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) + .bdsCapacityReservationConfigurationId(bdsCapacityReservationConfigurationId) + .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(",bdsCapacityReservationConfigurationId=") + .append(String.valueOf(this.bdsCapacityReservationConfigurationId)); + 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 DeleteBdsCapacityReservationConfigurationRequest)) { + return false; + } + + DeleteBdsCapacityReservationConfigurationRequest other = + (DeleteBdsCapacityReservationConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurationId, + other.bdsCapacityReservationConfigurationId) + && 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.bdsCapacityReservationConfigurationId == null + ? 43 + : this.bdsCapacityReservationConfigurationId.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/DeleteBdsCapacityReservationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationRequest.java new file mode 100644 index 00000000000..71f9b868e55 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationRequest.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * DeleteBdsCapacityReservationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteBdsCapacityReservationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the BDS capacity reservation. */ + private String bdsCapacityReservationId; + + /** The OCID of the BDS capacity reservation. */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + /** + * 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< + DeleteBdsCapacityReservationRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the BDS capacity reservation. */ + private String bdsCapacityReservationId = null; + + /** + * The OCID of the BDS capacity reservation. + * + * @param bdsCapacityReservationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + 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(DeleteBdsCapacityReservationRequest o) { + bdsCapacityReservationId(o.getBdsCapacityReservationId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteBdsCapacityReservationRequest 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 DeleteBdsCapacityReservationRequest + */ + public DeleteBdsCapacityReservationRequest build() { + DeleteBdsCapacityReservationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteBdsCapacityReservationRequest 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 DeleteBdsCapacityReservationRequest + */ + public DeleteBdsCapacityReservationRequest buildWithoutInvocationCallback() { + DeleteBdsCapacityReservationRequest request = new DeleteBdsCapacityReservationRequest(); + request.bdsCapacityReservationId = bdsCapacityReservationId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteBdsCapacityReservationRequest(bdsCapacityReservationId, 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() + .bdsCapacityReservationId(bdsCapacityReservationId) + .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(",bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + 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 DeleteBdsCapacityReservationRequest)) { + return false; + } + + DeleteBdsCapacityReservationRequest other = (DeleteBdsCapacityReservationRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && 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.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.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/GetBdsCapacityReservationConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationConfigurationRequest.java new file mode 100644 index 00000000000..03f275be511 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationConfigurationRequest.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * GetBdsCapacityReservationConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetBdsCapacityReservationConfigurationRequest + 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 BDS capacity reservation configuration. */ + private String bdsCapacityReservationConfigurationId; + + /** The OCID of the BDS capacity reservation configuration. */ + public String getBdsCapacityReservationConfigurationId() { + return bdsCapacityReservationConfigurationId; + } + /** 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< + GetBdsCapacityReservationConfigurationRequest, 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 BDS capacity reservation configuration. */ + private String bdsCapacityReservationConfigurationId = null; + + /** + * The OCID of the BDS capacity reservation configuration. + * + * @param bdsCapacityReservationConfigurationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationConfigurationId( + String bdsCapacityReservationConfigurationId) { + this.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + 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(GetBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + bdsCapacityReservationConfigurationId(o.getBdsCapacityReservationConfigurationId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetBdsCapacityReservationConfigurationRequest 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 GetBdsCapacityReservationConfigurationRequest + */ + public GetBdsCapacityReservationConfigurationRequest build() { + GetBdsCapacityReservationConfigurationRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetBdsCapacityReservationConfigurationRequest 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 GetBdsCapacityReservationConfigurationRequest + */ + public GetBdsCapacityReservationConfigurationRequest buildWithoutInvocationCallback() { + GetBdsCapacityReservationConfigurationRequest request = + new GetBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + request.opcRequestId = opcRequestId; + return request; + // new GetBdsCapacityReservationConfigurationRequest(bdsInstanceId, + // bdsCapacityReservationConfigurationId, 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) + .bdsCapacityReservationConfigurationId(bdsCapacityReservationConfigurationId) + .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(",bdsCapacityReservationConfigurationId=") + .append(String.valueOf(this.bdsCapacityReservationConfigurationId)); + 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 GetBdsCapacityReservationConfigurationRequest)) { + return false; + } + + GetBdsCapacityReservationConfigurationRequest other = + (GetBdsCapacityReservationConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurationId, + other.bdsCapacityReservationConfigurationId) + && 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.bdsCapacityReservationConfigurationId == null + ? 43 + : this.bdsCapacityReservationConfigurationId.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/GetBdsCapacityReservationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationRequest.java new file mode 100644 index 00000000000..6b5e3a3bf6e --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationRequest.java @@ -0,0 +1,200 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * GetBdsCapacityReservationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetBdsCapacityReservationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the BDS capacity reservation. */ + private String bdsCapacityReservationId; + + /** The OCID of the BDS capacity reservation. */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + /** 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< + GetBdsCapacityReservationRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the BDS capacity reservation. */ + private String bdsCapacityReservationId = null; + + /** + * The OCID of the BDS capacity reservation. + * + * @param bdsCapacityReservationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + 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(GetBdsCapacityReservationRequest o) { + bdsCapacityReservationId(o.getBdsCapacityReservationId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetBdsCapacityReservationRequest 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 GetBdsCapacityReservationRequest + */ + public GetBdsCapacityReservationRequest build() { + GetBdsCapacityReservationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetBdsCapacityReservationRequest 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 GetBdsCapacityReservationRequest + */ + public GetBdsCapacityReservationRequest buildWithoutInvocationCallback() { + GetBdsCapacityReservationRequest request = new GetBdsCapacityReservationRequest(); + request.bdsCapacityReservationId = bdsCapacityReservationId; + request.opcRequestId = opcRequestId; + return request; + // new GetBdsCapacityReservationRequest(bdsCapacityReservationId, 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() + .bdsCapacityReservationId(bdsCapacityReservationId) + .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(",bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + 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 GetBdsCapacityReservationRequest)) { + return false; + } + + GetBdsCapacityReservationRequest other = (GetBdsCapacityReservationRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.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/ListBdsCapacityReservationAssociatedConfigurationsRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationAssociatedConfigurationsRequest.java new file mode 100644 index 00000000000..c6210af9c12 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationAssociatedConfigurationsRequest.java @@ -0,0 +1,469 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListBdsCapacityReservationAssociatedConfigurationsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationAssociatedConfigurationsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the BDS capacity reservation. */ + private String bdsCapacityReservationId; + + /** The OCID of the BDS capacity reservation. */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + /** The OCID of the compartment. */ + private String compartmentId; + + /** The OCID of the compartment. */ + public String getCompartmentId() { + return compartmentId; + } + /** The lifecycle state of the BDS capacity reservation configuration. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState; + + /** The lifecycle state of the BDS capacity reservation configuration. */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * 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; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** The 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< + ListBdsCapacityReservationAssociatedConfigurationsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the BDS capacity reservation. */ + private String bdsCapacityReservationId = null; + + /** + * The OCID of the BDS capacity reservation. + * + * @param bdsCapacityReservationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + 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 lifecycle state of the BDS capacity reservation configuration. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState = null; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + 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; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The 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(ListBdsCapacityReservationAssociatedConfigurationsRequest o) { + bdsCapacityReservationId(o.getBdsCapacityReservationId()); + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBdsCapacityReservationAssociatedConfigurationsRequest 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 ListBdsCapacityReservationAssociatedConfigurationsRequest + */ + public ListBdsCapacityReservationAssociatedConfigurationsRequest build() { + ListBdsCapacityReservationAssociatedConfigurationsRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBdsCapacityReservationAssociatedConfigurationsRequest 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 ListBdsCapacityReservationAssociatedConfigurationsRequest + */ + public ListBdsCapacityReservationAssociatedConfigurationsRequest + buildWithoutInvocationCallback() { + ListBdsCapacityReservationAssociatedConfigurationsRequest request = + new ListBdsCapacityReservationAssociatedConfigurationsRequest(); + request.bdsCapacityReservationId = bdsCapacityReservationId; + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + return request; + // new + // ListBdsCapacityReservationAssociatedConfigurationsRequest(bdsCapacityReservationId, + // compartmentId, lifecycleState, page, limit, sortBy, sortOrder, displayName, + // 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() + .bdsCapacityReservationId(bdsCapacityReservationId) + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .displayName(displayName) + .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(",bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + 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(",displayName=").append(String.valueOf(this.displayName)); + 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 ListBdsCapacityReservationAssociatedConfigurationsRequest)) { + return false; + } + + ListBdsCapacityReservationAssociatedConfigurationsRequest other = + (ListBdsCapacityReservationAssociatedConfigurationsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && 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.displayName, other.displayName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.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.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.displayName == null ? 43 : this.displayName.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/ListBdsCapacityReservationConfigurationsRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationConfigurationsRequest.java new file mode 100644 index 00000000000..469b1a881af --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationConfigurationsRequest.java @@ -0,0 +1,433 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListBdsCapacityReservationConfigurationsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationConfigurationsRequest + 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 lifecycle state of the BDS capacity reservation configuration. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState; + + /** The lifecycle state of the BDS capacity reservation configuration. */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * 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; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** The 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< + ListBdsCapacityReservationConfigurationsRequest, 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 lifecycle state of the BDS capacity reservation configuration. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState = null; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + 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; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The 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(ListBdsCapacityReservationConfigurationsRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + lifecycleState(o.getLifecycleState()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBdsCapacityReservationConfigurationsRequest 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 ListBdsCapacityReservationConfigurationsRequest + */ + public ListBdsCapacityReservationConfigurationsRequest build() { + ListBdsCapacityReservationConfigurationsRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBdsCapacityReservationConfigurationsRequest 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 ListBdsCapacityReservationConfigurationsRequest + */ + public ListBdsCapacityReservationConfigurationsRequest buildWithoutInvocationCallback() { + ListBdsCapacityReservationConfigurationsRequest request = + new ListBdsCapacityReservationConfigurationsRequest(); + request.bdsInstanceId = bdsInstanceId; + request.lifecycleState = lifecycleState; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + return request; + // new ListBdsCapacityReservationConfigurationsRequest(bdsInstanceId, lifecycleState, + // page, limit, sortBy, sortOrder, displayName, 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) + .lifecycleState(lifecycleState) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .displayName(displayName) + .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(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + 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(",displayName=").append(String.valueOf(this.displayName)); + 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 ListBdsCapacityReservationConfigurationsRequest)) { + return false; + } + + ListBdsCapacityReservationConfigurationsRequest other = + (ListBdsCapacityReservationConfigurationsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && 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.displayName, other.displayName) + && 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.lifecycleState == null ? 43 : this.lifecycleState.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.displayName == null ? 43 : this.displayName.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/ListBdsCapacityReservationsRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationsRequest.java new file mode 100644 index 00000000000..d0966dda289 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationsRequest.java @@ -0,0 +1,425 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListBdsCapacityReservationsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the compartment. */ + private String compartmentId; + + /** The OCID of the compartment. */ + public String getCompartmentId() { + return compartmentId; + } + /** The lifecycle state of the BDS capacity reservation. */ + private com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState lifecycleState; + + /** The lifecycle state of the BDS capacity reservation. */ + public com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * 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; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** The 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< + ListBdsCapacityReservationsRequest, 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. */ + 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 lifecycle state of the BDS capacity reservation. */ + private com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState lifecycleState = + null; + + /** + * The lifecycle state of the BDS capacity reservation. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + 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; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The 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(ListBdsCapacityReservationsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBdsCapacityReservationsRequest 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 ListBdsCapacityReservationsRequest + */ + public ListBdsCapacityReservationsRequest build() { + ListBdsCapacityReservationsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBdsCapacityReservationsRequest 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 ListBdsCapacityReservationsRequest + */ + public ListBdsCapacityReservationsRequest buildWithoutInvocationCallback() { + ListBdsCapacityReservationsRequest request = new ListBdsCapacityReservationsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + return request; + // new ListBdsCapacityReservationsRequest(compartmentId, lifecycleState, page, limit, + // sortBy, sortOrder, displayName, 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) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .displayName(displayName) + .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(",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(",displayName=").append(String.valueOf(this.displayName)); + 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 ListBdsCapacityReservationsRequest)) { + return false; + } + + ListBdsCapacityReservationsRequest other = (ListBdsCapacityReservationsRequest) 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.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.displayName, other.displayName) + && 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.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.displayName == null ? 43 : this.displayName.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/UpdateBdsCapacityReservationConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationConfigurationRequest.java new file mode 100644 index 00000000000..75052888695 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationConfigurationRequest.java @@ -0,0 +1,404 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * UpdateBdsCapacityReservationConfigurationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateBdsCapacityReservationConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails> { + + /** The OCID of the cluster. */ + private String bdsInstanceId; + + /** The OCID of the cluster. */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** The OCID of the BDS capacity reservation configuration. */ + private String bdsCapacityReservationConfigurationId; + + /** The OCID of the BDS capacity reservation configuration. */ + public String getBdsCapacityReservationConfigurationId() { + return bdsCapacityReservationConfigurationId; + } + /** Details for updating the BDS capacity reservation configuration. */ + private com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails + updateBdsCapacityReservationConfigurationDetails; + + /** Details for updating the BDS capacity reservation configuration. */ + public com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails + getUpdateBdsCapacityReservationConfigurationDetails() { + return updateBdsCapacityReservationConfigurationDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails getBody$() { + return updateBdsCapacityReservationConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateBdsCapacityReservationConfigurationRequest, + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails> { + 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 BDS capacity reservation configuration. */ + private String bdsCapacityReservationConfigurationId = null; + + /** + * The OCID of the BDS capacity reservation configuration. + * + * @param bdsCapacityReservationConfigurationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationConfigurationId( + String bdsCapacityReservationConfigurationId) { + this.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + return this; + } + + /** Details for updating the BDS capacity reservation configuration. */ + private com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails + updateBdsCapacityReservationConfigurationDetails = null; + + /** + * Details for updating the BDS capacity reservation configuration. + * + * @param updateBdsCapacityReservationConfigurationDetails the value to set + * @return this builder instance + */ + public Builder updateBdsCapacityReservationConfigurationDetails( + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails + updateBdsCapacityReservationConfigurationDetails) { + this.updateBdsCapacityReservationConfigurationDetails = + updateBdsCapacityReservationConfigurationDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after + * 24 hours but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after + * 24 hours but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + bdsCapacityReservationConfigurationId(o.getBdsCapacityReservationConfigurationId()); + updateBdsCapacityReservationConfigurationDetails( + o.getUpdateBdsCapacityReservationConfigurationDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateBdsCapacityReservationConfigurationRequest 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 UpdateBdsCapacityReservationConfigurationRequest + */ + public UpdateBdsCapacityReservationConfigurationRequest build() { + UpdateBdsCapacityReservationConfigurationRequest 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.UpdateBdsCapacityReservationConfigurationDetails body) { + updateBdsCapacityReservationConfigurationDetails(body); + return this; + } + + /** + * Build the instance of UpdateBdsCapacityReservationConfigurationRequest 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 UpdateBdsCapacityReservationConfigurationRequest + */ + public UpdateBdsCapacityReservationConfigurationRequest buildWithoutInvocationCallback() { + UpdateBdsCapacityReservationConfigurationRequest request = + new UpdateBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + request.updateBdsCapacityReservationConfigurationDetails = + updateBdsCapacityReservationConfigurationDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new UpdateBdsCapacityReservationConfigurationRequest(bdsInstanceId, + // bdsCapacityReservationConfigurationId, + // updateBdsCapacityReservationConfigurationDetails, ifMatch, opcRequestId, + // opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .bdsInstanceId(bdsInstanceId) + .bdsCapacityReservationConfigurationId(bdsCapacityReservationConfigurationId) + .updateBdsCapacityReservationConfigurationDetails( + updateBdsCapacityReservationConfigurationDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",bdsCapacityReservationConfigurationId=") + .append(String.valueOf(this.bdsCapacityReservationConfigurationId)); + sb.append(",updateBdsCapacityReservationConfigurationDetails=") + .append(String.valueOf(this.updateBdsCapacityReservationConfigurationDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBdsCapacityReservationConfigurationRequest)) { + return false; + } + + UpdateBdsCapacityReservationConfigurationRequest other = + (UpdateBdsCapacityReservationConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurationId, + other.bdsCapacityReservationConfigurationId) + && java.util.Objects.equals( + this.updateBdsCapacityReservationConfigurationDetails, + other.updateBdsCapacityReservationConfigurationDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfigurationId == null + ? 43 + : this.bdsCapacityReservationConfigurationId.hashCode()); + result = + (result * PRIME) + + (this.updateBdsCapacityReservationConfigurationDetails == null + ? 43 + : this.updateBdsCapacityReservationConfigurationDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationRequest.java new file mode 100644 index 00000000000..268fc19a486 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationRequest.java @@ -0,0 +1,361 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * UpdateBdsCapacityReservationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateBdsCapacityReservationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails> { + + /** The OCID of the BDS capacity reservation. */ + private String bdsCapacityReservationId; + + /** The OCID of the BDS capacity reservation. */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + /** Details for updating the BDS capacity reservation. */ + private com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails + updateBdsCapacityReservationDetails; + + /** Details for updating the BDS capacity reservation. */ + public com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails + getUpdateBdsCapacityReservationDetails() { + return updateBdsCapacityReservationDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails getBody$() { + return updateBdsCapacityReservationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateBdsCapacityReservationRequest, + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the BDS capacity reservation. */ + private String bdsCapacityReservationId = null; + + /** + * The OCID of the BDS capacity reservation. + * + * @param bdsCapacityReservationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + return this; + } + + /** Details for updating the BDS capacity reservation. */ + private com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails + updateBdsCapacityReservationDetails = null; + + /** + * Details for updating the BDS capacity reservation. + * + * @param updateBdsCapacityReservationDetails the value to set + * @return this builder instance + */ + public Builder updateBdsCapacityReservationDetails( + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails + updateBdsCapacityReservationDetails) { + this.updateBdsCapacityReservationDetails = updateBdsCapacityReservationDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after + * 24 hours but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after + * 24 hours but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateBdsCapacityReservationRequest o) { + bdsCapacityReservationId(o.getBdsCapacityReservationId()); + updateBdsCapacityReservationDetails(o.getUpdateBdsCapacityReservationDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateBdsCapacityReservationRequest 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 UpdateBdsCapacityReservationRequest + */ + public UpdateBdsCapacityReservationRequest build() { + UpdateBdsCapacityReservationRequest 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.UpdateBdsCapacityReservationDetails body) { + updateBdsCapacityReservationDetails(body); + return this; + } + + /** + * Build the instance of UpdateBdsCapacityReservationRequest 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 UpdateBdsCapacityReservationRequest + */ + public UpdateBdsCapacityReservationRequest buildWithoutInvocationCallback() { + UpdateBdsCapacityReservationRequest request = new UpdateBdsCapacityReservationRequest(); + request.bdsCapacityReservationId = bdsCapacityReservationId; + request.updateBdsCapacityReservationDetails = updateBdsCapacityReservationDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new UpdateBdsCapacityReservationRequest(bdsCapacityReservationId, + // updateBdsCapacityReservationDetails, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .bdsCapacityReservationId(bdsCapacityReservationId) + .updateBdsCapacityReservationDetails(updateBdsCapacityReservationDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(",updateBdsCapacityReservationDetails=") + .append(String.valueOf(this.updateBdsCapacityReservationDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBdsCapacityReservationRequest)) { + return false; + } + + UpdateBdsCapacityReservationRequest other = (UpdateBdsCapacityReservationRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals( + this.updateBdsCapacityReservationDetails, + other.updateBdsCapacityReservationDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = + (result * PRIME) + + (this.updateBdsCapacityReservationDetails == null + ? 43 + : this.updateBdsCapacityReservationDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateBdsCapacityReservationConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateBdsCapacityReservationConfigurationResponse.java new file mode 100644 index 00000000000..28b9b371ab7 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateBdsCapacityReservationConfigurationResponse.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ActivateBdsCapacityReservationConfigurationResponse + 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 BdsCapacityReservationConfiguration} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned {@code BdsCapacityReservationConfiguration} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + getBdsCapacityReservationConfiguration() { + return bdsCapacityReservationConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "bdsCapacityReservationConfiguration" + }) + private ActivateBdsCapacityReservationConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ActivateBdsCapacityReservationConfigurationResponse> { + 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 BdsCapacityReservationConfiguration} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned {@code BdsCapacityReservationConfiguration} instance. + * + * @param bdsCapacityReservationConfiguration the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfiguration( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ActivateBdsCapacityReservationConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + bdsCapacityReservationConfiguration(o.getBdsCapacityReservationConfiguration()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ActivateBdsCapacityReservationConfigurationResponse build() { + return new ActivateBdsCapacityReservationConfigurationResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + bdsCapacityReservationConfiguration); + } + } + + /** + * 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(",bdsCapacityReservationConfiguration=") + .append(String.valueOf(bdsCapacityReservationConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateBdsCapacityReservationConfigurationResponse)) { + return false; + } + + ActivateBdsCapacityReservationConfigurationResponse other = + (ActivateBdsCapacityReservationConfigurationResponse) 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.bdsCapacityReservationConfiguration, + other.bdsCapacityReservationConfiguration); + } + + @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.bdsCapacityReservationConfiguration == null + ? 43 + : this.bdsCapacityReservationConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ChangeBdsCapacityReservationCompartmentResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ChangeBdsCapacityReservationCompartmentResponse.java new file mode 100644 index 00000000000..5c526bbcdc4 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ChangeBdsCapacityReservationCompartmentResponse.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ChangeBdsCapacityReservationCompartmentResponse + 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; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private ChangeBdsCapacityReservationCompartmentResponse( + 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< + ChangeBdsCapacityReservationCompartmentResponse> { + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeBdsCapacityReservationCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeBdsCapacityReservationCompartmentResponse build() { + return new ChangeBdsCapacityReservationCompartmentResponse( + __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 ChangeBdsCapacityReservationCompartmentResponse)) { + return false; + } + + ChangeBdsCapacityReservationCompartmentResponse other = + (ChangeBdsCapacityReservationCompartmentResponse) 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-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationConfigurationResponse.java new file mode 100644 index 00000000000..30c47f8c073 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationConfigurationResponse.java @@ -0,0 +1,342 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateBdsCapacityReservationConfigurationResponse + 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; + } + + /** The URI of the created resource. */ + private String location; + + /** + * The URI of the created resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The URI of the resource representation returned in the response body. */ + private String contentLocation; + + /** + * The URI of the resource representation returned in the response body. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code BdsCapacityReservationConfiguration} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned {@code BdsCapacityReservationConfiguration} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + getBdsCapacityReservationConfiguration() { + return bdsCapacityReservationConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId", + "location", + "contentLocation", + "etag", + "bdsCapacityReservationConfiguration" + }) + private CreateBdsCapacityReservationConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId, + String location, + String contentLocation, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateBdsCapacityReservationConfigurationResponse> { + 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; + } + + /** The URI of the created resource. */ + private String location; + + /** + * The URI of the created resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The URI of the resource representation returned in the response body. */ + private String contentLocation; + + /** + * The URI of the resource representation returned in the response body. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code BdsCapacityReservationConfiguration} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned {@code BdsCapacityReservationConfiguration} instance. + * + * @param bdsCapacityReservationConfiguration the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfiguration( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateBdsCapacityReservationConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + bdsCapacityReservationConfiguration(o.getBdsCapacityReservationConfiguration()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateBdsCapacityReservationConfigurationResponse build() { + return new CreateBdsCapacityReservationConfigurationResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcWorkRequestId, + location, + contentLocation, + etag, + bdsCapacityReservationConfiguration); + } + } + + /** + * 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(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",bdsCapacityReservationConfiguration=") + .append(String.valueOf(bdsCapacityReservationConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBdsCapacityReservationConfigurationResponse)) { + return false; + } + + CreateBdsCapacityReservationConfigurationResponse other = + (CreateBdsCapacityReservationConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.bdsCapacityReservationConfiguration, + other.bdsCapacityReservationConfiguration); + } + + @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()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfiguration == null + ? 43 + : this.bdsCapacityReservationConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationResponse.java new file mode 100644 index 00000000000..49257e0a2a9 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationResponse.java @@ -0,0 +1,333 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateBdsCapacityReservationResponse 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; + } + + /** The URI of the created resource. */ + private String location; + + /** + * The URI of the created resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** The URI of the resource representation returned in the response body. */ + private String contentLocation; + + /** + * The URI of the resource representation returned in the response body. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** The returned {@code BdsCapacityReservation} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned {@code BdsCapacityReservation} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservation getBdsCapacityReservation() { + return bdsCapacityReservation; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId", + "location", + "contentLocation", + "etag", + "bdsCapacityReservation" + }) + private CreateBdsCapacityReservationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId, + String location, + String contentLocation, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.bdsCapacityReservation = bdsCapacityReservation; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateBdsCapacityReservationResponse> { + 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; + } + + /** The URI of the created resource. */ + private String location; + + /** + * The URI of the created resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** The URI of the resource representation returned in the response body. */ + private String contentLocation; + + /** + * The URI of the resource representation returned in the response body. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** The returned {@code BdsCapacityReservation} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned {@code BdsCapacityReservation} instance. + * + * @param bdsCapacityReservation the value to set + * @return this builder + */ + public Builder bdsCapacityReservation( + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + this.bdsCapacityReservation = bdsCapacityReservation; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateBdsCapacityReservationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + bdsCapacityReservation(o.getBdsCapacityReservation()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateBdsCapacityReservationResponse build() { + return new CreateBdsCapacityReservationResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcWorkRequestId, + location, + contentLocation, + etag, + bdsCapacityReservation); + } + } + + /** + * 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(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",bdsCapacityReservation=").append(String.valueOf(bdsCapacityReservation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBdsCapacityReservationResponse)) { + return false; + } + + CreateBdsCapacityReservationResponse other = (CreateBdsCapacityReservationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.bdsCapacityReservation, other.bdsCapacityReservation); + } + + @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()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservation == null + ? 43 + : this.bdsCapacityReservation.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateBdsCapacityReservationConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateBdsCapacityReservationConfigurationResponse.java new file mode 100644 index 00000000000..6d7c0a71e63 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateBdsCapacityReservationConfigurationResponse.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 DeactivateBdsCapacityReservationConfigurationResponse + 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 BdsCapacityReservationConfiguration} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned {@code BdsCapacityReservationConfiguration} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + getBdsCapacityReservationConfiguration() { + return bdsCapacityReservationConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "bdsCapacityReservationConfiguration" + }) + private DeactivateBdsCapacityReservationConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeactivateBdsCapacityReservationConfigurationResponse> { + 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 BdsCapacityReservationConfiguration} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned {@code BdsCapacityReservationConfiguration} instance. + * + * @param bdsCapacityReservationConfiguration the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfiguration( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeactivateBdsCapacityReservationConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + bdsCapacityReservationConfiguration(o.getBdsCapacityReservationConfiguration()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeactivateBdsCapacityReservationConfigurationResponse build() { + return new DeactivateBdsCapacityReservationConfigurationResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + bdsCapacityReservationConfiguration); + } + } + + /** + * 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(",bdsCapacityReservationConfiguration=") + .append(String.valueOf(bdsCapacityReservationConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeactivateBdsCapacityReservationConfigurationResponse)) { + return false; + } + + DeactivateBdsCapacityReservationConfigurationResponse other = + (DeactivateBdsCapacityReservationConfigurationResponse) 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.bdsCapacityReservationConfiguration, + other.bdsCapacityReservationConfiguration); + } + + @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.bdsCapacityReservationConfiguration == null + ? 43 + : this.bdsCapacityReservationConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationConfigurationResponse.java new file mode 100644 index 00000000000..2bfa9735d2a --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationConfigurationResponse.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 DeleteBdsCapacityReservationConfigurationResponse + 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; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteBdsCapacityReservationConfigurationResponse( + 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< + DeleteBdsCapacityReservationConfigurationResponse> { + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteBdsCapacityReservationConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteBdsCapacityReservationConfigurationResponse build() { + return new DeleteBdsCapacityReservationConfigurationResponse( + __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 DeleteBdsCapacityReservationConfigurationResponse)) { + return false; + } + + DeleteBdsCapacityReservationConfigurationResponse other = + (DeleteBdsCapacityReservationConfigurationResponse) 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-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationResponse.java new file mode 100644 index 00000000000..e85302a3941 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationResponse.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 DeleteBdsCapacityReservationResponse 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; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteBdsCapacityReservationResponse( + 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< + DeleteBdsCapacityReservationResponse> { + 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteBdsCapacityReservationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteBdsCapacityReservationResponse build() { + return new DeleteBdsCapacityReservationResponse( + __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 DeleteBdsCapacityReservationResponse)) { + return false; + } + + DeleteBdsCapacityReservationResponse other = (DeleteBdsCapacityReservationResponse) 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-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationConfigurationResponse.java new file mode 100644 index 00000000000..715b3f1dfd9 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationConfigurationResponse.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GetBdsCapacityReservationConfigurationResponse + 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 BdsCapacityReservationConfiguration} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned {@code BdsCapacityReservationConfiguration} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + getBdsCapacityReservationConfiguration() { + return bdsCapacityReservationConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "bdsCapacityReservationConfiguration" + }) + private GetBdsCapacityReservationConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetBdsCapacityReservationConfigurationResponse> { + 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 BdsCapacityReservationConfiguration} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned {@code BdsCapacityReservationConfiguration} instance. + * + * @param bdsCapacityReservationConfiguration the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfiguration( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetBdsCapacityReservationConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + bdsCapacityReservationConfiguration(o.getBdsCapacityReservationConfiguration()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetBdsCapacityReservationConfigurationResponse build() { + return new GetBdsCapacityReservationConfigurationResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + bdsCapacityReservationConfiguration); + } + } + + /** + * 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(",bdsCapacityReservationConfiguration=") + .append(String.valueOf(bdsCapacityReservationConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBdsCapacityReservationConfigurationResponse)) { + return false; + } + + GetBdsCapacityReservationConfigurationResponse other = + (GetBdsCapacityReservationConfigurationResponse) 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.bdsCapacityReservationConfiguration, + other.bdsCapacityReservationConfiguration); + } + + @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.bdsCapacityReservationConfiguration == null + ? 43 + : this.bdsCapacityReservationConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationResponse.java new file mode 100644 index 00000000000..654ce10c25a --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GetBdsCapacityReservationResponse 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 BdsCapacityReservation} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned {@code BdsCapacityReservation} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservation getBdsCapacityReservation() { + return bdsCapacityReservation; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "bdsCapacityReservation" + }) + private GetBdsCapacityReservationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.bdsCapacityReservation = bdsCapacityReservation; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetBdsCapacityReservationResponse> { + 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 BdsCapacityReservation} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned {@code BdsCapacityReservation} instance. + * + * @param bdsCapacityReservation the value to set + * @return this builder + */ + public Builder bdsCapacityReservation( + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + this.bdsCapacityReservation = bdsCapacityReservation; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetBdsCapacityReservationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + bdsCapacityReservation(o.getBdsCapacityReservation()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetBdsCapacityReservationResponse build() { + return new GetBdsCapacityReservationResponse( + __httpStatusCode__, headers, opcRequestId, etag, bdsCapacityReservation); + } + } + + /** + * 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(",bdsCapacityReservation=").append(String.valueOf(bdsCapacityReservation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBdsCapacityReservationResponse)) { + return false; + } + + GetBdsCapacityReservationResponse other = (GetBdsCapacityReservationResponse) 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.bdsCapacityReservation, other.bdsCapacityReservation); + } + + @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.bdsCapacityReservation == null + ? 43 + : this.bdsCapacityReservation.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationAssociatedConfigurationsResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationAssociatedConfigurationsResponse.java new file mode 100644 index 00000000000..9db519092a9 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationAssociatedConfigurationsResponse.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListBdsCapacityReservationAssociatedConfigurationsResponse + 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; + } + + /** The returned {@code BdsCapacityReservationAssociatedConfigurationCollection} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection + bdsCapacityReservationAssociatedConfigurationCollection; + + /** + * The returned {@code BdsCapacityReservationAssociatedConfigurationCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection + getBdsCapacityReservationAssociatedConfigurationCollection() { + return bdsCapacityReservationAssociatedConfigurationCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "bdsCapacityReservationAssociatedConfigurationCollection" + }) + private ListBdsCapacityReservationAssociatedConfigurationsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection + bdsCapacityReservationAssociatedConfigurationCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.bdsCapacityReservationAssociatedConfigurationCollection = + bdsCapacityReservationAssociatedConfigurationCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListBdsCapacityReservationAssociatedConfigurationsResponse> { + 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; + } + + /** + * The returned {@code BdsCapacityReservationAssociatedConfigurationCollection} instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection + bdsCapacityReservationAssociatedConfigurationCollection; + + /** + * The returned {@code BdsCapacityReservationAssociatedConfigurationCollection} instance. + * + * @param bdsCapacityReservationAssociatedConfigurationCollection the value to set + * @return this builder + */ + public Builder bdsCapacityReservationAssociatedConfigurationCollection( + com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection + bdsCapacityReservationAssociatedConfigurationCollection) { + this.bdsCapacityReservationAssociatedConfigurationCollection = + bdsCapacityReservationAssociatedConfigurationCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListBdsCapacityReservationAssociatedConfigurationsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + bdsCapacityReservationAssociatedConfigurationCollection( + o.getBdsCapacityReservationAssociatedConfigurationCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListBdsCapacityReservationAssociatedConfigurationsResponse build() { + return new ListBdsCapacityReservationAssociatedConfigurationsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + bdsCapacityReservationAssociatedConfigurationCollection); + } + } + + /** + * 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(",bdsCapacityReservationAssociatedConfigurationCollection=") + .append(String.valueOf(bdsCapacityReservationAssociatedConfigurationCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBdsCapacityReservationAssociatedConfigurationsResponse)) { + return false; + } + + ListBdsCapacityReservationAssociatedConfigurationsResponse other = + (ListBdsCapacityReservationAssociatedConfigurationsResponse) 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.bdsCapacityReservationAssociatedConfigurationCollection, + other.bdsCapacityReservationAssociatedConfigurationCollection); + } + + @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.bdsCapacityReservationAssociatedConfigurationCollection == null + ? 43 + : this.bdsCapacityReservationAssociatedConfigurationCollection + .hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationConfigurationsResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationConfigurationsResponse.java new file mode 100644 index 00000000000..b8543ce3297 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationConfigurationsResponse.java @@ -0,0 +1,243 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListBdsCapacityReservationConfigurationsResponse + 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; + } + + /** The returned {@code BdsCapacityReservationConfigurationCollection} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + bdsCapacityReservationConfigurationCollection; + + /** + * The returned {@code BdsCapacityReservationConfigurationCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + getBdsCapacityReservationConfigurationCollection() { + return bdsCapacityReservationConfigurationCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "bdsCapacityReservationConfigurationCollection" + }) + private ListBdsCapacityReservationConfigurationsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + bdsCapacityReservationConfigurationCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.bdsCapacityReservationConfigurationCollection = + bdsCapacityReservationConfigurationCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListBdsCapacityReservationConfigurationsResponse> { + 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; + } + + /** The returned {@code BdsCapacityReservationConfigurationCollection} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + bdsCapacityReservationConfigurationCollection; + + /** + * The returned {@code BdsCapacityReservationConfigurationCollection} instance. + * + * @param bdsCapacityReservationConfigurationCollection the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfigurationCollection( + com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + bdsCapacityReservationConfigurationCollection) { + this.bdsCapacityReservationConfigurationCollection = + bdsCapacityReservationConfigurationCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListBdsCapacityReservationConfigurationsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + bdsCapacityReservationConfigurationCollection( + o.getBdsCapacityReservationConfigurationCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListBdsCapacityReservationConfigurationsResponse build() { + return new ListBdsCapacityReservationConfigurationsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + bdsCapacityReservationConfigurationCollection); + } + } + + /** + * 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(",bdsCapacityReservationConfigurationCollection=") + .append(String.valueOf(bdsCapacityReservationConfigurationCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBdsCapacityReservationConfigurationsResponse)) { + return false; + } + + ListBdsCapacityReservationConfigurationsResponse other = + (ListBdsCapacityReservationConfigurationsResponse) 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.bdsCapacityReservationConfigurationCollection, + other.bdsCapacityReservationConfigurationCollection); + } + + @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.bdsCapacityReservationConfigurationCollection == null + ? 43 + : this.bdsCapacityReservationConfigurationCollection.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationsResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationsResponse.java new file mode 100644 index 00000000000..3b39c0366f4 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationsResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 ListBdsCapacityReservationsResponse 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; + } + + /** The returned {@code BdsCapacityReservationCollection} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationCollection + bdsCapacityReservationCollection; + + /** + * The returned {@code BdsCapacityReservationCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationCollection + getBdsCapacityReservationCollection() { + return bdsCapacityReservationCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "bdsCapacityReservationCollection" + }) + private ListBdsCapacityReservationsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.bds.model.BdsCapacityReservationCollection + bdsCapacityReservationCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.bdsCapacityReservationCollection = bdsCapacityReservationCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListBdsCapacityReservationsResponse> { + 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; + } + + /** The returned {@code BdsCapacityReservationCollection} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationCollection + bdsCapacityReservationCollection; + + /** + * The returned {@code BdsCapacityReservationCollection} instance. + * + * @param bdsCapacityReservationCollection the value to set + * @return this builder + */ + public Builder bdsCapacityReservationCollection( + com.oracle.bmc.bds.model.BdsCapacityReservationCollection + bdsCapacityReservationCollection) { + this.bdsCapacityReservationCollection = bdsCapacityReservationCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListBdsCapacityReservationsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + bdsCapacityReservationCollection(o.getBdsCapacityReservationCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListBdsCapacityReservationsResponse build() { + return new ListBdsCapacityReservationsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + bdsCapacityReservationCollection); + } + } + + /** + * 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(",bdsCapacityReservationCollection=") + .append(String.valueOf(bdsCapacityReservationCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBdsCapacityReservationsResponse)) { + return false; + } + + ListBdsCapacityReservationsResponse other = (ListBdsCapacityReservationsResponse) 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.bdsCapacityReservationCollection, + other.bdsCapacityReservationCollection); + } + + @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.bdsCapacityReservationCollection == null + ? 43 + : this.bdsCapacityReservationCollection.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationConfigurationResponse.java new file mode 100644 index 00000000000..7e12f152270 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationConfigurationResponse.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 UpdateBdsCapacityReservationConfigurationResponse + 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 BdsCapacityReservationConfiguration} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned {@code BdsCapacityReservationConfiguration} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + getBdsCapacityReservationConfiguration() { + return bdsCapacityReservationConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "bdsCapacityReservationConfiguration" + }) + private UpdateBdsCapacityReservationConfigurationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateBdsCapacityReservationConfigurationResponse> { + 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 BdsCapacityReservationConfiguration} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned {@code BdsCapacityReservationConfiguration} instance. + * + * @param bdsCapacityReservationConfiguration the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfiguration( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateBdsCapacityReservationConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + bdsCapacityReservationConfiguration(o.getBdsCapacityReservationConfiguration()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateBdsCapacityReservationConfigurationResponse build() { + return new UpdateBdsCapacityReservationConfigurationResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + bdsCapacityReservationConfiguration); + } + } + + /** + * 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(",bdsCapacityReservationConfiguration=") + .append(String.valueOf(bdsCapacityReservationConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBdsCapacityReservationConfigurationResponse)) { + return false; + } + + UpdateBdsCapacityReservationConfigurationResponse other = + (UpdateBdsCapacityReservationConfigurationResponse) 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.bdsCapacityReservationConfiguration, + other.bdsCapacityReservationConfiguration); + } + + @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.bdsCapacityReservationConfiguration == null + ? 43 + : this.bdsCapacityReservationConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationResponse.java new file mode 100644 index 00000000000..d494d0ff93e --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationResponse.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 UpdateBdsCapacityReservationResponse 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 BdsCapacityReservation} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned {@code BdsCapacityReservation} instance. + * + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservation getBdsCapacityReservation() { + return bdsCapacityReservation; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "bdsCapacityReservation" + }) + private UpdateBdsCapacityReservationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.bdsCapacityReservation = bdsCapacityReservation; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateBdsCapacityReservationResponse> { + 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 BdsCapacityReservation} instance. */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned {@code BdsCapacityReservation} instance. + * + * @param bdsCapacityReservation the value to set + * @return this builder + */ + public Builder bdsCapacityReservation( + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + this.bdsCapacityReservation = bdsCapacityReservation; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateBdsCapacityReservationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + bdsCapacityReservation(o.getBdsCapacityReservation()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateBdsCapacityReservationResponse build() { + return new UpdateBdsCapacityReservationResponse( + __httpStatusCode__, headers, opcRequestId, etag, bdsCapacityReservation); + } + } + + /** + * 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(",bdsCapacityReservation=").append(String.valueOf(bdsCapacityReservation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBdsCapacityReservationResponse)) { + return false; + } + + UpdateBdsCapacityReservationResponse other = (UpdateBdsCapacityReservationResponse) 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.bdsCapacityReservation, other.bdsCapacityReservation); + } + + @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.bdsCapacityReservation == null + ? 43 + : this.bdsCapacityReservation.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 b4837cac23c..6b055262451 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 @@ -435,6 +435,136 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservation$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationSummary$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.BdsCapacityReservationSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.BdsCertificateConfiguration", @@ -677,6 +807,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.ChangeBdsInstanceCompartmentDetails", @@ -747,6 +891,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.ComputeCapacityReservations", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.ComputeCapacityReservations$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.ConfigLevelManageBdsCertificateDetails", @@ -789,6 +947,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.CreateBdsCertificateConfigurationDetails", @@ -2271,6 +2457,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.bds.model.UpdateBdsInstanceDetails", diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 99e21cc6683..5254318963f 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index c69ccfcc634..581ad5a330d 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.94.2 + 3.95.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,1129 +38,1129 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-dblm - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-distributeddatabase - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-wlms - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-addons-adk - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-multicloud - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-iot - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-psa - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-dif - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-batch - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-gdp - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-self - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-databasetoolsruntime - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-costad - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-datacc - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-ddfs - 3.94.2 + 3.95.0 false com.oracle.oci.sdk oci-java-sdk-distributeddatabasev26 - 3.94.2 + 3.95.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 72e00b1b469..3174932a63a 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 1b0395df79b..a6baa8c64b4 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 3d64b86aa07..fdededd4988 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 7df22146308..890e8b5ad26 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index ca190d6b722..a519f420d02 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index f43589a68f9..f63a0f75edb 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 53486415fa6..f8091114636 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index d0a615c24b9..51ff1fe1aa3 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index d43e0886bc6..146f158ecc0 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 29c25e4fc08..6d62649d660 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index fda620e6a94..3404c0adb18 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.94.2 + 3.95.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.94.2 + 3.95.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.94.2 + 3.95.0 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index f562296ddf0..dfc9033a84b 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.94.2 + 3.95.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.94.2 + 3.95.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.94.2 + 3.95.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index e38fe4ce80f..47905b80f00 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.94.2 + 3.95.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index cc237df0544..4f056528679 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.94.2 + 3.95.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 7bac3579702..ef29faa7b9b 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml @@ -87,12 +87,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.94.2 + 3.95.0 @@ -137,7 +137,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.2 + 3.95.0 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 7773f24557d..ff3b67c9a6f 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 46792158d6e..b7bf642c0cb 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 8ca8672f752..c4cd93a0a8e 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index bf27b684ef5..f80fc544985 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index b28f5b82cf1..65daf06abbe 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index b5abe5a2eee..813879bdf01 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.94.2 + 3.95.0 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVtapDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVtapDetails.java index 3f13b2e1055..0371049b5e7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVtapDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVtapDetails.java @@ -772,6 +772,7 @@ public enum SourceType implements com.oracle.bmc.http.internal.BmcEnum { DbSystem("DB_SYSTEM"), ExadataVmCluster("EXADATA_VM_CLUSTER"), AutonomousDataWarehouse("AUTONOMOUS_DATA_WAREHOUSE"), + NetworkFirewall("NETWORK_FIREWALL"), ; private final String value; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVtapDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVtapDetails.java index 5d178751b0b..b23143d6e5c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVtapDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVtapDetails.java @@ -829,6 +829,7 @@ public enum SourceType implements com.oracle.bmc.http.internal.BmcEnum { DbSystem("DB_SYSTEM"), ExadataVmCluster("EXADATA_VM_CLUSTER"), AutonomousDataWarehouse("AUTONOMOUS_DATA_WAREHOUSE"), + NetworkFirewall("NETWORK_FIREWALL"), ; private final String value; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java index 3f5788a8fac..6299784a7b1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java @@ -1092,6 +1092,7 @@ public enum SourceType implements com.oracle.bmc.http.internal.BmcEnum { DbSystem("DB_SYSTEM"), ExadataVmCluster("EXADATA_VM_CLUSTER"), AutonomousDataWarehouse("AUTONOMOUS_DATA_WAREHOUSE"), + NetworkFirewall("NETWORK_FIREWALL"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml index 3479dcaf7a4..2d99a60cad0 100644 --- a/bmc-costad/pom.xml +++ b/bmc-costad/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-costad @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index bcbfcb07116..ad3c6c7145f 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index bb98ed055eb..f264d4c7748 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.94.2 + 3.95.0 diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index b5dcff8c145..154ba3a8520 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 91fd81a5aa0..c8b2d57371d 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index cdd845605c1..6360f8e9a63 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml index 417313ee07d..6e9e8eaddae 100644 --- a/bmc-databasetoolsruntime/pom.xml +++ b/bmc-databasetoolsruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-databasetoolsruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 2bf54b62881..f701eb77a4a 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-datacc/pom.xml b/bmc-datacc/pom.xml index 7ce75153f40..92d933bd2a4 100644 --- a/bmc-datacc/pom.xml +++ b/bmc-datacc/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-datacc @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index ec2ca847663..dfd7e35dc3a 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 47e8fd9d83d..9a07c5d378e 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 40c39b32b26..bb0de2f4bb1 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 737685dd7ca..a24fe0b636c 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index fe0340f81c4..18d2a8c5128 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 3d8ed759c42..86a3163ba11 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index 2272e32fbe7..712793dcf12 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index dfd57d54a93..73f3bf8976b 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-ddfs/pom.xml b/bmc-ddfs/pom.xml index fb3f4a2f48c..57bf29b8f29 100644 --- a/bmc-ddfs/pom.xml +++ b/bmc-ddfs/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-ddfs @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index f6b231ef5fc..dcd2cbc8b57 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index 392eb850aab..88fd5f9b652 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index c3eb025177b..ac9ba62d59a 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index a30f1d9bab1..eb73d00caaa 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index 8a0207ae8b8..a3d943dba03 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 89e095e23c9..d0a8b59d2dc 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index bf9795c0fa5..6a248f228c0 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-distributeddatabasev26/pom.xml b/bmc-distributeddatabasev26/pom.xml index a5a3b5325a6..f36ef5944f4 100644 --- a/bmc-distributeddatabasev26/pom.xml +++ b/bmc-distributeddatabasev26/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-distributeddatabasev26 @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 848998e62d6..6ddb0710f62 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.94.2 + 3.95.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index cc7b3984207..fa410635f67 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index c79474979fa..cff63f2be8b 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index ff806ac2290..cfe98545e55 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 26ea5d423eb..093d2d2abc8 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.94.2 + 3.95.0 com.fasterxml.jackson.core @@ -48,7 +48,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.2 + 3.95.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index f6435f5533d..0ab1c4a4025 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.94.2 + 3.95.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index ba6f90881f2..90456ed03cb 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index ba6088bd98b..44b8e6bc8f2 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.94.2 + 3.95.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.94.2 + 3.95.0 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 48a6426d519..b8fc493a16f 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index 8473800efc9..b3c8e7df5aa 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index b70b210bc87..7ed3080524e 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index f3732c6824e..7edd2d7a4da 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.94.2 + 3.95.0 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index e12872335d3..ab64f1bf1bf 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 0ef8d284e97..0996f7133d0 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index ffbd5fad8d2..796917be404 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index de31322bf2e..97d116b02be 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java index 2585b923c1c..f2806c11d92 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java @@ -139,8 +139,7 @@ public Builder unitCount(Integer unitCount) { return this; } /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. + * The shape of dedicated unit in this AI cluster. * *

Allowed values are: - LARGE_COHERE - LARGE_COHERE_V2 - SMALL_COHERE - SMALL_COHERE_V2 * - SMALL_COHERE_4 - EMBED_COHERE - LLAMA2_70 - LARGE_GENERIC - LARGE_COHERE_V2_2 - @@ -153,17 +152,21 @@ public Builder unitCount(Integer unitCount) { *

The following shapes can only be used to deploy imported models: - A10_X1, A10_X2, * A10_X4 - A100_40G_X1, A100_40G_X2, A100_40G_X4, A100_40G_X8 - A100_80G_X1, A100_80G_X2, * A100_80G_X4, A100_80G_X8 - H100_X1, H100_X2, H100_X4, H100_X8 - H100_X16, H100_X32 - - * H200_X1, H200_X2, H200_X4, H200_X8 - OAI_A10_X2 - OAI_H100_X1 - OAI_H100_X2 - OAI_H200_X1 - * - OAI_A100_80G_X1 - OAI_A100_80G_X2 - OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 - - * B200_X2 - B200_X4 - B200_X8 - OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - - * SB_B200_X1 - COHERE_B300_X1 - META_B300_X1 - OAI_B300_X1 + * H200_X1, H200_X2, H200_X4, H200_X8 - B200_X16, B200_X32 - B300_X1, B300_X2, B300_X4, + * B300_X8, B300_X16, B300_X32 - L40S_X1, L40S_X2, L40S_X4, L40S_X8, L40S_X16, L40S_X32 - + * MI300X_X1, MI300X_X2, MI300X_X4, MI300X_X8, MI300X_X16, MI300X_X32 - OAI_A10_X2 - + * OAI_H100_X1 - OAI_H100_X2 - OAI_H200_X1 - OAI_A100_80G_X1 - OAI_A100_80G_X2 - + * OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 - B200_X2 - B200_X4 - B200_X8 - OAI_B200_X1 - + * OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - SB_B200_X1 - B200_X16 - B200_X32 - B300_X1 - + * B300_X2 - B300_X4 - B300_X8 - B300_X16 - B300_X32 - L40S_X1 - L40S_X2 - L40S_X4 - L40S_X8 + * - L40S_X16 - L40S_X32 - MI300X_X1 - MI300X_X2 - MI300X_X4 - MI300X_X8 - MI300X_X16 - + * MI300X_X32 - COHERE_B300_X1 - META_B300_X1 - OAI_B300_X1 */ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private DedicatedAiCluster.UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. + * The shape of dedicated unit in this AI cluster. * *

Allowed values are: - LARGE_COHERE - LARGE_COHERE_V2 - SMALL_COHERE - SMALL_COHERE_V2 * - SMALL_COHERE_4 - EMBED_COHERE - LLAMA2_70 - LARGE_GENERIC - LARGE_COHERE_V2_2 - @@ -176,10 +179,15 @@ public Builder unitCount(Integer unitCount) { *

The following shapes can only be used to deploy imported models: - A10_X1, A10_X2, * A10_X4 - A100_40G_X1, A100_40G_X2, A100_40G_X4, A100_40G_X8 - A100_80G_X1, A100_80G_X2, * A100_80G_X4, A100_80G_X8 - H100_X1, H100_X2, H100_X4, H100_X8 - H100_X16, H100_X32 - - * H200_X1, H200_X2, H200_X4, H200_X8 - OAI_A10_X2 - OAI_H100_X1 - OAI_H100_X2 - OAI_H200_X1 - * - OAI_A100_80G_X1 - OAI_A100_80G_X2 - OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 - - * B200_X2 - B200_X4 - B200_X8 - OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - - * SB_B200_X1 - COHERE_B300_X1 - META_B300_X1 - OAI_B300_X1 + * H200_X1, H200_X2, H200_X4, H200_X8 - B200_X16, B200_X32 - B300_X1, B300_X2, B300_X4, + * B300_X8, B300_X16, B300_X32 - L40S_X1, L40S_X2, L40S_X4, L40S_X8, L40S_X16, L40S_X32 - + * MI300X_X1, MI300X_X2, MI300X_X4, MI300X_X8, MI300X_X16, MI300X_X32 - OAI_A10_X2 - + * OAI_H100_X1 - OAI_H100_X2 - OAI_H200_X1 - OAI_A100_80G_X1 - OAI_A100_80G_X2 - + * OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 - B200_X2 - B200_X4 - B200_X8 - OAI_B200_X1 - + * OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - SB_B200_X1 - B200_X16 - B200_X32 - B300_X1 - + * B300_X2 - B300_X4 - B300_X8 - B300_X16 - B300_X32 - L40S_X1 - L40S_X2 - L40S_X4 - L40S_X8 + * - L40S_X16 - L40S_X32 - MI300X_X1 - MI300X_X2 - MI300X_X4 - MI300X_X8 - MI300X_X16 - + * MI300X_X32 - COHERE_B300_X1 - META_B300_X1 - OAI_B300_X1 * * @param unitShape the value to set * @return this builder @@ -374,8 +382,7 @@ public Integer getUnitCount() { } /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. + * The shape of dedicated unit in this AI cluster. * *

Allowed values are: - LARGE_COHERE - LARGE_COHERE_V2 - SMALL_COHERE - SMALL_COHERE_V2 - * SMALL_COHERE_4 - EMBED_COHERE - LLAMA2_70 - LARGE_GENERIC - LARGE_COHERE_V2_2 - @@ -388,17 +395,21 @@ public Integer getUnitCount() { *

The following shapes can only be used to deploy imported models: - A10_X1, A10_X2, A10_X4 * - A100_40G_X1, A100_40G_X2, A100_40G_X4, A100_40G_X8 - A100_80G_X1, A100_80G_X2, A100_80G_X4, * A100_80G_X8 - H100_X1, H100_X2, H100_X4, H100_X8 - H100_X16, H100_X32 - H200_X1, H200_X2, - * H200_X4, H200_X8 - OAI_A10_X2 - OAI_H100_X1 - OAI_H100_X2 - OAI_H200_X1 - OAI_A100_80G_X1 - - * OAI_A100_80G_X2 - OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 - B200_X2 - B200_X4 - B200_X8 - - * OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - SB_B200_X1 - COHERE_B300_X1 - - * META_B300_X1 - OAI_B300_X1 + * H200_X4, H200_X8 - B200_X16, B200_X32 - B300_X1, B300_X2, B300_X4, B300_X8, B300_X16, + * B300_X32 - L40S_X1, L40S_X2, L40S_X4, L40S_X8, L40S_X16, L40S_X32 - MI300X_X1, MI300X_X2, + * MI300X_X4, MI300X_X8, MI300X_X16, MI300X_X32 - OAI_A10_X2 - OAI_H100_X1 - OAI_H100_X2 - + * OAI_H200_X1 - OAI_A100_80G_X1 - OAI_A100_80G_X2 - OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 + * - B200_X2 - B200_X4 - B200_X8 - OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - + * SB_B200_X1 - B200_X16 - B200_X32 - B300_X1 - B300_X2 - B300_X4 - B300_X8 - B300_X16 - + * B300_X32 - L40S_X1 - L40S_X2 - L40S_X4 - L40S_X8 - L40S_X16 - L40S_X32 - MI300X_X1 - + * MI300X_X2 - MI300X_X4 - MI300X_X8 - MI300X_X16 - MI300X_X32 - COHERE_B300_X1 - META_B300_X1 - + * OAI_B300_X1 */ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private final DedicatedAiCluster.UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. + * The shape of dedicated unit in this AI cluster. * *

Allowed values are: - LARGE_COHERE - LARGE_COHERE_V2 - SMALL_COHERE - SMALL_COHERE_V2 - * SMALL_COHERE_4 - EMBED_COHERE - LLAMA2_70 - LARGE_GENERIC - LARGE_COHERE_V2_2 - @@ -411,10 +422,15 @@ public Integer getUnitCount() { *

The following shapes can only be used to deploy imported models: - A10_X1, A10_X2, A10_X4 * - A100_40G_X1, A100_40G_X2, A100_40G_X4, A100_40G_X8 - A100_80G_X1, A100_80G_X2, A100_80G_X4, * A100_80G_X8 - H100_X1, H100_X2, H100_X4, H100_X8 - H100_X16, H100_X32 - H200_X1, H200_X2, - * H200_X4, H200_X8 - OAI_A10_X2 - OAI_H100_X1 - OAI_H100_X2 - OAI_H200_X1 - OAI_A100_80G_X1 - - * OAI_A100_80G_X2 - OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 - B200_X2 - B200_X4 - B200_X8 - - * OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - SB_B200_X1 - COHERE_B300_X1 - - * META_B300_X1 - OAI_B300_X1 + * H200_X4, H200_X8 - B200_X16, B200_X32 - B300_X1, B300_X2, B300_X4, B300_X8, B300_X16, + * B300_X32 - L40S_X1, L40S_X2, L40S_X4, L40S_X8, L40S_X16, L40S_X32 - MI300X_X1, MI300X_X2, + * MI300X_X4, MI300X_X8, MI300X_X16, MI300X_X32 - OAI_A10_X2 - OAI_H100_X1 - OAI_H100_X2 - + * OAI_H200_X1 - OAI_A100_80G_X1 - OAI_A100_80G_X2 - OAI_A100_40G_X1 - OAI_A100_40G_X4 - B200_X1 + * - B200_X2 - B200_X4 - B200_X8 - OAI_B200_X1 - OAI_B200_X2 - OAI_B200_X4 - OAI_B200_X8 - + * SB_B200_X1 - B200_X16 - B200_X32 - B300_X1 - B300_X2 - B300_X4 - B300_X8 - B300_X16 - + * B300_X32 - L40S_X1 - L40S_X2 - L40S_X4 - L40S_X8 - L40S_X16 - L40S_X32 - MI300X_X1 - + * MI300X_X2 - MI300X_X4 - MI300X_X8 - MI300X_X16 - MI300X_X32 - COHERE_B300_X1 - META_B300_X1 - + * OAI_B300_X1 * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java index ba308118476..a3ad06f39e0 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java @@ -125,16 +125,12 @@ public Builder networkingConfig(NetworkingConfig networkingConfig) { this.__explicitlySet__.add("networkingConfig"); return this; } - /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. + * A list of managed storage configurations for the application. * * @param storageConfigs the value to set * @return this builder @@ -336,16 +332,12 @@ public NetworkingConfig getNetworkingConfig() { return networkingConfig; } - /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. + * A list of managed storage configurations for the application. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java index 4ac9fb78c5a..3df98e34034 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java @@ -137,16 +137,12 @@ public Builder networkingConfig(NetworkingConfig networkingConfig) { this.__explicitlySet__.add("networkingConfig"); return this; } - /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. + * A list of managed storage configurations for the application. * * @param storageConfigs the value to set * @return this builder @@ -359,16 +355,12 @@ public NetworkingConfig getNetworkingConfig() { return networkingConfig; } - /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. + * A list of managed storage configurations for the application. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java index 177a5893142..99016b20045 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java @@ -125,16 +125,12 @@ public Builder networkingConfig(NetworkingConfig networkingConfig) { this.__explicitlySet__.add("networkingConfig"); return this; } - /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. + * A list of managed storage configurations for the application. * * @param storageConfigs the value to set * @return this builder @@ -336,16 +332,12 @@ public NetworkingConfig getNetworkingConfig() { return networkingConfig; } - /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. Defines a list of - * service-managed storage back-ends. + * A list of managed storage configurations for the application. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationStorageDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationStorageDetails.java index beaa70de32a..b9691b9a33e 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationStorageDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationStorageDetails.java @@ -94,12 +94,12 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** type like Cache, Postgresql and ADB. */ + /** The managed storage type for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private HostedApplicationStorage.StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * * @param storageType the value to set * @return this builder @@ -251,12 +251,12 @@ public String getCompartmentId() { return compartmentId; } - /** type like Cache, Postgresql and ADB. */ + /** The managed storage type for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private final HostedApplicationStorage.StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSemanticStoreDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSemanticStoreDetails.java index 0480c68cab0..7893959ecbe 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSemanticStoreDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSemanticStoreDetails.java @@ -27,6 +27,8 @@ public final class CreateSemanticStoreDetails "description", "compartmentId", "displayName", + "isUserDefinedSemanticsEnabled", + "modelSelection", "dataSource", "refreshSchedule", "schemas", @@ -37,6 +39,8 @@ public CreateSemanticStoreDetails( String description, String compartmentId, String displayName, + Boolean isUserDefinedSemanticsEnabled, + SemanticStoreModelSelection modelSelection, CreateDataSourceDetails dataSource, RefreshScheduleDetails refreshSchedule, CreateSchemasDetails schemas, @@ -46,6 +50,8 @@ public CreateSemanticStoreDetails( this.description = description; this.compartmentId = compartmentId; this.displayName = displayName; + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; + this.modelSelection = modelSelection; this.dataSource = dataSource; this.refreshSchedule = refreshSchedule; this.schemas = schemas; @@ -106,6 +112,38 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and + * synonyms, during semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. When omitted, this + * value defaults to true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and + * synonyms, during semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. When omitted, this + * value defaults to true. + * + * @param isUserDefinedSemanticsEnabled the value to set + * @return this builder + */ + public Builder isUserDefinedSemanticsEnabled(Boolean isUserDefinedSemanticsEnabled) { + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; + this.__explicitlySet__.add("isUserDefinedSemanticsEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private SemanticStoreModelSelection modelSelection; + + public Builder modelSelection(SemanticStoreModelSelection modelSelection) { + this.modelSelection = modelSelection; + this.__explicitlySet__.add("modelSelection"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("dataSource") private CreateDataSourceDetails dataSource; @@ -194,6 +232,8 @@ public CreateSemanticStoreDetails build() { this.description, this.compartmentId, this.displayName, + this.isUserDefinedSemanticsEnabled, + this.modelSelection, this.dataSource, this.refreshSchedule, this.schemas, @@ -216,6 +256,12 @@ public Builder copy(CreateSemanticStoreDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } + if (model.wasPropertyExplicitlySet("isUserDefinedSemanticsEnabled")) { + this.isUserDefinedSemanticsEnabled(model.getIsUserDefinedSemanticsEnabled()); + } + if (model.wasPropertyExplicitlySet("modelSelection")) { + this.modelSelection(model.getModelSelection()); + } if (model.wasPropertyExplicitlySet("dataSource")) { this.dataSource(model.getDataSource()); } @@ -289,6 +335,34 @@ public String getDisplayName() { return displayName; } + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, + * during semantic-store enrichment. When true, enrichment uses both metadata and user-defined + * semantics. When false, enrichment uses metadata only. When omitted, this value defaults to + * true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private final Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, + * during semantic-store enrichment. When true, enrichment uses both metadata and user-defined + * semantics. When false, enrichment uses metadata only. When omitted, this value defaults to + * true. + * + * @return the value + */ + public Boolean getIsUserDefinedSemanticsEnabled() { + return isUserDefinedSemanticsEnabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private final SemanticStoreModelSelection modelSelection; + + public SemanticStoreModelSelection getModelSelection() { + return modelSelection; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataSource") private final CreateDataSourceDetails dataSource; @@ -374,6 +448,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", isUserDefinedSemanticsEnabled=") + .append(String.valueOf(this.isUserDefinedSemanticsEnabled)); + sb.append(", modelSelection=").append(String.valueOf(this.modelSelection)); sb.append(", dataSource=").append(String.valueOf(this.dataSource)); sb.append(", refreshSchedule=").append(String.valueOf(this.refreshSchedule)); sb.append(", schemas=").append(String.valueOf(this.schemas)); @@ -396,6 +473,9 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.isUserDefinedSemanticsEnabled, other.isUserDefinedSemanticsEnabled) + && java.util.Objects.equals(this.modelSelection, other.modelSelection) && java.util.Objects.equals(this.dataSource, other.dataSource) && java.util.Objects.equals(this.refreshSchedule, other.refreshSchedule) && java.util.Objects.equals(this.schemas, other.schemas) @@ -413,6 +493,14 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.isUserDefinedSemanticsEnabled == null + ? 43 + : this.isUserDefinedSemanticsEnabled.hashCode()); + result = + (result * PRIME) + + (this.modelSelection == null ? 43 : this.modelSelection.hashCode()); result = (result * PRIME) + (this.dataSource == null ? 43 : this.dataSource.hashCode()); result = (result * PRIME) diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CustomSemanticStoreModelSelection.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CustomSemanticStoreModelSelection.java new file mode 100644 index 00000000000..3fde987bff0 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CustomSemanticStoreModelSelection.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * Uses a customer-selected generative AI model for SemanticStore enrichment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CustomSemanticStoreModelSelection.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "modelSelectionType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CustomSemanticStoreModelSelection extends SemanticStoreModelSelection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The generative AI modelId to use for SemanticStore enrichment. You can use the ListModels + * API to list the available models. + * https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + */ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * The generative AI modelId to use for SemanticStore enrichment. You can use the ListModels + * API to list the available models. + * https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * + * @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 CustomSemanticStoreModelSelection build() { + CustomSemanticStoreModelSelection model = + new CustomSemanticStoreModelSelection(this.modelId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CustomSemanticStoreModelSelection model) { + 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 CustomSemanticStoreModelSelection(String modelId) { + super(); + this.modelId = modelId; + } + + /** + * The generative AI modelId to use for SemanticStore enrichment. You can use the ListModels API + * to list the available models. + * https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + */ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * The generative AI modelId to use for SemanticStore enrichment. You can use the ListModels API + * to list the available models. + * https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * + * @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("CustomSemanticStoreModelSelection("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + 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 CustomSemanticStoreModelSelection)) { + return false; + } + + CustomSemanticStoreModelSelection other = (CustomSemanticStoreModelSelection) o; + return 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.modelId == null ? 43 : this.modelId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java index 6d6a8fb7c8e..74fe9184e91 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java @@ -254,16 +254,12 @@ public Builder unitCount(Integer unitCount) { this.__explicitlySet__.add("unitCount"); return this; } - /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. - */ + /** The shape of dedicated unit in this AI cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. + * The shape of dedicated unit in this AI cluster. * * @param unitShape the value to set * @return this builder @@ -693,10 +689,7 @@ public Integer getUnitCount() { return unitCount; } - /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. - */ + /** The shape of dedicated unit in this AI cluster. */ public enum UnitShape implements com.oracle.bmc.http.internal.BmcEnum { LargeCohere("LARGE_COHERE"), LargeCohereV2("LARGE_COHERE_V2"), @@ -801,6 +794,26 @@ public enum UnitShape implements com.oracle.bmc.http.internal.BmcEnum { OaiB200X4("OAI_B200_X4"), OaiB200X8("OAI_B200_X8"), SbB200X1("SB_B200_X1"), + B200X16("B200_X16"), + B200X32("B200_X32"), + B300X1("B300_X1"), + B300X2("B300_X2"), + B300X4("B300_X4"), + B300X8("B300_X8"), + B300X16("B300_X16"), + B300X32("B300_X32"), + L40SX1("L40S_X1"), + L40SX2("L40S_X2"), + L40SX4("L40S_X4"), + L40SX8("L40S_X8"), + L40SX16("L40S_X16"), + L40SX32("L40S_X32"), + Mi300XX1("MI300X_X1"), + Mi300XX2("MI300X_X2"), + Mi300XX4("MI300X_X4"), + Mi300XX8("MI300X_X8"), + Mi300XX16("MI300X_X16"), + Mi300XX32("MI300X_X32"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -843,16 +856,12 @@ public static UnitShape create(String key) { return UnknownEnumValue; } }; - /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. - */ + /** The shape of dedicated unit in this AI cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private final UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. + * The shape of dedicated unit in this AI cluster. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiClusterSummary.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiClusterSummary.java index e689ad992f9..360af8de5f5 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiClusterSummary.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiClusterSummary.java @@ -258,16 +258,12 @@ public Builder unitCount(Integer unitCount) { this.__explicitlySet__.add("unitCount"); return this; } - /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. - */ + /** The shape of dedicated unit in this AI cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private DedicatedAiCluster.UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. + * The shape of dedicated unit in this AI cluster. * * @param unitShape the value to set * @return this builder @@ -604,16 +600,12 @@ public Integer getUnitCount() { return unitCount; } - /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. - */ + /** The shape of dedicated unit in this AI cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private final DedicatedAiCluster.UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is - * hidden from customers. + * The shape of dedicated unit in this AI cluster. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DefaultSemanticStoreModelSelection.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DefaultSemanticStoreModelSelection.java new file mode 100644 index 00000000000..9408463b0f6 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DefaultSemanticStoreModelSelection.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * Uses the service default generative AI model for SemanticStore enrichment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are 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: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DefaultSemanticStoreModelSelection.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "modelSelectionType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DefaultSemanticStoreModelSelection extends SemanticStoreModelSelection { + @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 DefaultSemanticStoreModelSelection build() { + DefaultSemanticStoreModelSelection model = new DefaultSemanticStoreModelSelection(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DefaultSemanticStoreModelSelection model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DefaultSemanticStoreModelSelection() { + 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("DefaultSemanticStoreModelSelection("); + 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 DefaultSemanticStoreModelSelection)) { + return false; + } + + DefaultSemanticStoreModelSelection other = (DefaultSemanticStoreModelSelection) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java index 92f7577a97e..aa52a9f3b96 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java @@ -237,16 +237,12 @@ public Builder scalingConfig(ScalingConfig scalingConfig) { this.__explicitlySet__.add("scalingConfig"); return this; } - /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the - * application. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the - * application. + * A list of managed storage configurations for the application. * * @param storageConfigs the value to set * @return this builder @@ -625,14 +621,12 @@ public ScalingConfig getScalingConfig() { return scalingConfig; } - /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java index f8db48630b1..1ae75a987a8 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java @@ -217,16 +217,12 @@ public Builder scalingConfig(ScalingConfig scalingConfig) { this.__explicitlySet__.add("scalingConfig"); return this; } - /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the - * application. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the - * application. + * A list of managed storage configurations for the application. * * @param storageConfigs the value to set * @return this builder @@ -594,14 +590,12 @@ public ScalingConfig getScalingConfig() { return scalingConfig; } - /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java index f12edad9909..ea0294e0738 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java @@ -225,16 +225,12 @@ public Builder scalingConfig(ScalingConfig scalingConfig) { this.__explicitlySet__.add("scalingConfig"); return this; } - /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the - * application. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the - * application. + * A list of managed storage configurations for the application. * * @param storageConfigs the value to set * @return this builder @@ -602,14 +598,12 @@ public ScalingConfig getScalingConfig() { return scalingConfig; } - /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. - */ + /** A list of managed storage configurations for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorage.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorage.java index 7e0a2b6023f..85bb6c8d5c6 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorage.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorage.java @@ -5,8 +5,8 @@ package com.oracle.bmc.generativeai.model; /** - * defines a physical storage (database or cache) managed by service. Each application can choose - * one or two storages for certain purpose such as agent memory. + * Represents managed storage for an application. An application can use at most one managed storage + * resource of each type. * *

To use any of the API operations, you must be authorized in an IAM policy. If you're not * authorized, talk to an administrator who gives OCI resource access to users. See [Getting Started @@ -142,12 +142,12 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** type like Cache, Postgresql and ADB. */ + /** The managed storage type for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * * @param storageType the value to set * @return this builder @@ -448,7 +448,7 @@ public String getCompartmentId() { return compartmentId; } - /** type like Cache, Postgresql and ADB. */ + /** The managed storage type for the application. */ public enum StorageType implements com.oracle.bmc.http.internal.BmcEnum { Cache("CACHE"), Postgresql("POSTGRESQL"), @@ -495,12 +495,12 @@ public static StorageType create(String key) { return UnknownEnumValue; } }; - /** type like Cache, Postgresql and ADB. */ + /** The managed storage type for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private final StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorageSummary.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorageSummary.java index d8c5ead8a54..397fe0897c4 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorageSummary.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorageSummary.java @@ -128,12 +128,12 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } - /** type like Cache, Postgresql and ADB. */ + /** The managed storage type for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * * @param storageType the value to set * @return this builder @@ -392,7 +392,7 @@ public String getCompartmentId() { return compartmentId; } - /** type like Cache, Postgresql and ADB. */ + /** The managed storage type for the application. */ public enum StorageType implements com.oracle.bmc.http.internal.BmcEnum { Cache("CACHE"), Postgresql("POSTGRESQL"), @@ -439,12 +439,12 @@ public static StorageType create(String key) { return UnknownEnumValue; } }; - /** type like Cache, Postgresql and ADB. */ + /** The managed storage type for the application. */ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private final StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/InboundAuthConfig.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/InboundAuthConfig.java index b7dca23488b..d4ae0d4b772 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/InboundAuthConfig.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/InboundAuthConfig.java @@ -5,9 +5,8 @@ package com.oracle.bmc.generativeai.model; /** - * The client-side inbound authentication configuration for the Hosted Application. Defines the - * network access rules. When unspecified, the service applies the default inbound authentication - * configuration type.
+ * The inbound authentication configuration for the Hosted Application. When unspecified, the + * service applies the default inbound authentication configuration 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 @@ -35,12 +34,12 @@ public InboundAuthConfig( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Inbound authentication configuration type of network access (IDCS_AUTH_CONFIG). */ + /** The inbound authentication configuration type for the Hosted Application. */ @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfigType") private InboundAuthConfigType inboundAuthConfigType; /** - * Inbound authentication configuration type of network access (IDCS_AUTH_CONFIG). + * The inbound authentication configuration type for the Hosted Application. * * @param inboundAuthConfigType the value to set * @return this builder @@ -93,7 +92,7 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Inbound authentication configuration type of network access (IDCS_AUTH_CONFIG). */ + /** The inbound authentication configuration type for the Hosted Application. */ public enum InboundAuthConfigType implements com.oracle.bmc.http.internal.BmcEnum { IdcsAuthConfig("IDCS_AUTH_CONFIG"), @@ -138,12 +137,12 @@ public static InboundAuthConfigType create(String key) { return UnknownEnumValue; } }; - /** Inbound authentication configuration type of network access (IDCS_AUTH_CONFIG). */ + /** The inbound authentication configuration type for the Hosted Application. */ @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfigType") private final InboundAuthConfigType inboundAuthConfigType; /** - * Inbound authentication configuration type of network access (IDCS_AUTH_CONFIG). + * The inbound authentication configuration type for the Hosted Application. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStore.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStore.java index e32762b615f..bef940d5d3b 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStore.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStore.java @@ -38,7 +38,9 @@ public final class SemanticStore extends com.oracle.bmc.http.client.internal.Exp "timeUpdated", "lifecycleState", "lifecycleDetails", + "isUserDefinedSemanticsEnabled", "dataSource", + "modelSelection", "refreshSchedule", "schemas", "freeformTags", @@ -54,7 +56,9 @@ public SemanticStore( java.util.Date timeUpdated, LifecycleState lifecycleState, String lifecycleDetails, + Boolean isUserDefinedSemanticsEnabled, DataSourceDetails dataSource, + SemanticStoreModelSelection modelSelection, RefreshScheduleDetails refreshSchedule, SchemasDetails schemas, java.util.Map freeformTags, @@ -69,7 +73,9 @@ public SemanticStore( this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; this.dataSource = dataSource; + this.modelSelection = modelSelection; this.refreshSchedule = refreshSchedule; this.schemas = schemas; this.freeformTags = freeformTags; @@ -221,6 +227,29 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are + * enabled for semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. If not specified when + * the semantic store is created, this value defaults to true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are + * enabled for semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. If not specified when + * the semantic store is created, this value defaults to true. + * + * @param isUserDefinedSemanticsEnabled the value to set + * @return this builder + */ + public Builder isUserDefinedSemanticsEnabled(Boolean isUserDefinedSemanticsEnabled) { + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; + this.__explicitlySet__.add("isUserDefinedSemanticsEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("dataSource") private DataSourceDetails dataSource; @@ -231,6 +260,15 @@ public Builder dataSource(DataSourceDetails dataSource) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private SemanticStoreModelSelection modelSelection; + + public Builder modelSelection(SemanticStoreModelSelection modelSelection) { + this.modelSelection = modelSelection; + this.__explicitlySet__.add("modelSelection"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private RefreshScheduleDetails refreshSchedule; @@ -335,7 +373,9 @@ public SemanticStore build() { this.timeUpdated, this.lifecycleState, this.lifecycleDetails, + this.isUserDefinedSemanticsEnabled, this.dataSource, + this.modelSelection, this.refreshSchedule, this.schemas, this.freeformTags, @@ -373,9 +413,15 @@ public Builder copy(SemanticStore model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("isUserDefinedSemanticsEnabled")) { + this.isUserDefinedSemanticsEnabled(model.getIsUserDefinedSemanticsEnabled()); + } if (model.wasPropertyExplicitlySet("dataSource")) { this.dataSource(model.getDataSource()); } + if (model.wasPropertyExplicitlySet("modelSelection")) { + this.modelSelection(model.getModelSelection()); + } if (model.wasPropertyExplicitlySet("refreshSchedule")) { this.refreshSchedule(model.getRefreshSchedule()); } @@ -580,6 +626,27 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are + * enabled for semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. If not specified when the + * semantic store is created, this value defaults to true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private final Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are + * enabled for semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. If not specified when the + * semantic store is created, this value defaults to true. + * + * @return the value + */ + public Boolean getIsUserDefinedSemanticsEnabled() { + return isUserDefinedSemanticsEnabled; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataSource") private final DataSourceDetails dataSource; @@ -587,6 +654,13 @@ public DataSourceDetails getDataSource() { return dataSource; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private final SemanticStoreModelSelection modelSelection; + + public SemanticStoreModelSelection getModelSelection() { + return modelSelection; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private final RefreshScheduleDetails refreshSchedule; @@ -689,7 +763,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", isUserDefinedSemanticsEnabled=") + .append(String.valueOf(this.isUserDefinedSemanticsEnabled)); sb.append(", dataSource=").append(String.valueOf(this.dataSource)); + sb.append(", modelSelection=").append(String.valueOf(this.modelSelection)); sb.append(", refreshSchedule=").append(String.valueOf(this.refreshSchedule)); sb.append(", schemas=").append(String.valueOf(this.schemas)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -717,7 +794,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals( + this.isUserDefinedSemanticsEnabled, other.isUserDefinedSemanticsEnabled) && java.util.Objects.equals(this.dataSource, other.dataSource) + && java.util.Objects.equals(this.modelSelection, other.modelSelection) && java.util.Objects.equals(this.refreshSchedule, other.refreshSchedule) && java.util.Objects.equals(this.schemas, other.schemas) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -744,7 +824,15 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.isUserDefinedSemanticsEnabled == null + ? 43 + : this.isUserDefinedSemanticsEnabled.hashCode()); result = (result * PRIME) + (this.dataSource == null ? 43 : this.dataSource.hashCode()); + result = + (result * PRIME) + + (this.modelSelection == null ? 43 : this.modelSelection.hashCode()); result = (result * PRIME) + (this.refreshSchedule == null ? 43 : this.refreshSchedule.hashCode()); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreModelSelection.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreModelSelection.java new file mode 100644 index 00000000000..2c4dd5b2aa2 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreModelSelection.java @@ -0,0 +1,128 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * Model selection configuration for SemanticStore enrichment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are 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: 20231130") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "modelSelectionType", + defaultImpl = SemanticStoreModelSelection.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DefaultSemanticStoreModelSelection.class, + name = "DEFAULT"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CustomSemanticStoreModelSelection.class, + name = "CUSTOM") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class SemanticStoreModelSelection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected SemanticStoreModelSelection() { + 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("SemanticStoreModelSelection("); + 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 SemanticStoreModelSelection)) { + return false; + } + + SemanticStoreModelSelection other = (SemanticStoreModelSelection) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** The type of model selection. */ + public enum ModelSelectionType implements com.oracle.bmc.http.internal.BmcEnum { + Default("DEFAULT"), + Custom("CUSTOM"), + + /** + * 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(ModelSelectionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ModelSelectionType v : ModelSelectionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ModelSelectionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ModelSelectionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ModelSelectionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreSummary.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreSummary.java index a8c52e6d63f..bcfc8b72275 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreSummary.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreSummary.java @@ -29,12 +29,14 @@ public final class SemanticStoreSummary "description", "compartmentId", "dataSource", + "modelSelection", "refreshSchedule", "schemas", "timeCreated", "timeUpdated", "lifecycleState", "lifecycleDetails", + "isUserDefinedSemanticsEnabled", "freeformTags", "definedTags", "systemTags" @@ -45,12 +47,14 @@ public SemanticStoreSummary( String description, String compartmentId, DataSourceDetails dataSource, + SemanticStoreModelSelection modelSelection, RefreshScheduleDetails refreshSchedule, SchemasDetails schemas, java.util.Date timeCreated, java.util.Date timeUpdated, SemanticStore.LifecycleState lifecycleState, String lifecycleDetails, + Boolean isUserDefinedSemanticsEnabled, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -60,12 +64,14 @@ public SemanticStoreSummary( this.description = description; this.compartmentId = compartmentId; this.dataSource = dataSource; + this.modelSelection = modelSelection; this.refreshSchedule = refreshSchedule; this.schemas = schemas; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -153,6 +159,15 @@ public Builder dataSource(DataSourceDetails dataSource) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private SemanticStoreModelSelection modelSelection; + + public Builder modelSelection(SemanticStoreModelSelection modelSelection) { + this.modelSelection = modelSelection; + this.__explicitlySet__.add("modelSelection"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private RefreshScheduleDetails refreshSchedule; @@ -248,6 +263,29 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are + * enabled for semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. If not specified when + * the semantic store is created, this value defaults to true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are + * enabled for semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. If not specified when + * the semantic store is created, this value defaults to true. + * + * @param isUserDefinedSemanticsEnabled the value to set + * @return this builder + */ + public Builder isUserDefinedSemanticsEnabled(Boolean isUserDefinedSemanticsEnabled) { + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; + this.__explicitlySet__.add("isUserDefinedSemanticsEnabled"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined * name, type, or namespace. For more information, see [Resource @@ -332,12 +370,14 @@ public SemanticStoreSummary build() { this.description, this.compartmentId, this.dataSource, + this.modelSelection, this.refreshSchedule, this.schemas, this.timeCreated, this.timeUpdated, this.lifecycleState, this.lifecycleDetails, + this.isUserDefinedSemanticsEnabled, this.freeformTags, this.definedTags, this.systemTags); @@ -364,6 +404,9 @@ public Builder copy(SemanticStoreSummary model) { if (model.wasPropertyExplicitlySet("dataSource")) { this.dataSource(model.getDataSource()); } + if (model.wasPropertyExplicitlySet("modelSelection")) { + this.modelSelection(model.getModelSelection()); + } if (model.wasPropertyExplicitlySet("refreshSchedule")) { this.refreshSchedule(model.getRefreshSchedule()); } @@ -382,6 +425,9 @@ public Builder copy(SemanticStoreSummary model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("isUserDefinedSemanticsEnabled")) { + this.isUserDefinedSemanticsEnabled(model.getIsUserDefinedSemanticsEnabled()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -473,6 +519,13 @@ public DataSourceDetails getDataSource() { return dataSource; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private final SemanticStoreModelSelection modelSelection; + + public SemanticStoreModelSelection getModelSelection() { + return modelSelection; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private final RefreshScheduleDetails refreshSchedule; @@ -557,6 +610,27 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are + * enabled for semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. If not specified when the + * semantic store is created, this value defaults to true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private final Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are + * enabled for semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. If not specified when the + * semantic store is created, this value defaults to true. + * + * @return the value + */ + public Boolean getIsUserDefinedSemanticsEnabled() { + return isUserDefinedSemanticsEnabled; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined * name, type, or namespace. For more information, see [Resource @@ -642,12 +716,15 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", dataSource=").append(String.valueOf(this.dataSource)); + sb.append(", modelSelection=").append(String.valueOf(this.modelSelection)); sb.append(", refreshSchedule=").append(String.valueOf(this.refreshSchedule)); sb.append(", schemas=").append(String.valueOf(this.schemas)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", isUserDefinedSemanticsEnabled=") + .append(String.valueOf(this.isUserDefinedSemanticsEnabled)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -670,12 +747,15 @@ 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.dataSource, other.dataSource) + && java.util.Objects.equals(this.modelSelection, other.modelSelection) && java.util.Objects.equals(this.refreshSchedule, other.refreshSchedule) && java.util.Objects.equals(this.schemas, other.schemas) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals( + this.isUserDefinedSemanticsEnabled, other.isUserDefinedSemanticsEnabled) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -693,6 +773,9 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.dataSource == null ? 43 : this.dataSource.hashCode()); + result = + (result * PRIME) + + (this.modelSelection == null ? 43 : this.modelSelection.hashCode()); result = (result * PRIME) + (this.refreshSchedule == null ? 43 : this.refreshSchedule.hashCode()); @@ -705,6 +788,11 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.isUserDefinedSemanticsEnabled == null + ? 43 + : this.isUserDefinedSemanticsEnabled.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()); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/StorageConfig.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/StorageConfig.java index 855cb4343bb..f93c5d5168e 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/StorageConfig.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/StorageConfig.java @@ -30,12 +30,12 @@ public StorageConfig(String environmentVariableKey, String storageId) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The key of environment variable to store the database connection. */ + /** The environment variable key for accessing the managed storage. */ @com.fasterxml.jackson.annotation.JsonProperty("environmentVariableKey") private String environmentVariableKey; /** - * The key of environment variable to store the database connection. + * The environment variable key for accessing the managed storage. * * @param environmentVariableKey the value to set * @return this builder @@ -93,12 +93,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The key of environment variable to store the database connection. */ + /** The environment variable key for accessing the managed storage. */ @com.fasterxml.jackson.annotation.JsonProperty("environmentVariableKey") private final String environmentVariableKey; /** - * The key of environment variable to store the database connection. + * The environment variable key for accessing the managed storage. * * @return the value */ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateSemanticStoreDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateSemanticStoreDetails.java index e5d0e75328e..11e06e90757 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateSemanticStoreDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateSemanticStoreDetails.java @@ -26,6 +26,8 @@ public final class UpdateSemanticStoreDetails @java.beans.ConstructorProperties({ "description", "displayName", + "modelSelection", + "isUserDefinedSemanticsEnabled", "refreshSchedule", "schemas", "freeformTags", @@ -34,6 +36,8 @@ public final class UpdateSemanticStoreDetails public UpdateSemanticStoreDetails( String description, String displayName, + SemanticStoreModelSelection modelSelection, + Boolean isUserDefinedSemanticsEnabled, RefreshScheduleDetails refreshSchedule, CreateSchemasDetails schemas, java.util.Map freeformTags, @@ -41,6 +45,8 @@ public UpdateSemanticStoreDetails( super(); this.description = description; this.displayName = displayName; + this.modelSelection = modelSelection; + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; this.refreshSchedule = refreshSchedule; this.schemas = schemas; this.freeformTags = freeformTags; @@ -80,6 +86,38 @@ public Builder displayName(String displayName) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private SemanticStoreModelSelection modelSelection; + + public Builder modelSelection(SemanticStoreModelSelection modelSelection) { + this.modelSelection = modelSelection; + this.__explicitlySet__.add("modelSelection"); + return this; + } + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and + * synonyms, during semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. If omitted, the + * existing setting is unchanged. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and + * synonyms, during semantic-store enrichment. When true, enrichment uses both metadata and + * user-defined semantics. When false, enrichment uses metadata only. If omitted, the + * existing setting is unchanged. + * + * @param isUserDefinedSemanticsEnabled the value to set + * @return this builder + */ + public Builder isUserDefinedSemanticsEnabled(Boolean isUserDefinedSemanticsEnabled) { + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; + this.__explicitlySet__.add("isUserDefinedSemanticsEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private RefreshScheduleDetails refreshSchedule; @@ -157,6 +195,8 @@ public UpdateSemanticStoreDetails build() { new UpdateSemanticStoreDetails( this.description, this.displayName, + this.modelSelection, + this.isUserDefinedSemanticsEnabled, this.refreshSchedule, this.schemas, this.freeformTags, @@ -175,6 +215,12 @@ public Builder copy(UpdateSemanticStoreDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } + if (model.wasPropertyExplicitlySet("modelSelection")) { + this.modelSelection(model.getModelSelection()); + } + if (model.wasPropertyExplicitlySet("isUserDefinedSemanticsEnabled")) { + this.isUserDefinedSemanticsEnabled(model.getIsUserDefinedSemanticsEnabled()); + } if (model.wasPropertyExplicitlySet("refreshSchedule")) { this.refreshSchedule(model.getRefreshSchedule()); } @@ -226,6 +272,34 @@ public String getDisplayName() { return displayName; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private final SemanticStoreModelSelection modelSelection; + + public SemanticStoreModelSelection getModelSelection() { + return modelSelection; + } + + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, + * during semantic-store enrichment. When true, enrichment uses both metadata and user-defined + * semantics. When false, enrichment uses metadata only. If omitted, the existing setting is + * unchanged. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private final Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, + * during semantic-store enrichment. When true, enrichment uses both metadata and user-defined + * semantics. When false, enrichment uses metadata only. If omitted, the existing setting is + * unchanged. + * + * @return the value + */ + public Boolean getIsUserDefinedSemanticsEnabled() { + return isUserDefinedSemanticsEnabled; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private final RefreshScheduleDetails refreshSchedule; @@ -303,6 +377,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("description=").append(String.valueOf(this.description)); sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", modelSelection=").append(String.valueOf(this.modelSelection)); + sb.append(", isUserDefinedSemanticsEnabled=") + .append(String.valueOf(this.isUserDefinedSemanticsEnabled)); sb.append(", refreshSchedule=").append(String.valueOf(this.refreshSchedule)); sb.append(", schemas=").append(String.valueOf(this.schemas)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -323,6 +400,9 @@ public boolean equals(Object o) { UpdateSemanticStoreDetails other = (UpdateSemanticStoreDetails) o; return java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.modelSelection, other.modelSelection) + && java.util.Objects.equals( + this.isUserDefinedSemanticsEnabled, other.isUserDefinedSemanticsEnabled) && java.util.Objects.equals(this.refreshSchedule, other.refreshSchedule) && java.util.Objects.equals(this.schemas, other.schemas) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -336,6 +416,14 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.modelSelection == null ? 43 : this.modelSelection.hashCode()); + result = + (result * PRIME) + + (this.isUserDefinedSemanticsEnabled == null + ? 43 + : this.isUserDefinedSemanticsEnabled.hashCode()); result = (result * PRIME) + (this.refreshSchedule == null ? 43 : this.refreshSchedule.hashCode()); diff --git a/bmc-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json b/bmc-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json index 6151c6cf00b..93f0e286392 100644 --- a/bmc-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json +++ b/bmc-generativeai/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeai/reflect-config.json @@ -612,6 +612,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.CustomSemanticStoreModelSelection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.CustomSemanticStoreModelSelection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.DataSourceDatabaseToolsConnectionDetails", @@ -753,6 +767,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.DefaultSemanticStoreModelSelection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.DefaultSemanticStoreModelSelection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.EmbeddingConfig", @@ -1846,6 +1874,19 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.SemanticStoreModelSelection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeai.model.SemanticStoreModelSelection$ModelSelectionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeai.model.SemanticStoreSummary", diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index c501b5a5b54..f0bd8ec0043 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index 5f7dd02ef06..c6b80d44826 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index 085b88033b0..bcea565bdd8 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 \ No newline at end of file diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java deleted file mode 100644 index 3467053265b..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress This service client uses - * CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit - * breaker configuration is defined by the user. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface CancelEnrichmentJob extends AutoCloseable { - - /** Rebuilds the client from scratch. Useful to refresh certificates. */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * - * @param endpoint The endpoint of the service. - */ - void setEndpoint(String endpoint); - - /** Gets the set endpoint for REST call (ex, https://www.example.com) */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - * - *

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

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

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

Example: Click here to see how to use CancelEnrichmentJob - * API. - */ - CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobRequest request); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsync.java deleted file mode 100644 index c07f31294d3..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsync.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** A description of the ReferenceService API. in progress */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface CancelEnrichmentJobAsync extends AutoCloseable { - - /** Rebuilds the client from scratch. Useful to refresh certificates. */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * - * @param endpoint The endpoint of the serice. - */ - void setEndpoint(String endpoint); - - /** Gets the set endpoint for REST call (ex, https://www.example.com) */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - * - *

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

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

If no known Region could be determined, it will create an endpoint based on the default - * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. Set - * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm - * specific endpoint template, otherwise set it to "false" - * - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint - * template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Cancels an EnrichmentJob resource by identifier. - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, - * if you provide an AsyncHandler and use the Future, some types of responses (like - * java.io.InputStream) may not be able to be read in both places as the underlying stream - * may only be consumed once. - */ - java.util.concurrent.Future cancelEnrichmentJob( - CancelEnrichmentJobRequest request, - com.oracle.bmc.responses.AsyncHandler< - CancelEnrichmentJobRequest, CancelEnrichmentJobResponse> - handler); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java deleted file mode 100644 index ddd53138990..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java +++ /dev/null @@ -1,296 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.util.internal.Validate; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -import java.util.Objects; - -/** - * Async client implementation for CancelEnrichmentJob service.
- * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response - * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, - * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream - * will be closed right after the AsyncHandler is invoked.
- * 2. Use Java Future: using Java Future, developers need to close the stream after they are done - * with the Java Future.
- * Accessing the result should be done in a mutually exclusive manner, either through the Future or - * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the - * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine - * whether or not the request was completed via Future.isDone/isCancelled.
- * Please refer to - * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class CancelEnrichmentJobAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient - implements CancelEnrichmentJobAsync { - /** Service instance for CancelEnrichmentJob. */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(CancelEnrichmentJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(CancelEnrichmentJobAsyncClient.class); - - CancelEnrichmentJobAsyncClient( - com.oracle.bmc.common.ClientBuilderBase builder, - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - super(builder, authenticationDetailsProvider); - } - - /** - * Create a builder for this client. - * - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be - * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, CancelEnrichmentJobAsyncClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - final String packageName = "generativeaidata"; - com.oracle.bmc.internal.DeveloperToolConfiguration - .throwDisabledServiceExceptionIfAppropriate(packageName); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public CancelEnrichmentJobAsyncClient build( - @jakarta.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - return new CancelEnrichmentJobAsyncClient(this, authenticationDetailsProvider); - } - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - super.setRegion(region); - } - - @Override - public void setRegion(String regionId) { - super.setRegion(regionId); - } - - @Override - public java.util.concurrent.Future cancelEnrichmentJob( - CancelEnrichmentJobRequest request, - final com.oracle.bmc.responses.AsyncHandler< - CancelEnrichmentJobRequest, CancelEnrichmentJobResponse> - handler) { - - Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); - - Validate.notBlank(request.getEnrichmentJobId(), "enrichmentJobId must not be blank"); - - return clientCall(request, CancelEnrichmentJobResponse::builder) - .logger(LOG, "cancelEnrichmentJob") - .serviceDetails( - "CancelEnrichmentJob", - "CancelEnrichmentJob", - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder(CancelEnrichmentJobRequest::builder) - .basePath("/20260325") - .appendPathParam("semanticStores") - .appendPathParam(request.getSemanticStoreId()) - .appendPathParam("enrichmentJobs") - .appendPathParam(request.getEnrichmentJobId()) - .appendPathParam("actions") - .appendPathParam("cancel") - .accept("application/json") - .appendHeader("opc-retry-token", request.getOpcRetryToken()) - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("if-match", request.getIfMatch()) - .handleResponseHeaderString( - "opc-request-id", CancelEnrichmentJobResponse.Builder::opcRequestId) - .handleResponseHeaderString( - "opc-work-request-id", - CancelEnrichmentJobResponse.Builder::opcWorkRequestId) - .callAsync(handler); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(builder(), authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(builder().configuration(configuration), authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - builder().configuration(configuration).clientConfigurator(clientConfigurator), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @param endpoint {@link Builder#endpoint} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators) - .endpoint(endpoint), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @param endpoint {@link Builder#endpoint} - * @param signingStrategyRequestSignerFactories {@link - * Builder#signingStrategyRequestSignerFactories} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators) - .endpoint(endpoint) - .signingStrategyRequestSignerFactories( - signingStrategyRequestSignerFactories), - authenticationDetailsProvider); - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java deleted file mode 100644 index 50133b23d0c..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java +++ /dev/null @@ -1,283 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.util.internal.Validate; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; -import com.oracle.bmc.util.CircuitBreakerUtils; - -import java.util.Objects; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class CancelEnrichmentJobClient extends com.oracle.bmc.http.internal.BaseSyncClient - implements CancelEnrichmentJob { - /** Service instance for CancelEnrichmentJob. */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(CancelEnrichmentJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(CancelEnrichmentJobClient.class); - - CancelEnrichmentJobClient( - com.oracle.bmc.common.ClientBuilderBase builder, - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - super( - builder, - authenticationDetailsProvider, - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); - } - - /** - * Create a builder for this client. - * - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be - * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, CancelEnrichmentJobClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - final String packageName = "generativeaidata"; - com.oracle.bmc.internal.DeveloperToolConfiguration - .throwDisabledServiceExceptionIfAppropriate(packageName); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public CancelEnrichmentJobClient build( - @jakarta.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - return new CancelEnrichmentJobClient(this, authenticationDetailsProvider); - } - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - super.setRegion(region); - } - - @Override - public void setRegion(String regionId) { - super.setRegion(regionId); - } - - @Override - public CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobRequest request) { - - Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); - - Validate.notBlank(request.getEnrichmentJobId(), "enrichmentJobId must not be blank"); - - return clientCall(request, CancelEnrichmentJobResponse::builder) - .logger(LOG, "cancelEnrichmentJob") - .serviceDetails( - "CancelEnrichmentJob", - "CancelEnrichmentJob", - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder(CancelEnrichmentJobRequest::builder) - .basePath("/20260325") - .appendPathParam("semanticStores") - .appendPathParam(request.getSemanticStoreId()) - .appendPathParam("enrichmentJobs") - .appendPathParam(request.getEnrichmentJobId()) - .appendPathParam("actions") - .appendPathParam("cancel") - .accept("application/json") - .appendHeader("opc-retry-token", request.getOpcRetryToken()) - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("if-match", request.getIfMatch()) - .operationUsesDefaultRetries() - .handleResponseHeaderString( - "opc-request-id", CancelEnrichmentJobResponse.Builder::opcRequestId) - .handleResponseHeaderString( - "opc-work-request-id", - CancelEnrichmentJobResponse.Builder::opcWorkRequestId) - .callSync(); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(builder(), authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(builder().configuration(configuration), authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - builder().configuration(configuration).clientConfigurator(clientConfigurator), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @param endpoint {@link Builder#endpoint} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators) - .endpoint(endpoint), - authenticationDetailsProvider); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @param configuration {@link Builder#configuration} - * @param clientConfigurator {@link Builder#clientConfigurator} - * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} - * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} - * @param endpoint {@link Builder#endpoint} - * @param signingStrategyRequestSignerFactories {@link - * Builder#signingStrategyRequestSignerFactories} - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - builder() - .configuration(configuration) - .clientConfigurator(clientConfigurator) - .requestSignerFactory(defaultRequestSignerFactory) - .additionalClientConfigurators(additionalClientConfigurators) - .endpoint(endpoint) - .signingStrategyRequestSignerFactories( - signingStrategyRequestSignerFactories), - authenticationDetailsProvider); - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobs.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJob.java similarity index 52% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobs.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJob.java index a1a834ab30f..174ca0cde78 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobs.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJob.java @@ -13,7 +13,7 @@ * breaker configuration is defined by the user. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface ListEnrichmentJobs extends AutoCloseable { +public interface EnrichmentJob extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ void refreshClient(); @@ -64,7 +64,59 @@ public interface ListEnrichmentJobs extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Lists EnrichmentJobs in a semantic store. + * Cancels an EnrichmentJob resource by identifier. The returned job includes the modelId used + * for enrichment. + * + * @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 CancelEnrichmentJob + * API. + */ + CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobRequest request); + + /** + * Creates a new asynchronous EnrichmentJob. The returned job includes the modelId used for + * enrichment. + * + * @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 + * GenerateEnrichmentJob API. + */ + GenerateEnrichmentJobResponse generateEnrichmentJob(GenerateEnrichmentJobRequest request); + + /** + * Gets an EnrichmentJob by identifier. The returned job includes the modelId used for + * enrichment. + * + * @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 GetEnrichmentJob + * API. + */ + GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request); + + /** + * Lists EnrichmentJobs in a semantic store. Each returned job summary includes the modelId used + * for enrichment. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -79,6 +131,13 @@ public interface ListEnrichmentJobs extends AutoCloseable { */ ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest request); + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + EnrichmentJobWaiters getWaiters(); + /** * Gets the pre-configured paginators available for list operations in this service which may * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} @@ -87,5 +146,5 @@ public interface ListEnrichmentJobs extends AutoCloseable { * * @return The service paginators. */ - ListEnrichmentJobsPaginators getPaginators(); + EnrichmentJobPaginators getPaginators(); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsync.java similarity index 53% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsync.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsync.java index 101378356ea..1a9973f41bd 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsync.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsync.java @@ -9,7 +9,7 @@ /** A description of the ReferenceService API. in progress */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GenerateEnrichmentJobAsync extends AutoCloseable { +public interface EnrichmentJobAsync extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ void refreshClient(); @@ -60,7 +60,25 @@ public interface GenerateEnrichmentJobAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Creates a new asynchronous EnrichmentJob. + * Cancels an EnrichmentJob resource by identifier. The returned job includes the modelId used + * for enrichment. + * + * @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 cancelEnrichmentJob( + CancelEnrichmentJobRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelEnrichmentJobRequest, CancelEnrichmentJobResponse> + handler); + + /** + * Creates a new asynchronous EnrichmentJob. The returned job includes the modelId used for + * enrichment. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -74,4 +92,37 @@ java.util.concurrent.Future generateEnrichmentJob com.oracle.bmc.responses.AsyncHandler< GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse> handler); + + /** + * Gets an EnrichmentJob by identifier. The returned job includes the modelId used for + * enrichment. + * + * @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 getEnrichmentJob( + GetEnrichmentJobRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Lists EnrichmentJobs in a semantic store. Each returned job summary includes the modelId used + * for enrichment. + * + * @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 listEnrichmentJobs( + ListEnrichmentJobsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListEnrichmentJobsRequest, ListEnrichmentJobsResponse> + handler); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsyncClient.java similarity index 65% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsyncClient.java index 5ba78394e1e..2dbed8b99aa 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsyncClient.java @@ -11,7 +11,7 @@ import java.util.Objects; /** - * Async client implementation for ListEnrichmentJobs service.
+ * Async client implementation for EnrichmentJob service.
* There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream @@ -26,21 +26,21 @@ * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class ListEnrichmentJobsAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient - implements ListEnrichmentJobsAsync { - /** Service instance for ListEnrichmentJobs. */ +public class EnrichmentJobAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements EnrichmentJobAsync { + /** Service instance for EnrichmentJob. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(ListEnrichmentJobsClient.class.getName()) + .serviceName(EnrichmentJobClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( "https://inference.generativeai.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListEnrichmentJobsAsyncClient.class); + org.slf4j.LoggerFactory.getLogger(EnrichmentJobAsyncClient.class); - ListEnrichmentJobsAsyncClient( + EnrichmentJobAsyncClient( com.oracle.bmc.common.ClientBuilderBase builder, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -61,8 +61,7 @@ public static Builder builder() { * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. */ public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, ListEnrichmentJobsAsyncClient> { + extends com.oracle.bmc.common.RegionalClientBuilder { private Builder(com.oracle.bmc.Service service) { super(service); final String packageName = "generativeaidata"; @@ -79,11 +78,11 @@ private Builder(com.oracle.bmc.Service service) { * @param authenticationDetailsProvider authentication details provider * @return the client */ - public ListEnrichmentJobsAsyncClient build( + public EnrichmentJobAsyncClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { - return new ListEnrichmentJobsAsyncClient(this, authenticationDetailsProvider); + return new EnrichmentJobAsyncClient(this, authenticationDetailsProvider); } } @@ -97,6 +96,125 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future cancelEnrichmentJob( + CancelEnrichmentJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelEnrichmentJobRequest, CancelEnrichmentJobResponse> + handler) { + + Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); + + Validate.notBlank(request.getEnrichmentJobId(), "enrichmentJobId must not be blank"); + + return clientCall(request, CancelEnrichmentJobResponse::builder) + .logger(LOG, "cancelEnrichmentJob") + .serviceDetails( + "EnrichmentJob", + "CancelEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelEnrichmentJobRequest::builder) + .basePath("/20260325") + .appendPathParam("semanticStores") + .appendPathParam(request.getSemanticStoreId()) + .appendPathParam("enrichmentJobs") + .appendPathParam(request.getEnrichmentJobId()) + .appendPathParam("actions") + .appendPathParam("cancel") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleBody( + com.oracle.bmc.generativeaidata.model.EnrichmentJob.class, + CancelEnrichmentJobResponse.Builder::enrichmentJob) + .handleResponseHeaderString("etag", CancelEnrichmentJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CancelEnrichmentJobResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CancelEnrichmentJobResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future generateEnrichmentJob( + GenerateEnrichmentJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse> + handler) { + Objects.requireNonNull( + request.getGenerateEnrichmentJobDetails(), + "generateEnrichmentJobDetails is required"); + + Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); + + return clientCall(request, GenerateEnrichmentJobResponse::builder) + .logger(LOG, "generateEnrichmentJob") + .serviceDetails( + "EnrichmentJob", + "GenerateEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateEnrichmentJobRequest::builder) + .basePath("/20260325") + .appendPathParam("semanticStores") + .appendPathParam(request.getSemanticStoreId()) + .appendPathParam("actions") + .appendPathParam("enrich") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleBody( + com.oracle.bmc.generativeaidata.model.EnrichmentJob.class, + GenerateEnrichmentJobResponse.Builder::enrichmentJob) + .handleResponseHeaderString("etag", GenerateEnrichmentJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GenerateEnrichmentJobResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + GenerateEnrichmentJobResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getEnrichmentJob( + GetEnrichmentJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetEnrichmentJobRequest, GetEnrichmentJobResponse> + handler) { + + Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); + + Validate.notBlank(request.getEnrichmentJobId(), "enrichmentJobId must not be blank"); + + return clientCall(request, GetEnrichmentJobResponse::builder) + .logger(LOG, "getEnrichmentJob") + .serviceDetails( + "EnrichmentJob", + "GetEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetEnrichmentJobRequest::builder) + .basePath("/20260325") + .appendPathParam("semanticStores") + .appendPathParam(request.getSemanticStoreId()) + .appendPathParam("enrichmentJobs") + .appendPathParam(request.getEnrichmentJobId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.generativeaidata.model.EnrichmentJob.class, + GetEnrichmentJobResponse.Builder::enrichmentJob) + .handleResponseHeaderString("etag", GetEnrichmentJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetEnrichmentJobResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listEnrichmentJobs( ListEnrichmentJobsRequest request, @@ -110,7 +228,7 @@ public java.util.concurrent.Future listEnrichmentJob return clientCall(request, ListEnrichmentJobsResponse::builder) .logger(LOG, "listEnrichmentJobs") .serviceDetails( - "ListEnrichmentJobs", + "EnrichmentJob", "ListEnrichmentJobs", "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs") .method(com.oracle.bmc.http.client.Method.GET) @@ -147,7 +265,7 @@ public java.util.concurrent.Future listEnrichmentJob * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(builder(), authenticationDetailsProvider); } @@ -160,7 +278,7 @@ public ListEnrichmentJobsAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(builder().configuration(configuration), authenticationDetailsProvider); @@ -175,7 +293,7 @@ public ListEnrichmentJobsAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -194,7 +312,7 @@ public ListEnrichmentJobsAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -218,7 +336,7 @@ public ListEnrichmentJobsAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -245,7 +363,7 @@ public ListEnrichmentJobsAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -276,7 +394,7 @@ public ListEnrichmentJobsAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobClient.java similarity index 53% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobClient.java index a19a5bab992..34f7c37b681 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobClient.java @@ -13,32 +13,53 @@ import java.util.Objects; @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class ListEnrichmentJobsClient extends com.oracle.bmc.http.internal.BaseSyncClient - implements ListEnrichmentJobs { - /** Service instance for ListEnrichmentJobs. */ +public class EnrichmentJobClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements EnrichmentJob { + /** Service instance for EnrichmentJob. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(ListEnrichmentJobsClient.class.getName()) + .serviceName(EnrichmentJobClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( "https://inference.generativeai.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListEnrichmentJobsClient.class); + org.slf4j.LoggerFactory.getLogger(EnrichmentJobClient.class); - private final ListEnrichmentJobsPaginators paginators; + private final EnrichmentJobWaiters waiters; - ListEnrichmentJobsClient( + private final EnrichmentJobPaginators paginators; + + EnrichmentJobClient( com.oracle.bmc.common.ClientBuilderBase builder, - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { super( builder, authenticationDetailsProvider, CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); - this.paginators = new ListEnrichmentJobsPaginators(this); + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("EnrichmentJob-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new EnrichmentJobWaiters(executorService, this); + + this.paginators = new EnrichmentJobPaginators(this); } /** @@ -55,7 +76,9 @@ public static Builder builder() { * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. */ public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder { + extends com.oracle.bmc.common.RegionalClientBuilder { + private java.util.concurrent.ExecutorService executorService; + private Builder(com.oracle.bmc.Service service) { super(service); final String packageName = "generativeaidata"; @@ -66,17 +89,28 @@ private Builder(com.oracle.bmc.Service service) { com.oracle.bmc.http.signing.SigningStrategy.STANDARD); } + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + /** * Build the client. * * @param authenticationDetailsProvider authentication details provider * @return the client */ - public ListEnrichmentJobsClient build( + public EnrichmentJobClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { - return new ListEnrichmentJobsClient(this, authenticationDetailsProvider); + return new EnrichmentJobClient(this, authenticationDetailsProvider, executorService); } } @@ -90,6 +124,117 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobRequest request) { + + Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); + + Validate.notBlank(request.getEnrichmentJobId(), "enrichmentJobId must not be blank"); + + return clientCall(request, CancelEnrichmentJobResponse::builder) + .logger(LOG, "cancelEnrichmentJob") + .serviceDetails( + "EnrichmentJob", + "CancelEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelEnrichmentJobRequest::builder) + .basePath("/20260325") + .appendPathParam("semanticStores") + .appendPathParam(request.getSemanticStoreId()) + .appendPathParam("enrichmentJobs") + .appendPathParam(request.getEnrichmentJobId()) + .appendPathParam("actions") + .appendPathParam("cancel") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.generativeaidata.model.EnrichmentJob.class, + CancelEnrichmentJobResponse.Builder::enrichmentJob) + .handleResponseHeaderString("etag", CancelEnrichmentJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CancelEnrichmentJobResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CancelEnrichmentJobResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public GenerateEnrichmentJobResponse generateEnrichmentJob( + GenerateEnrichmentJobRequest request) { + Objects.requireNonNull( + request.getGenerateEnrichmentJobDetails(), + "generateEnrichmentJobDetails is required"); + + Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); + + return clientCall(request, GenerateEnrichmentJobResponse::builder) + .logger(LOG, "generateEnrichmentJob") + .serviceDetails( + "EnrichmentJob", + "GenerateEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateEnrichmentJobRequest::builder) + .basePath("/20260325") + .appendPathParam("semanticStores") + .appendPathParam(request.getSemanticStoreId()) + .appendPathParam("actions") + .appendPathParam("enrich") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.generativeaidata.model.EnrichmentJob.class, + GenerateEnrichmentJobResponse.Builder::enrichmentJob) + .handleResponseHeaderString("etag", GenerateEnrichmentJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GenerateEnrichmentJobResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + GenerateEnrichmentJobResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request) { + + Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); + + Validate.notBlank(request.getEnrichmentJobId(), "enrichmentJobId must not be blank"); + + return clientCall(request, GetEnrichmentJobResponse::builder) + .logger(LOG, "getEnrichmentJob") + .serviceDetails( + "EnrichmentJob", + "GetEnrichmentJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetEnrichmentJobRequest::builder) + .basePath("/20260325") + .appendPathParam("semanticStores") + .appendPathParam(request.getSemanticStoreId()) + .appendPathParam("enrichmentJobs") + .appendPathParam(request.getEnrichmentJobId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.generativeaidata.model.EnrichmentJob.class, + GetEnrichmentJobResponse.Builder::enrichmentJob) + .handleResponseHeaderString("etag", GetEnrichmentJobResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetEnrichmentJobResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest request) { @@ -99,7 +244,7 @@ public ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest r return clientCall(request, ListEnrichmentJobsResponse::builder) .logger(LOG, "listEnrichmentJobs") .serviceDetails( - "ListEnrichmentJobs", + "EnrichmentJob", "ListEnrichmentJobs", "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs") .method(com.oracle.bmc.http.client.Method.GET) @@ -131,7 +276,12 @@ public ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest r } @Override - public ListEnrichmentJobsPaginators getPaginators() { + public EnrichmentJobWaiters getWaiters() { + return waiters; + } + + @Override + public EnrichmentJobPaginators getPaginators() { return paginators; } @@ -142,9 +292,9 @@ public ListEnrichmentJobsPaginators getPaginators() { * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsClient( + public EnrichmentJobClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(builder(), authenticationDetailsProvider); + this(builder(), authenticationDetailsProvider, null); } /** @@ -155,10 +305,10 @@ public ListEnrichmentJobsClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsClient( + public EnrichmentJobClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { - this(builder().configuration(configuration), authenticationDetailsProvider); + this(builder().configuration(configuration), authenticationDetailsProvider, null); } /** @@ -170,13 +320,14 @@ public ListEnrichmentJobsClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsClient( + public EnrichmentJobClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { this( builder().configuration(configuration).clientConfigurator(clientConfigurator), - authenticationDetailsProvider); + authenticationDetailsProvider, + null); } /** @@ -189,7 +340,7 @@ public ListEnrichmentJobsClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsClient( + public EnrichmentJobClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -199,7 +350,8 @@ public ListEnrichmentJobsClient( .configuration(configuration) .clientConfigurator(clientConfigurator) .requestSignerFactory(defaultRequestSignerFactory), - authenticationDetailsProvider); + authenticationDetailsProvider, + null); } /** @@ -213,7 +365,7 @@ public ListEnrichmentJobsClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsClient( + public EnrichmentJobClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -225,7 +377,8 @@ public ListEnrichmentJobsClient( .clientConfigurator(clientConfigurator) .requestSignerFactory(defaultRequestSignerFactory) .additionalClientConfigurators(additionalClientConfigurators), - authenticationDetailsProvider); + authenticationDetailsProvider, + null); } /** @@ -240,7 +393,7 @@ public ListEnrichmentJobsClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsClient( + public EnrichmentJobClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -254,7 +407,8 @@ public ListEnrichmentJobsClient( .requestSignerFactory(defaultRequestSignerFactory) .additionalClientConfigurators(additionalClientConfigurators) .endpoint(endpoint), - authenticationDetailsProvider); + authenticationDetailsProvider, + null); } /** @@ -271,7 +425,7 @@ public ListEnrichmentJobsClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public ListEnrichmentJobsClient( + public EnrichmentJobClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -291,6 +445,47 @@ public ListEnrichmentJobsClient( .endpoint(endpoint) .signingStrategyRequestSignerFactories( signingStrategyRequestSignerFactories), - authenticationDetailsProvider); + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public EnrichmentJobClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); } } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsPaginators.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobPaginators.java similarity index 96% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsPaginators.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobPaginators.java index 5e7dcf0980a..63e0f51cb17 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsPaginators.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobPaginators.java @@ -9,8 +9,8 @@ /** * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface - * to any list operations of ListEnrichmentJobs where multiple pages of data may be fetched. Two - * styles of iteration are supported: + * to any list operations of EnrichmentJob where multiple pages of data may be fetched. Two styles + * of iteration are supported: * *