From 9eba0663bcd2cad3c4536ddcbacc49a8fb2dc32d Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 25 Aug 2026 15:45:14 +0000 Subject: [PATCH] Releasing version 3.95.0 --- CHANGELOG.md | 27 + bmc-accessgovernancecp/pom.xml | 4 +- bmc-addons/bmc-adk/pom.xml | 2 +- bmc-addons/bmc-aispeech-realtime/pom.xml | 6 +- .../pom.xml | 6 +- .../pom.xml | 6 +- .../bmc-apache-connector-provider/pom.xml | 4 +- bmc-addons/bmc-oke-workload-identity/pom.xml | 10 +- .../bmc-resteasy-client-configurator/pom.xml | 4 +- .../bmc-sasl-oke-workload-identity/pom.xml | 6 +- bmc-addons/bmc-sasl/pom.xml | 4 +- bmc-addons/bmc-sse-support-jersey3/pom.xml | 8 +- bmc-addons/bmc-sse-support/pom.xml | 8 +- bmc-addons/pom.xml | 2 +- bmc-adm/pom.xml | 4 +- bmc-aidataplatform/pom.xml | 4 +- bmc-aidocument/pom.xml | 4 +- bmc-ailanguage/pom.xml | 4 +- bmc-aispeech/pom.xml | 4 +- bmc-aivision/pom.xml | 4 +- bmc-analytics/pom.xml | 4 +- bmc-announcementsservice/pom.xml | 4 +- bmc-apiaccesscontrol/pom.xml | 4 +- bmc-apigateway/pom.xml | 4 +- bmc-apiplatform/pom.xml | 4 +- bmc-apmconfig/pom.xml | 4 +- bmc-apmcontrolplane/pom.xml | 4 +- bmc-apmsynthetics/pom.xml | 4 +- bmc-apmtraces/pom.xml | 4 +- bmc-appmgmtcontrol/pom.xml | 4 +- bmc-artifacts/pom.xml | 4 +- bmc-audit/pom.xml | 4 +- bmc-autoscaling/pom.xml | 4 +- bmc-bastion/pom.xml | 4 +- bmc-batch/pom.xml | 4 +- bmc-bds/pom.xml | 4 +- .../src/main/java/com/oracle/bmc/bds/Bds.java | 242 ++++ .../java/com/oracle/bmc/bds/BdsAsync.java | 247 ++++ .../com/oracle/bmc/bds/BdsAsyncClient.java | 602 +++++++++ .../java/com/oracle/bmc/bds/BdsClient.java | 541 ++++++++ .../com/oracle/bmc/bds/BdsPaginators.java | 404 ++++++ .../java/com/oracle/bmc/bds/BdsWaiters.java | 239 ++++ .../bmc/bds/model/BdsCapacityReservation.java | 562 ++++++++ ...tionAssociatedConfigurationCollection.java | 145 +++ ...rvationAssociatedConfigurationSummary.java | 431 ++++++ .../BdsCapacityReservationCollection.java | 134 ++ .../BdsCapacityReservationConfiguration.java | 443 +++++++ ...ityReservationConfigurationCollection.java | 136 ++ ...pacityReservationConfigurationSummary.java | 395 ++++++ .../model/BdsCapacityReservationSummary.java | 513 ++++++++ .../com/oracle/bmc/bds/model/BdsInstance.java | 52 + ...CapacityReservationCompartmentDetails.java | 138 ++ .../model/ComputeCapacityReservations.java | 251 ++++ ...pacityReservationConfigurationDetails.java | 179 +++ .../CreateBdsCapacityReservationDetails.java | 305 +++++ .../bds/model/CreateBdsInstanceDetails.java | 63 + .../java/com/oracle/bmc/bds/model/Node.java | 44 + ...pacityReservationConfigurationDetails.java | 179 +++ .../UpdateBdsCapacityReservationDetails.java | 265 ++++ ...pacityReservationConfigurationRequest.java | 333 +++++ ...CapacityReservationCompartmentRequest.java | 372 ++++++ ...pacityReservationConfigurationRequest.java | 322 +++++ .../CreateBdsCapacityReservationRequest.java | 283 ++++ ...pacityReservationConfigurationRequest.java | 334 +++++ ...pacityReservationConfigurationRequest.java | 282 ++++ .../DeleteBdsCapacityReservationRequest.java | 246 ++++ ...pacityReservationConfigurationRequest.java | 237 ++++ .../GetBdsCapacityReservationRequest.java | 200 +++ ...vationAssociatedConfigurationsRequest.java | 469 +++++++ ...acityReservationConfigurationsRequest.java | 433 ++++++ .../ListBdsCapacityReservationsRequest.java | 425 ++++++ ...pacityReservationConfigurationRequest.java | 404 ++++++ .../UpdateBdsCapacityReservationRequest.java | 361 +++++ ...acityReservationConfigurationResponse.java | 228 ++++ ...apacityReservationCompartmentResponse.java | 140 ++ ...acityReservationConfigurationResponse.java | 342 +++++ .../CreateBdsCapacityReservationResponse.java | 333 +++++ ...acityReservationConfigurationResponse.java | 228 ++++ ...acityReservationConfigurationResponse.java | 140 ++ .../DeleteBdsCapacityReservationResponse.java | 138 ++ ...acityReservationConfigurationResponse.java | 228 ++++ .../GetBdsCapacityReservationResponse.java | 215 +++ ...ationAssociatedConfigurationsResponse.java | 246 ++++ ...cityReservationConfigurationsResponse.java | 243 ++++ .../ListBdsCapacityReservationsResponse.java | 238 ++++ ...acityReservationConfigurationResponse.java | 228 ++++ .../UpdateBdsCapacityReservationResponse.java | 215 +++ .../oci-java-sdk-bds/reflect-config.json | 214 +++ bmc-blockchain/pom.xml | 4 +- bmc-bom/pom.xml | 380 +++--- bmc-budget/pom.xml | 4 +- bmc-capacitymanagement/pom.xml | 4 +- bmc-certificates/pom.xml | 4 +- bmc-certificatesmanagement/pom.xml | 4 +- bmc-cims/pom.xml | 4 +- bmc-circuitbreaker/pom.xml | 2 +- bmc-cloudbridge/pom.xml | 4 +- bmc-cloudguard/pom.xml | 4 +- bmc-cloudmigrations/pom.xml | 4 +- bmc-clusterplacementgroups/pom.xml | 4 +- .../bmc-common-httpclient-jersey/pom.xml | 6 +- .../bmc-common-httpclient-jersey3/pom.xml | 6 +- bmc-common-httpclient-choices/pom.xml | 2 +- bmc-common-httpclient/pom.xml | 2 +- bmc-common/pom.xml | 8 +- bmc-computecloudatcustomer/pom.xml | 4 +- bmc-computeinstanceagent/pom.xml | 4 +- bmc-containerengine/pom.xml | 4 +- bmc-containerinstances/pom.xml | 4 +- bmc-containerregistry/pom.xml | 4 +- bmc-core/pom.xml | 6 +- .../bmc/core/model/CreateVtapDetails.java | 1 + .../bmc/core/model/UpdateVtapDetails.java | 1 + .../java/com/oracle/bmc/core/model/Vtap.java | 1 + bmc-costad/pom.xml | 4 +- bmc-dashboardservice/pom.xml | 4 +- bmc-database/pom.xml | 6 +- bmc-databasemanagement/pom.xml | 4 +- bmc-databasemigration/pom.xml | 4 +- bmc-databasetools/pom.xml | 4 +- bmc-databasetoolsruntime/pom.xml | 4 +- bmc-datacatalog/pom.xml | 4 +- bmc-datacc/pom.xml | 4 +- bmc-dataflow/pom.xml | 4 +- bmc-dataintegration/pom.xml | 4 +- bmc-datalabelingservice/pom.xml | 4 +- bmc-datalabelingservicedataplane/pom.xml | 4 +- bmc-datasafe/pom.xml | 4 +- bmc-datascience/pom.xml | 4 +- bmc-dblm/pom.xml | 4 +- bmc-dbmulticloud/pom.xml | 4 +- bmc-ddfs/pom.xml | 4 +- bmc-delegateaccesscontrol/pom.xml | 4 +- bmc-demandsignal/pom.xml | 4 +- bmc-desktops/pom.xml | 4 +- bmc-devops/pom.xml | 4 +- bmc-dif/pom.xml | 4 +- bmc-disasterrecovery/pom.xml | 4 +- bmc-distributeddatabase/pom.xml | 4 +- bmc-distributeddatabasev26/pom.xml | 4 +- bmc-dns/pom.xml | 6 +- bmc-email/pom.xml | 4 +- bmc-emaildataplane/pom.xml | 4 +- bmc-emwarehouse/pom.xml | 4 +- bmc-encryption/pom.xml | 10 +- bmc-enforcer-rules/pom.xml | 2 +- bmc-events/pom.xml | 4 +- bmc-examples/pom.xml | 6 +- bmc-filestorage/pom.xml | 4 +- bmc-fleetappsmanagement/pom.xml | 4 +- bmc-fleetsoftwareupdate/pom.xml | 4 +- bmc-full/pom.xml | 4 +- bmc-functions/pom.xml | 4 +- bmc-fusionapps/pom.xml | 4 +- bmc-gdp/pom.xml | 4 +- bmc-generativeai/pom.xml | 4 +- .../CreateDedicatedAiClusterDetails.java | 64 +- .../CreateHostedApplicationBaseDetails.java | 16 +- .../model/CreateHostedApplicationDetails.java | 16 +- .../CreateHostedApplicationIamDetails.java | 16 +- ...CreateHostedApplicationStorageDetails.java | 8 +- .../model/CreateSemanticStoreDetails.java | 88 ++ .../CustomSemanticStoreModelSelection.java | 147 +++ .../model/DedicatedAiCluster.java | 41 +- .../model/DedicatedAiClusterSummary.java | 16 +- .../DefaultSemanticStoreModelSelection.java | 100 ++ .../generativeai/model/HostedApplication.java | 14 +- .../model/HostedApplicationBase.java | 14 +- .../model/HostedApplicationIam.java | 14 +- .../model/HostedApplicationStorage.java | 14 +- .../HostedApplicationStorageSummary.java | 10 +- .../generativeai/model/InboundAuthConfig.java | 15 +- .../bmc/generativeai/model/SemanticStore.java | 88 ++ .../model/SemanticStoreModelSelection.java | 128 ++ .../model/SemanticStoreSummary.java | 88 ++ .../bmc/generativeai/model/StorageConfig.java | 8 +- .../model/UpdateSemanticStoreDetails.java | 88 ++ .../reflect-config.json | 41 + bmc-generativeaiagent/pom.xml | 4 +- bmc-generativeaiagentruntime/pom.xml | 4 +- bmc-generativeaidata/pom.xml | 4 +- .../generativeaidata/CancelEnrichmentJob.java | 81 -- .../CancelEnrichmentJobAsync.java | 77 -- .../CancelEnrichmentJobAsyncClient.java | 296 ----- .../CancelEnrichmentJobClient.java | 283 ---- ...EnrichmentJobs.java => EnrichmentJob.java} | 65 +- ...tJobAsync.java => EnrichmentJobAsync.java} | 55 +- ...ent.java => EnrichmentJobAsyncClient.java} | 156 ++- ...bsClient.java => EnrichmentJobClient.java} | 253 +++- ...tors.java => EnrichmentJobPaginators.java} | 10 +- ...Waiters.java => EnrichmentJobWaiters.java} | 10 +- .../GenerateEnrichmentJob.java | 81 -- .../GenerateEnrichmentJobAsyncClient.java | 300 ----- .../GenerateEnrichmentJobClient.java | 288 ---- ...rateSqlFromNlJob.java => GenerateSql.java} | 43 +- ...mNlJobAsync.java => GenerateSqlAsync.java} | 36 +- ...lient.java => GenerateSqlAsyncClient.java} | 72 +- ...tJobClient.java => GenerateSqlClient.java} | 108 +- .../GenerateSqlFromNlJobClient.java | 285 ---- .../generativeaidata/GenerateSqlWaiters.java | 135 ++ .../generativeaidata/GetEnrichmentJob.java | 88 -- .../GetEnrichmentJobAsync.java | 76 -- .../GetEnrichmentJobAsyncClient.java | 293 ----- .../ListEnrichmentJobsAsync.java | 77 -- .../model/CompletionMode.java | 43 + ...eltaRefreshEnrichmentJobConfiguration.java | 23 +- .../generativeaidata/model/EnrichmentJob.java | 92 +- .../model/EnrichmentJobSummary.java | 106 +- .../model/EnrichmentJobType.java | 5 +- .../model/GenerateEnrichmentJobDetails.java | 16 +- .../model/GenerateSqlFromNlDetails.java | 104 ++ .../model/GenerateSqlFromNlJob.java | 124 +- .../bmc/generativeaidata/model/JobOutput.java | 3 +- .../GetGenerateSqlFromNlJobRequest.java | 229 ++++ .../CancelEnrichmentJobResponse.java | 82 +- .../responses/GenerateSqlFromNlResponse.java | 16 +- .../GetGenerateSqlFromNlJobResponse.java | 181 +++ .../reflect-config.json | 6 + bmc-generativeaiinference/pom.xml | 4 +- bmc-genericartifactscontent/pom.xml | 4 +- bmc-goldengate/pom.xml | 4 +- bmc-governancerulescontrolplane/pom.xml | 4 +- bmc-healthchecks/pom.xml | 4 +- bmc-identity/pom.xml | 4 +- bmc-identitydataplane/pom.xml | 4 +- bmc-identitydomains/pom.xml | 4 +- bmc-integration/pom.xml | 4 +- bmc-iot/pom.xml | 4 +- bmc-jms/pom.xml | 4 +- bmc-jmsjavadownloads/pom.xml | 4 +- bmc-jmsutils/pom.xml | 4 +- bmc-keymanagement/pom.xml | 4 +- bmc-licensemanager/pom.xml | 4 +- bmc-limits/pom.xml | 4 +- bmc-limitsincrease/pom.xml | 4 +- bmc-loadbalancer/pom.xml | 4 +- bmc-lockbox/pom.xml | 4 +- bmc-loganalytics/pom.xml | 4 +- bmc-logging/pom.xml | 4 +- bmc-loggingingestion/pom.xml | 4 +- bmc-loggingsearch/pom.xml | 4 +- bmc-lustrefilestorage/pom.xml | 4 +- bmc-managedkafka/pom.xml | 4 +- bmc-managementagent/pom.xml | 4 +- bmc-managementdashboard/pom.xml | 4 +- bmc-marketplace/pom.xml | 4 +- bmc-marketplaceprivateoffer/pom.xml | 4 +- bmc-marketplacepublisher/pom.xml | 4 +- bmc-mediaservices/pom.xml | 4 +- bmc-mngdmac/pom.xml | 4 +- bmc-modeldeployment/pom.xml | 4 +- bmc-monitoring/pom.xml | 4 +- bmc-multicloud/pom.xml | 4 +- bmc-mysql/pom.xml | 4 +- .../bmc/mysql/BlueGreenDeployments.java | 224 ++++ .../bmc/mysql/BlueGreenDeploymentsAsync.java | 201 +++ .../BlueGreenDeploymentsAsyncClient.java | 519 ++++++++ .../bmc/mysql/BlueGreenDeploymentsClient.java | 585 +++++++++ .../mysql/BlueGreenDeploymentsPaginators.java | 165 +++ .../mysql/BlueGreenDeploymentsWaiters.java | 138 ++ .../bmc/mysql/model/BlueGreenDeployment.java | 899 +++++++++++++ .../model/BlueGreenDeploymentCollection.java | 133 ++ .../model/BlueGreenDeploymentSummary.java | 780 +++++++++++ .../BlueGreenDeploymentSwitchoverStatus.java | 58 + ...eGreenDeploymentTargetDbSystemDetails.java | 284 ++++ ...BlueGreenDeploymentCompartmentDetails.java | 147 +++ ...eateBlueGreenDeploymentChannelDetails.java | 369 ++++++ .../CreateBlueGreenDeploymentDetails.java | 387 ++++++ ...eGreenDeploymentTargetDbSystemDetails.java | 296 +++++ .../com/oracle/bmc/mysql/model/SslMode.java | 16 +- .../SwitchoverBlueGreenDeploymentDetails.java | 145 +++ .../UpdateBlueGreenDeploymentDetails.java | 227 ++++ .../mysql/model/WorkRequestOperationType.java | 5 + ...BlueGreenDeploymentCompartmentRequest.java | 392 ++++++ .../CreateBlueGreenDeploymentRequest.java | 297 +++++ .../DeleteBlueGreenDeploymentRequest.java | 267 ++++ .../GetBlueGreenDeploymentRequest.java | 267 ++++ .../ListBlueGreenDeploymentsRequest.java | 576 ++++++++ .../SwitchoverBlueGreenDeploymentRequest.java | 384 ++++++ .../UpdateBlueGreenDeploymentRequest.java | 332 +++++ ...lueGreenDeploymentCompartmentResponse.java | 188 +++ .../CreateBlueGreenDeploymentResponse.java | 262 ++++ .../DeleteBlueGreenDeploymentResponse.java | 186 +++ .../GetBlueGreenDeploymentResponse.java | 266 ++++ .../ListBlueGreenDeploymentsResponse.java | 236 ++++ ...SwitchoverBlueGreenDeploymentResponse.java | 262 ++++ .../UpdateBlueGreenDeploymentResponse.java | 186 +++ .../oci-java-sdk-mysql/reflect-config.json | 158 +++ bmc-networkfirewall/pom.xml | 4 +- bmc-networkloadbalancer/pom.xml | 4 +- bmc-nosql/pom.xml | 4 +- .../bmc-objectstorage-combined/pom.xml | 6 +- .../bmc-objectstorage-extensions/pom.xml | 8 +- .../bmc-objectstorage-generated/pom.xml | 4 +- bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- bmc-ocicontrolcenter/pom.xml | 4 +- bmc-ocvp/pom.xml | 4 +- bmc-oda/pom.xml | 4 +- bmc-onesubscription/pom.xml | 4 +- bmc-ons/pom.xml | 4 +- bmc-opa/pom.xml | 4 +- bmc-opensearch/pom.xml | 4 +- bmc-operatoraccesscontrol/pom.xml | 4 +- bmc-opsi/pom.xml | 4 +- bmc-optimizer/pom.xml | 4 +- bmc-osmanagementhub/pom.xml | 4 +- bmc-ospgateway/pom.xml | 4 +- bmc-osubbillingschedule/pom.xml | 4 +- bmc-osuborganizationsubscription/pom.xml | 4 +- bmc-osubsubscription/pom.xml | 4 +- bmc-osubusage/pom.xml | 4 +- .../bmc-jersey-examples/pom.xml | 8 +- .../bmc-jersey3-examples/pom.xml | 8 +- .../native-maven-example/pom.xml | 6 +- bmc-other-examples/pom.xml | 2 +- bmc-psa/pom.xml | 4 +- bmc-psql/pom.xml | 4 +- bmc-queue/pom.xml | 4 +- bmc-recovery/pom.xml | 4 +- .../oracle/bmc/recovery/DatabaseRecovery.java | 113 +- .../bmc/recovery/DatabaseRecoveryAsync.java | 113 +- .../recovery/DatabaseRecoveryAsyncClient.java | 220 +++- .../bmc/recovery/DatabaseRecoveryClient.java | 202 ++- .../recovery/DatabaseRecoveryPaginators.java | 118 ++ .../bmc/recovery/DatabaseRecoveryWaiters.java | 107 ++ .../recovery/model/BackupCloudLocation.java | 58 + .../model/CreateLongTermBackupDetails.java | 462 +++++++ .../CreateRecoveryServiceSubnetDetails.java | 65 + .../bmc/recovery/model/LongTermBackup.java | 1157 +++++++++++++++++ .../model/LongTermBackupCollection.java | 134 ++ .../recovery/model/LongTermBackupSummary.java | 1048 +++++++++++++++ .../bmc/recovery/model/OperationType.java | 4 + .../bmc/recovery/model/ProtectedDatabase.java | 50 + .../model/ProtectedDatabaseSummary.java | 50 + .../recovery/model/RecoveryServiceSubnet.java | 65 + .../model/RecoveryServiceSubnetSummary.java | 65 + .../recovery/model/RetentionPeriodValue.java | 249 ++++ .../model/UpdateLongTermBackupDetails.java | 304 +++++ .../UpdateRecoveryServiceSubnetDetails.java | 65 + .../requests/CancelLongTermBackupRequest.java | 292 +++++ ...ancelProtectedDatabaseDeletionRequest.java | 55 +- ...geProtectedDatabaseCompartmentRequest.java | 53 +- ...eProtectedDatabaseSubscriptionRequest.java | 53 +- ...ngeProtectionPolicyCompartmentRequest.java | 53 +- ...coveryServiceSubnetCompartmentRequest.java | 53 +- .../requests/CreateLongTermBackupRequest.java | 282 ++++ .../requests/DeleteLongTermBackupRequest.java | 240 ++++ ...ProtectedDatabaseConfigurationRequest.java | 53 +- .../requests/GetLongTermBackupRequest.java | 192 +++ .../requests/ListLongTermBackupsRequest.java | 514 ++++++++ .../ListProtectedDatabasesRequest.java | 36 +- .../ListProtectionPoliciesRequest.java | 46 +- ...eduleProtectedDatabaseDeletionRequest.java | 53 +- .../requests/UpdateLongTermBackupRequest.java | 303 +++++ .../CancelLongTermBackupResponse.java | 177 +++ .../CreateLongTermBackupResponse.java | 284 ++++ .../DeleteLongTermBackupResponse.java | 177 +++ .../responses/GetLongTermBackupResponse.java | 210 +++ .../ListLongTermBackupsResponse.java | 230 ++++ .../UpdateLongTermBackupResponse.java | 177 +++ .../oci-java-sdk-recovery/reflect-config.json | 108 ++ bmc-redis/pom.xml | 4 +- bmc-resourceanalytics/pom.xml | 4 +- bmc-resourcemanager/pom.xml | 4 +- bmc-resourcescheduler/pom.xml | 4 +- bmc-resourcesearch/pom.xml | 4 +- bmc-rover/pom.xml | 4 +- bmc-sch/pom.xml | 4 +- bmc-secrets/pom.xml | 4 +- bmc-securityattribute/pom.xml | 4 +- bmc-self/pom.xml | 4 +- bmc-servicecatalog/pom.xml | 4 +- bmc-servicemanagerproxy/pom.xml | 4 +- bmc-shaded/bmc-shaded-full/pom.xml | 2 +- bmc-shaded/pom.xml | 2 +- bmc-stackmonitoring/pom.xml | 4 +- bmc-streaming/pom.xml | 4 +- bmc-tenantmanagercontrolplane/pom.xml | 4 +- bmc-threatintelligence/pom.xml | 4 +- bmc-usage/pom.xml | 4 +- bmc-usageapi/pom.xml | 4 +- bmc-vault/pom.xml | 6 +- bmc-vbsinst/pom.xml | 4 +- bmc-visualbuilder/pom.xml | 4 +- bmc-vnmonitoring/pom.xml | 4 +- bmc-vulnerabilityscanning/pom.xml | 4 +- bmc-waa/pom.xml | 4 +- bmc-waas/pom.xml | 4 +- bmc-waf/pom.xml | 4 +- bmc-wlms/pom.xml | 4 +- bmc-workrequests/pom.xml | 4 +- bmc-zpr/pom.xml | 4 +- pom.xml | 6 +- 394 files changed, 35968 insertions(+), 3240 deletions(-) create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservation.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationCollection.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationSummary.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationCollection.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfiguration.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationCollection.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationSummary.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationSummary.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeBdsCapacityReservationCompartmentDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/ComputeCapacityReservations.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationConfigurationDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationConfigurationDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateBdsCapacityReservationConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ChangeBdsCapacityReservationCompartmentRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateBdsCapacityReservationConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationAssociatedConfigurationsRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationConfigurationsRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationsRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateBdsCapacityReservationConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ChangeBdsCapacityReservationCompartmentResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateBdsCapacityReservationConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationAssociatedConfigurationsResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationConfigurationsResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationsResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationResponse.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CustomSemanticStoreModelSelection.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DefaultSemanticStoreModelSelection.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreModelSelection.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsync.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{ListEnrichmentJobs.java => EnrichmentJob.java} (52%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{GenerateEnrichmentJobAsync.java => EnrichmentJobAsync.java} (53%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{ListEnrichmentJobsAsyncClient.java => EnrichmentJobAsyncClient.java} (65%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{ListEnrichmentJobsClient.java => EnrichmentJobClient.java} (53%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{ListEnrichmentJobsPaginators.java => EnrichmentJobPaginators.java} (96%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{GetEnrichmentJobWaiters.java => EnrichmentJobWaiters.java} (97%) delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{GenerateSqlFromNlJob.java => GenerateSql.java} (59%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{GenerateSqlFromNlJobAsync.java => GenerateSqlAsync.java} (60%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{GenerateSqlFromNlJobAsyncClient.java => GenerateSqlAsyncClient.java} (83%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{GetEnrichmentJobClient.java => GenerateSqlClient.java} (78%) delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java create mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlWaiters.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJob.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsync.java create mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/CompletionMode.java create mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/requests/GetGenerateSqlFromNlJobRequest.java create mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GetGenerateSqlFromNlJobResponse.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeployments.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsync.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsyncClient.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsClient.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsPaginators.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsWaiters.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeployment.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentCollection.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSummary.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSwitchoverStatus.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentTargetDbSystemDetails.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChangeBlueGreenDeploymentCompartmentDetails.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentChannelDetails.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentDetails.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentTargetDbSystemDetails.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SwitchoverBlueGreenDeploymentDetails.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateBlueGreenDeploymentDetails.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ChangeBlueGreenDeploymentCompartmentRequest.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CreateBlueGreenDeploymentRequest.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/DeleteBlueGreenDeploymentRequest.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/GetBlueGreenDeploymentRequest.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ListBlueGreenDeploymentsRequest.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/SwitchoverBlueGreenDeploymentRequest.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/UpdateBlueGreenDeploymentRequest.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ChangeBlueGreenDeploymentCompartmentResponse.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CreateBlueGreenDeploymentResponse.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/DeleteBlueGreenDeploymentResponse.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/GetBlueGreenDeploymentResponse.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ListBlueGreenDeploymentsResponse.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/SwitchoverBlueGreenDeploymentResponse.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/UpdateBlueGreenDeploymentResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/BackupCloudLocation.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateLongTermBackupDetails.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackup.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupCollection.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupSummary.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RetentionPeriodValue.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateLongTermBackupDetails.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelLongTermBackupRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CreateLongTermBackupRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteLongTermBackupRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/GetLongTermBackupRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListLongTermBackupsRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/UpdateLongTermBackupRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelLongTermBackupResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CreateLongTermBackupResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/DeleteLongTermBackupResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/GetLongTermBackupResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ListLongTermBackupsResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/UpdateLongTermBackupResponse.java 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: * *

    *
  • Iterating over the Response objects returned by the list operation. These are referred to @@ -34,10 +34,10 @@ * available. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class ListEnrichmentJobsPaginators { - private final ListEnrichmentJobs client; +public class EnrichmentJobPaginators { + private final EnrichmentJob client; - public ListEnrichmentJobsPaginators(ListEnrichmentJobs client) { + public EnrichmentJobPaginators(EnrichmentJob client) { this.client = client; } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobWaiters.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobWaiters.java similarity index 97% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobWaiters.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobWaiters.java index c08c80dae5b..fa8ccde87af 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobWaiters.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobWaiters.java @@ -9,18 +9,18 @@ /** * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different - * resources of GetEnrichmentJob. + * resources of EnrichmentJob. * *

    The default configuration used is defined by {@link * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GetEnrichmentJobWaiters { +public class EnrichmentJobWaiters { private final java.util.concurrent.ExecutorService executorService; - private final GetEnrichmentJob client; + private final EnrichmentJob client; - public GetEnrichmentJobWaiters( - java.util.concurrent.ExecutorService executorService, GetEnrichmentJob client) { + public EnrichmentJobWaiters( + java.util.concurrent.ExecutorService executorService, EnrichmentJob client) { this.executorService = executorService; this.client = client; } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.java deleted file mode 100644 index 2b08e8a2e0a..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.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 GenerateEnrichmentJob extends AutoCloseable { - - /** Rebuilds the client from scratch. Useful to refresh certificates. */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * - * @param endpoint The endpoint of the service. - */ - void setEndpoint(String endpoint); - - /** Gets the set endpoint for REST call (ex, https://www.example.com) */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - * - *

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

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

    If no known Region could be determined, it will create an endpoint based on the default - * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. Set - * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm - * specific endpoint template, otherwise set it to "false" - * - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint - * template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Creates a new asynchronous EnrichmentJob. - * - * @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); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java deleted file mode 100644 index 4701ad8c5fc..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java +++ /dev/null @@ -1,300 +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 GenerateEnrichmentJob 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 GenerateEnrichmentJobAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient - implements GenerateEnrichmentJobAsync { - /** Service instance for GenerateEnrichmentJob. */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateEnrichmentJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateEnrichmentJobAsyncClient.class); - - GenerateEnrichmentJobAsyncClient( - 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, GenerateEnrichmentJobAsyncClient> { - 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 GenerateEnrichmentJobAsyncClient build( - @jakarta.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - return new GenerateEnrichmentJobAsyncClient(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 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( - "GenerateEnrichmentJob", - "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); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public GenerateEnrichmentJobAsyncClient( - 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 GenerateEnrichmentJobAsyncClient( - 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 GenerateEnrichmentJobAsyncClient( - 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 GenerateEnrichmentJobAsyncClient( - 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 GenerateEnrichmentJobAsyncClient( - 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 GenerateEnrichmentJobAsyncClient( - 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 GenerateEnrichmentJobAsyncClient( - 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/GenerateEnrichmentJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java deleted file mode 100644 index 8a464a4d814..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java +++ /dev/null @@ -1,288 +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 GenerateEnrichmentJobClient extends com.oracle.bmc.http.internal.BaseSyncClient - implements GenerateEnrichmentJob { - /** Service instance for GenerateEnrichmentJob. */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateEnrichmentJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateEnrichmentJobClient.class); - - GenerateEnrichmentJobClient( - 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, GenerateEnrichmentJobClient> { - 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 GenerateEnrichmentJobClient build( - @jakarta.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - return new GenerateEnrichmentJobClient(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 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( - "GenerateEnrichmentJob", - "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(); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public GenerateEnrichmentJobClient( - 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 GenerateEnrichmentJobClient( - 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 GenerateEnrichmentJobClient( - 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 GenerateEnrichmentJobClient( - 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 GenerateEnrichmentJobClient( - 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 GenerateEnrichmentJobClient( - 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 GenerateEnrichmentJobClient( - 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/GenerateSqlFromNlJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSql.java similarity index 59% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJob.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSql.java index 64d0ef48507..10f0323b6e0 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJob.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSql.java @@ -13,7 +13,7 @@ * breaker configuration is defined by the user. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GenerateSqlFromNlJob extends AutoCloseable { +public interface GenerateSql extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ void refreshClient(); @@ -66,6 +66,22 @@ public interface GenerateSqlFromNlJob extends AutoCloseable { /** * Generates a SQL query from a natural language input for the specified SemanticStore. * + *

    This operation creates a GenerateSqlFromNlJob. The request can either be processed as a + * background job or wait for completion, depending on completionMode. + * + *

    If modelId is provided, the service validates it and uses it for schema-linking in table + * selection, SQL generation, and SQL refinement. If modelId is omitted, the service default + * model is used. The response includes the modelId used for generation. + * + *

    Clients should inspect lifecycleState in the response: - If lifecycleState is SUCCEEDED, + * SQL generation is complete and the result is available in jobOutput. - If lifecycleState is + * ACCEPTED or IN_PROGRESS, poll GetGenerateSqlFromNlJob using the returned job id. - If + * lifecycleState is FAILED or CANCELED, SQL generation did not complete. See lifecycleDetails + * for more information. + * + *

    The GetGenerateSqlFromNlJob endpoint is the source of truth for final job state and result + * availability. + * * @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 @@ -78,4 +94,29 @@ public interface GenerateSqlFromNlJob extends AutoCloseable { * API. */ GenerateSqlFromNlResponse generateSqlFromNl(GenerateSqlFromNlRequest request); + + /** + * Retrieves the current state of a GenerateSqlFromNlJob. Clients should poll this endpoint + * until lifecycleState is SUCCEEDED or FAILED. When lifecycleState is SUCCEEDED, the result is + * available in jobOutput. The returned job includes the modelId used for generation. + * + * @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 + * GetGenerateSqlFromNlJob API. + */ + GetGenerateSqlFromNlJobResponse getGenerateSqlFromNlJob(GetGenerateSqlFromNlJobRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + GenerateSqlWaiters getWaiters(); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsync.java similarity index 60% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsync.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsync.java index b8a5b8ebb08..05b54b6bc07 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsync.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsync.java @@ -9,7 +9,7 @@ /** A description of the ReferenceService API. in progress */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GenerateSqlFromNlJobAsync extends AutoCloseable { +public interface GenerateSqlAsync extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ void refreshClient(); @@ -62,6 +62,22 @@ public interface GenerateSqlFromNlJobAsync extends AutoCloseable { /** * Generates a SQL query from a natural language input for the specified SemanticStore. * + *

    This operation creates a GenerateSqlFromNlJob. The request can either be processed as a + * background job or wait for completion, depending on completionMode. + * + *

    If modelId is provided, the service validates it and uses it for schema-linking in table + * selection, SQL generation, and SQL refinement. If modelId is omitted, the service default + * model is used. The response includes the modelId used for generation. + * + *

    Clients should inspect lifecycleState in the response: - If lifecycleState is SUCCEEDED, + * SQL generation is complete and the result is available in jobOutput. - If lifecycleState is + * ACCEPTED or IN_PROGRESS, poll GetGenerateSqlFromNlJob using the returned job id. - If + * lifecycleState is FAILED or CANCELED, SQL generation did not complete. See lifecycleDetails + * for more information. + * + *

    The GetGenerateSqlFromNlJob endpoint is the source of truth for final job state and result + * availability. + * * @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, @@ -74,4 +90,22 @@ java.util.concurrent.Future generateSqlFromNl( com.oracle.bmc.responses.AsyncHandler< GenerateSqlFromNlRequest, GenerateSqlFromNlResponse> handler); + + /** + * Retrieves the current state of a GenerateSqlFromNlJob. Clients should poll this endpoint + * until lifecycleState is SUCCEEDED or FAILED. When lifecycleState is SUCCEEDED, the result is + * available in jobOutput. The returned job includes the modelId used for generation. + * + * @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 getGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + handler); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsyncClient.java similarity index 83% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsyncClient.java index fe96aa82e68..2161ccd07a1 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsyncClient.java @@ -11,7 +11,7 @@ import java.util.Objects; /** - * Async client implementation for GenerateSqlFromNlJob service.
    + * Async client implementation for GenerateSql 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 GenerateSqlFromNlJobAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient - implements GenerateSqlFromNlJobAsync { - /** Service instance for GenerateSqlFromNlJob. */ +public class GenerateSqlAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements GenerateSqlAsync { + /** Service instance for GenerateSql. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateSqlFromNlJobClient.class.getName()) + .serviceName(GenerateSqlClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( "https://inference.generativeai.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateSqlFromNlJobAsyncClient.class); + org.slf4j.LoggerFactory.getLogger(GenerateSqlAsyncClient.class); - GenerateSqlFromNlJobAsyncClient( + GenerateSqlAsyncClient( 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, GenerateSqlFromNlJobAsyncClient> { + 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 GenerateSqlFromNlJobAsyncClient build( + public GenerateSqlAsyncClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { - return new GenerateSqlFromNlJobAsyncClient(this, authenticationDetailsProvider); + return new GenerateSqlAsyncClient(this, authenticationDetailsProvider); } } @@ -111,7 +110,7 @@ public java.util.concurrent.Future generateSqlFromNl( return clientCall(request, GenerateSqlFromNlResponse::builder) .logger(LOG, "generateSqlFromNl") .serviceDetails( - "GenerateSqlFromNlJob", + "GenerateSql", "GenerateSqlFromNl", "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl") .method(com.oracle.bmc.http.client.Method.POST) @@ -137,6 +136,41 @@ public java.util.concurrent.Future generateSqlFromNl( .callAsync(handler); } + @Override + public java.util.concurrent.Future getGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + handler) { + + Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); + + Validate.notBlank( + request.getGenerateSqlFromNlJobId(), "generateSqlFromNlJobId must not be blank"); + + return clientCall(request, GetGenerateSqlFromNlJobResponse::builder) + .logger(LOG, "getGenerateSqlFromNlJob") + .serviceDetails( + "GenerateSql", + "GetGenerateSqlFromNlJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GetGenerateSqlFromNlJob") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetGenerateSqlFromNlJobRequest::builder) + .basePath("/20260325") + .appendPathParam("semanticStores") + .appendPathParam(request.getSemanticStoreId()) + .appendPathParam("generateSqlFromNlJobs") + .appendPathParam(request.getGenerateSqlFromNlJobId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob.class, + GetGenerateSqlFromNlJobResponse.Builder::generateSqlFromNlJob) + .handleResponseHeaderString( + "opc-request-id", GetGenerateSqlFromNlJobResponse.Builder::opcRequestId) + .callAsync(handler); + } + /** * Create a new client instance. * @@ -144,7 +178,7 @@ public java.util.concurrent.Future generateSqlFromNl( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(builder(), authenticationDetailsProvider); } @@ -157,7 +191,7 @@ public GenerateSqlFromNlJobAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(builder().configuration(configuration), authenticationDetailsProvider); @@ -172,7 +206,7 @@ public GenerateSqlFromNlJobAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -191,7 +225,7 @@ public GenerateSqlFromNlJobAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -215,7 +249,7 @@ public GenerateSqlFromNlJobAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -242,7 +276,7 @@ public GenerateSqlFromNlJobAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -273,7 +307,7 @@ public GenerateSqlFromNlJobAsyncClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( 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/GetEnrichmentJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlClient.java similarity index 78% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlClient.java index f37ee4c5497..9124897ebf1 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlClient.java @@ -13,23 +13,23 @@ import java.util.Objects; @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GetEnrichmentJobClient extends com.oracle.bmc.http.internal.BaseSyncClient - implements GetEnrichmentJob { - /** Service instance for GetEnrichmentJob. */ +public class GenerateSqlClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements GenerateSql { + /** Service instance for GenerateSql. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(GetEnrichmentJobClient.class.getName()) + .serviceName(GenerateSqlClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( "https://inference.generativeai.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetEnrichmentJobClient.class); + org.slf4j.LoggerFactory.getLogger(GenerateSqlClient.class); - private final GetEnrichmentJobWaiters waiters; + private final GenerateSqlWaiters waiters; - GetEnrichmentJobClient( + GenerateSqlClient( com.oracle.bmc.common.ClientBuilderBase builder, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, java.util.concurrent.ExecutorService executorService) { @@ -49,13 +49,13 @@ public class GetEnrichmentJobClient extends com.oracle.bmc.http.internal.BaseSyn new java.util.concurrent.LinkedBlockingQueue(), com.oracle.bmc.internal.ClientThreadFactory.builder() .isDaemon(true) - .nameFormat("GetEnrichmentJob-waiters-%d") + .nameFormat("GenerateSql-waiters-%d") .build()); threadPoolExecutor.allowCoreThreadTimeOut(true); executorService = threadPoolExecutor; } - this.waiters = new GetEnrichmentJobWaiters(executorService, this); + this.waiters = new GenerateSqlWaiters(executorService, this); } /** @@ -72,7 +72,7 @@ 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) { @@ -102,11 +102,11 @@ public Builder executorService(java.util.concurrent.ExecutorService executorServ * @param authenticationDetailsProvider authentication details provider * @return the client */ - public GetEnrichmentJobClient build( + public GenerateSqlClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { - return new GetEnrichmentJobClient(this, authenticationDetailsProvider, executorService); + return new GenerateSqlClient(this, authenticationDetailsProvider, executorService); } } @@ -121,39 +121,77 @@ public void setRegion(String regionId) { } @Override - public GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request) { + public GenerateSqlFromNlResponse generateSqlFromNl(GenerateSqlFromNlRequest request) { + Objects.requireNonNull( + request.getGenerateSqlFromNlDetails(), "generateSqlFromNlDetails is required"); Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); - Validate.notBlank(request.getEnrichmentJobId(), "enrichmentJobId must not be blank"); + return clientCall(request, GenerateSqlFromNlResponse::builder) + .logger(LOG, "generateSqlFromNl") + .serviceDetails( + "GenerateSql", + "GenerateSqlFromNl", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateSqlFromNlRequest::builder) + .basePath("/20260325") + .appendPathParam("semanticStores") + .appendPathParam(request.getSemanticStoreId()) + .appendPathParam("actions") + .appendPathParam("generateSqlFromNl") + .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.GenerateSqlFromNlJob.class, + GenerateSqlFromNlResponse.Builder::generateSqlFromNlJob) + .handleResponseHeaderString("etag", GenerateSqlFromNlResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GenerateSqlFromNlResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", GenerateSqlFromNlResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public GetGenerateSqlFromNlJobResponse getGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request) { + + Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); + + Validate.notBlank( + request.getGenerateSqlFromNlJobId(), "generateSqlFromNlJobId must not be blank"); - return clientCall(request, GetEnrichmentJobResponse::builder) - .logger(LOG, "getEnrichmentJob") + return clientCall(request, GetGenerateSqlFromNlJobResponse::builder) + .logger(LOG, "getGenerateSqlFromNlJob") .serviceDetails( - "GetEnrichmentJob", - "GetEnrichmentJob", - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob") + "GenerateSql", + "GetGenerateSqlFromNlJob", + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GetGenerateSqlFromNlJob") .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(GetEnrichmentJobRequest::builder) + .requestBuilder(GetGenerateSqlFromNlJobRequest::builder) .basePath("/20260325") .appendPathParam("semanticStores") .appendPathParam(request.getSemanticStoreId()) - .appendPathParam("enrichmentJobs") - .appendPathParam(request.getEnrichmentJobId()) + .appendPathParam("generateSqlFromNlJobs") + .appendPathParam(request.getGenerateSqlFromNlJobId()) .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) + com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob.class, + GetGenerateSqlFromNlJobResponse.Builder::generateSqlFromNlJob) .handleResponseHeaderString( - "opc-request-id", GetEnrichmentJobResponse.Builder::opcRequestId) + "opc-request-id", GetGenerateSqlFromNlJobResponse.Builder::opcRequestId) .callSync(); } @Override - public GetEnrichmentJobWaiters getWaiters() { + public GenerateSqlWaiters getWaiters() { return waiters; } @@ -164,7 +202,7 @@ public GetEnrichmentJobWaiters getWaiters() { * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(builder(), authenticationDetailsProvider, null); } @@ -177,7 +215,7 @@ public GetEnrichmentJobClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(builder().configuration(configuration), authenticationDetailsProvider, null); @@ -192,7 +230,7 @@ public GetEnrichmentJobClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -212,7 +250,7 @@ public GetEnrichmentJobClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -237,7 +275,7 @@ public GetEnrichmentJobClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -265,7 +303,7 @@ public GetEnrichmentJobClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -297,7 +335,7 @@ public GetEnrichmentJobClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -336,7 +374,7 @@ public GetEnrichmentJobClient( * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated - public GetEnrichmentJobClient( + public GenerateSqlClient( 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/GenerateSqlFromNlJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java deleted file mode 100644 index f9babfec537..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java +++ /dev/null @@ -1,285 +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 GenerateSqlFromNlJobClient extends com.oracle.bmc.http.internal.BaseSyncClient - implements GenerateSqlFromNlJob { - /** Service instance for GenerateSqlFromNlJob. */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateSqlFromNlJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateSqlFromNlJobClient.class); - - GenerateSqlFromNlJobClient( - 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, GenerateSqlFromNlJobClient> { - 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 GenerateSqlFromNlJobClient build( - @jakarta.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - return new GenerateSqlFromNlJobClient(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 GenerateSqlFromNlResponse generateSqlFromNl(GenerateSqlFromNlRequest request) { - Objects.requireNonNull( - request.getGenerateSqlFromNlDetails(), "generateSqlFromNlDetails is required"); - - Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); - - return clientCall(request, GenerateSqlFromNlResponse::builder) - .logger(LOG, "generateSqlFromNl") - .serviceDetails( - "GenerateSqlFromNlJob", - "GenerateSqlFromNl", - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder(GenerateSqlFromNlRequest::builder) - .basePath("/20260325") - .appendPathParam("semanticStores") - .appendPathParam(request.getSemanticStoreId()) - .appendPathParam("actions") - .appendPathParam("generateSqlFromNl") - .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.GenerateSqlFromNlJob.class, - GenerateSqlFromNlResponse.Builder::generateSqlFromNlJob) - .handleResponseHeaderString("etag", GenerateSqlFromNlResponse.Builder::etag) - .handleResponseHeaderString( - "opc-request-id", GenerateSqlFromNlResponse.Builder::opcRequestId) - .handleResponseHeaderString( - "opc-work-request-id", GenerateSqlFromNlResponse.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 GenerateSqlFromNlJobClient( - 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 GenerateSqlFromNlJobClient( - 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 GenerateSqlFromNlJobClient( - 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 GenerateSqlFromNlJobClient( - 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 GenerateSqlFromNlJobClient( - 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 GenerateSqlFromNlJobClient( - 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 GenerateSqlFromNlJobClient( - 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/GenerateSqlWaiters.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlWaiters.java new file mode 100644 index 00000000000..127219c0960 --- /dev/null +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlWaiters.java @@ -0,0 +1,135 @@ +/** + * 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.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of GenerateSql. + * + *

    The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GenerateSqlWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final GenerateSql client; + + public GenerateSqlWaiters( + java.util.concurrent.ExecutorService executorService, GenerateSql client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState 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 com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + forGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request, + com.oracle.bmc.generativeaidata.model.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 forGenerateSqlFromNlJob( + 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< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + forGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request, + com.oracle.bmc.generativeaidata.model.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 forGenerateSqlFromNlJob( + 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 Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + forGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.generativeaidata.model.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 forGenerateSqlFromNlJob( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for GenerateSqlFromNlJob. + private com.oracle.bmc.waiter.Waiter< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + forGenerateSqlFromNlJob( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetGenerateSqlFromNlJobRequest request, + final com.oracle.bmc.generativeaidata.model.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< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse>() { + @Override + public GetGenerateSqlFromNlJobResponse apply( + GetGenerateSqlFromNlJobRequest request) { + return client.getGenerateSqlFromNlJob(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetGenerateSqlFromNlJobResponse response) { + return targetStatesSet.contains( + response.getGenerateSqlFromNlJob().getLifecycleState()); + } + }, + false), + request); + } +} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJob.java deleted file mode 100644 index a09ee308f20..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJob.java +++ /dev/null @@ -1,88 +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 GetEnrichmentJob extends AutoCloseable { - - /** Rebuilds the client from scratch. Useful to refresh certificates. */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * - * @param endpoint The endpoint of the service. - */ - void setEndpoint(String endpoint); - - /** Gets the set endpoint for REST call (ex, https://www.example.com) */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - * - *

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

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

    If no known Region could be determined, it will create an endpoint based on the default - * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. Set - * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm - * specific endpoint template, otherwise set it to "false" - * - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint - * template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Gets an EnrichmentJob 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 GetEnrichmentJob - * API. - */ - GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request); - - /** - * Gets the pre-configured waiters available for resources for this service. - * - * @return The service waiters. - */ - GetEnrichmentJobWaiters getWaiters(); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java deleted file mode 100644 index 92944ac4b5d..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java +++ /dev/null @@ -1,76 +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 GetEnrichmentJobAsync extends AutoCloseable { - - /** Rebuilds the client from scratch. Useful to refresh certificates. */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * - * @param endpoint The endpoint of the serice. - */ - void setEndpoint(String endpoint); - - /** Gets the set endpoint for REST call (ex, https://www.example.com) */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - * - *

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

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

    If no known Region could be determined, it will create an endpoint based on the default - * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. Set - * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm - * specific endpoint template, otherwise set it to "false" - * - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint - * template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Gets an EnrichmentJob 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 getEnrichmentJob( - GetEnrichmentJobRequest request, - com.oracle.bmc.responses.AsyncHandler - handler); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java deleted file mode 100644 index 97f294f5c1f..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java +++ /dev/null @@ -1,293 +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 GetEnrichmentJob 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 GetEnrichmentJobAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient - implements GetEnrichmentJobAsync { - /** Service instance for GetEnrichmentJob. */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(GetEnrichmentJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetEnrichmentJobAsyncClient.class); - - GetEnrichmentJobAsyncClient( - 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, GetEnrichmentJobAsyncClient> { - 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 GetEnrichmentJobAsyncClient build( - @jakarta.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - return new GetEnrichmentJobAsyncClient(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 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( - "GetEnrichmentJob", - "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); - } - - /** - * Create a new client instance. - * - * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) - * @deprecated Use the {@link #builder() builder} instead. - */ - @Deprecated - public GetEnrichmentJobAsyncClient( - 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 GetEnrichmentJobAsyncClient( - 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 GetEnrichmentJobAsyncClient( - 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 GetEnrichmentJobAsyncClient( - 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 GetEnrichmentJobAsyncClient( - 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 GetEnrichmentJobAsyncClient( - 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 GetEnrichmentJobAsyncClient( - 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/ListEnrichmentJobsAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsync.java deleted file mode 100644 index 991db8da3e5..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsync.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 ListEnrichmentJobsAsync 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); - - /** - * Lists EnrichmentJobs in a semantic store. - * - * @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/model/CompletionMode.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/CompletionMode.java new file mode 100644 index 00000000000..8e44a0deebf --- /dev/null +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/CompletionMode.java @@ -0,0 +1,43 @@ +/** + * 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.model; + +/** + * Controls whether GenerateSqlFromNl, ExecuteSql, or Query waits for execution to finish or submits + * background execution. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public enum CompletionMode implements com.oracle.bmc.http.internal.BmcEnum { + WaitForCompletion("WAIT_FOR_COMPLETION"), + BackgroundJob("BACKGROUND_JOB"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CompletionMode v : CompletionMode.values()) { + map.put(v.getValue(), v); + } + } + + CompletionMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CompletionMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CompletionMode: " + key); + } +} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/DeltaRefreshEnrichmentJobConfiguration.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/DeltaRefreshEnrichmentJobConfiguration.java index 928ce25b4d9..e5678a7e9c7 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/DeltaRefreshEnrichmentJobConfiguration.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/DeltaRefreshEnrichmentJobConfiguration.java @@ -7,9 +7,10 @@ /** * A DeltaRefreshEnrichmentJobConfiguration is an EnrichmentJobConfiguration [indicated by the first * item under {@code allOf}, which is a reference to EnrichmentJobConfiguration] that describes the - * database schema that will be the scope of the enrichment job and the schedule on which the job - * will run. As distinguished by enrichmentJobType [with specific characteristics defined by the - * second item under {@code allOf}].
    + * database schema that will be the scope of the delta refresh enrichment job. As distinguished by + * enrichmentJobType [with specific characteristics defined by the second item under {@code allOf}]. + * deltaRefreshSchedule is optional, is not used by the service, and is retained only for backward + * compatibility. It should be treated as deprecated.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -46,12 +47,16 @@ public Builder schemaName(String schemaName) { this.__explicitlySet__.add("schemaName"); return this; } - /** Schedule for occurrences of Delta Refresh jobs */ + /** + * Deprecated schedule for occurrences of Delta Refresh jobs. This value is not used by the + * service. + */ @com.fasterxml.jackson.annotation.JsonProperty("deltaRefreshSchedule") private Object deltaRefreshSchedule; /** - * Schedule for occurrences of Delta Refresh jobs + * Deprecated schedule for occurrences of Delta Refresh jobs. This value is not used by the + * service. * * @param deltaRefreshSchedule the value to set * @return this builder @@ -116,12 +121,16 @@ public String getSchemaName() { return schemaName; } - /** Schedule for occurrences of Delta Refresh jobs */ + /** + * Deprecated schedule for occurrences of Delta Refresh jobs. This value is not used by the + * service. + */ @com.fasterxml.jackson.annotation.JsonProperty("deltaRefreshSchedule") private final Object deltaRefreshSchedule; /** - * Schedule for occurrences of Delta Refresh jobs + * Deprecated schedule for occurrences of Delta Refresh jobs. This value is not used by the + * service. * * @return the value */ diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJob.java index f8b527cc27f..2d56f09ebd0 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJob.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJob.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaidata.model; /** - * Object representing to EnrichmentJob. ocidEntityType: generativeaiEnrichmentJob adLocality: + * Object representing to EnrichmentJob. ocidEntityType: generativeaisemanticstorejob adLocality: * regional
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly @@ -29,6 +29,7 @@ public final class EnrichmentJob extends com.oracle.bmc.http.client.internal.Exp "displayName", "enrichmentJobType", "enrichmentJobConfiguration", + "modelId", "timeAccepted", "timeStarted", "timeFinished", @@ -46,6 +47,7 @@ public EnrichmentJob( String displayName, EnrichmentJobType enrichmentJobType, EnrichmentJobConfiguration enrichmentJobConfiguration, + String modelId, java.util.Date timeAccepted, java.util.Date timeStarted, java.util.Date timeFinished, @@ -62,6 +64,7 @@ public EnrichmentJob( this.displayName = displayName; this.enrichmentJobType = enrichmentJobType; this.enrichmentJobConfiguration = enrichmentJobConfiguration; + this.modelId = modelId; this.timeAccepted = timeAccepted; this.timeStarted = timeStarted; this.timeFinished = timeFinished; @@ -75,12 +78,12 @@ public EnrichmentJob( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Unique identifier that is immutable on creation. */ + /** The OCID of the Semantic Store job. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * * @param id the value to set * @return this builder @@ -146,15 +149,19 @@ public Builder displayName(String displayName) { return this; } /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given - * schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given + * schema), Partial Build (selected tables and/or supported objects in a given schema), and + * Delta Refresh (objects in a given schema that have changed since the previous enrichment + * job). */ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given - * schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given + * schema), Partial Build (selected tables and/or supported objects in a given schema), and + * Delta Refresh (objects in a given schema that have changed since the previous enrichment + * job). * * @param enrichmentJobType the value to set * @return this builder @@ -174,6 +181,27 @@ public Builder enrichmentJobConfiguration( this.__explicitlySet__.add("enrichmentJobConfiguration"); return this; } + /** + * The generative AI modelId used for 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 used for 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; + } /** * The date and time that the enrichment job was accepted in the format of an RFC3339 * datetime string. @@ -265,12 +293,12 @@ public Builder percentComplete(Float percentComplete) { this.__explicitlySet__.add("percentComplete"); return this; } - /** The lifecycleState of GenerateSqlJob. */ + /** The lifecycle state of the EnrichmentJob. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. * * @param lifecycleState the value to set * @return this builder @@ -351,6 +379,7 @@ public EnrichmentJob build() { this.displayName, this.enrichmentJobType, this.enrichmentJobConfiguration, + this.modelId, this.timeAccepted, this.timeStarted, this.timeFinished, @@ -386,6 +415,9 @@ public Builder copy(EnrichmentJob model) { if (model.wasPropertyExplicitlySet("enrichmentJobConfiguration")) { this.enrichmentJobConfiguration(model.getEnrichmentJobConfiguration()); } + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } if (model.wasPropertyExplicitlySet("timeAccepted")) { this.timeAccepted(model.getTimeAccepted()); } @@ -426,12 +458,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Unique identifier that is immutable on creation. */ + /** The OCID of the Semantic Store job. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * * @return the value */ @@ -489,15 +521,19 @@ public String getDisplayName() { } /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) - * and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given + * schema), Partial Build (selected tables and/or supported objects in a given schema), and + * Delta Refresh (objects in a given schema that have changed since the previous enrichment + * job). */ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private final EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) - * and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given + * schema), Partial Build (selected tables and/or supported objects in a given schema), and + * Delta Refresh (objects in a given schema that have changed since the previous enrichment + * job). * * @return the value */ @@ -512,6 +548,25 @@ public EnrichmentJobConfiguration getEnrichmentJobConfiguration() { return enrichmentJobConfiguration; } + /** + * The generative AI modelId used for 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 used for 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; + } + /** * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime * string. @@ -593,12 +648,12 @@ public Float getPercentComplete() { return percentComplete; } - /** The lifecycleState of GenerateSqlJob. */ + /** The lifecycle state of the EnrichmentJob. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. * * @return the value */ @@ -679,6 +734,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", enrichmentJobType=").append(String.valueOf(this.enrichmentJobType)); sb.append(", enrichmentJobConfiguration=") .append(String.valueOf(this.enrichmentJobConfiguration)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); @@ -709,6 +765,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.enrichmentJobType, other.enrichmentJobType) && java.util.Objects.equals( this.enrichmentJobConfiguration, other.enrichmentJobConfiguration) + && java.util.Objects.equals(this.modelId, other.modelId) && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) && java.util.Objects.equals(this.timeStarted, other.timeStarted) && java.util.Objects.equals(this.timeFinished, other.timeFinished) @@ -739,6 +796,7 @@ public int hashCode() { + (this.enrichmentJobConfiguration == null ? 43 : this.enrichmentJobConfiguration.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobSummary.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobSummary.java index 7b6509cc281..6bba58dbe39 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobSummary.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobSummary.java @@ -28,6 +28,7 @@ public final class EnrichmentJobSummary "semanticStoreId", "displayName", "enrichmentJobType", + "modelId", "timeAccepted", "lifecycleState", "freeformTags", @@ -39,6 +40,7 @@ public EnrichmentJobSummary( String semanticStoreId, String displayName, EnrichmentJobType enrichmentJobType, + String modelId, java.util.Date timeAccepted, LifecycleState lifecycleState, java.util.Map freeformTags, @@ -49,6 +51,7 @@ public EnrichmentJobSummary( this.semanticStoreId = semanticStoreId; this.displayName = displayName; this.enrichmentJobType = enrichmentJobType; + this.modelId = modelId; this.timeAccepted = timeAccepted; this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; @@ -58,12 +61,12 @@ public EnrichmentJobSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Unique identifier that is immutable on creation. */ + /** The OCID of the Semantic Store job. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * * @param id the value to set * @return this builder @@ -75,16 +78,16 @@ public Builder id(String id) { } /** * Owning SemanticStore - * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for a - * GenerateSqlJob. + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * EnrichmentJob. */ @com.fasterxml.jackson.annotation.JsonProperty("semanticStoreId") private String semanticStoreId; /** * Owning SemanticStore - * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for a - * GenerateSqlJob. + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * EnrichmentJob. * * @param semanticStoreId the value to set * @return this builder @@ -114,15 +117,19 @@ public Builder displayName(String displayName) { return this; } /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given - * schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given + * schema), Partial Build (selected tables and/or supported objects in a given schema), and + * Delta Refresh (objects in a given schema that have changed since the previous enrichment + * job). */ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given - * schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given + * schema), Partial Build (selected tables and/or supported objects in a given schema), and + * Delta Refresh (objects in a given schema that have changed since the previous enrichment + * job). * * @param enrichmentJobType the value to set * @return this builder @@ -132,6 +139,27 @@ public Builder enrichmentJobType(EnrichmentJobType enrichmentJobType) { this.__explicitlySet__.add("enrichmentJobType"); return this; } + /** + * The generative AI modelId used for 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 used for 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; + } /** * The date and time that the enrichment job was accepted in the format of an RFC3339 * datetime string. @@ -151,12 +179,12 @@ public Builder timeAccepted(java.util.Date timeAccepted) { this.__explicitlySet__.add("timeAccepted"); return this; } - /** The lifecycleState of GenerateSqlJob. */ + /** The lifecycle state of the EnrichmentJob. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. * * @param lifecycleState the value to set * @return this builder @@ -235,6 +263,7 @@ public EnrichmentJobSummary build() { this.semanticStoreId, this.displayName, this.enrichmentJobType, + this.modelId, this.timeAccepted, this.lifecycleState, this.freeformTags, @@ -260,6 +289,9 @@ public Builder copy(EnrichmentJobSummary model) { if (model.wasPropertyExplicitlySet("enrichmentJobType")) { this.enrichmentJobType(model.getEnrichmentJobType()); } + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } if (model.wasPropertyExplicitlySet("timeAccepted")) { this.timeAccepted(model.getTimeAccepted()); } @@ -288,12 +320,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Unique identifier that is immutable on creation. */ + /** The OCID of the Semantic Store job. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * * @return the value */ @@ -303,16 +335,16 @@ public String getId() { /** * Owning SemanticStore - * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for a - * GenerateSqlJob. + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * EnrichmentJob. */ @com.fasterxml.jackson.annotation.JsonProperty("semanticStoreId") private final String semanticStoreId; /** * Owning SemanticStore - * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for a - * GenerateSqlJob. + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * EnrichmentJob. * * @return the value */ @@ -338,15 +370,19 @@ public String getDisplayName() { } /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) - * and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given + * schema), Partial Build (selected tables and/or supported objects in a given schema), and + * Delta Refresh (objects in a given schema that have changed since the previous enrichment + * job). */ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private final EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) - * and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given + * schema), Partial Build (selected tables and/or supported objects in a given schema), and + * Delta Refresh (objects in a given schema that have changed since the previous enrichment + * job). * * @return the value */ @@ -354,6 +390,25 @@ public EnrichmentJobType getEnrichmentJobType() { return enrichmentJobType; } + /** + * The generative AI modelId used for 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 used for 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; + } + /** * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime * string. @@ -371,12 +426,12 @@ public java.util.Date getTimeAccepted() { return timeAccepted; } - /** The lifecycleState of GenerateSqlJob. */ + /** The lifecycle state of the EnrichmentJob. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. * * @return the value */ @@ -454,6 +509,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", semanticStoreId=").append(String.valueOf(this.semanticStoreId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", enrichmentJobType=").append(String.valueOf(this.enrichmentJobType)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -477,6 +533,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.semanticStoreId, other.semanticStoreId) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.enrichmentJobType, other.enrichmentJobType) + && java.util.Objects.equals(this.modelId, other.modelId) && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -497,6 +554,7 @@ public int hashCode() { result = (result * PRIME) + (this.enrichmentJobType == null ? 43 : this.enrichmentJobType.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); result = (result * PRIME) diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobType.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobType.java index cc7ea09a5da..85b6cfe6009 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobType.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobType.java @@ -5,8 +5,9 @@ package com.oracle.bmc.generativeaidata.model; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and - * Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given schema), + * Partial Build (selected tables and/or supported objects in a given schema), and Delta Refresh + * (objects in a given schema that have changed since the previous enrichment job). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public enum EnrichmentJobType implements com.oracle.bmc.http.internal.BmcEnum { diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateEnrichmentJobDetails.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateEnrichmentJobDetails.java index 882255184a9..fa5eb74376c 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateEnrichmentJobDetails.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateEnrichmentJobDetails.java @@ -83,16 +83,12 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given - * schema) and Partial Build (Selected tables and/or supported objects in a given schema). - */ + /** Deprecated. Use EnrichmentJobConfiguration.enrichmentJobType instead. */ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given - * schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Deprecated. Use EnrichmentJobConfiguration.enrichmentJobType instead. * * @param enrichmentJobType the value to set * @return this builder @@ -233,16 +229,12 @@ public String getDisplayName() { return displayName; } - /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) - * and Partial Build (Selected tables and/or supported objects in a given schema). - */ + /** Deprecated. Use EnrichmentJobConfiguration.enrichmentJobType instead. */ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private final EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) - * and Partial Build (Selected tables and/or supported objects in a given schema). + * Deprecated. Use EnrichmentJobConfiguration.enrichmentJobType instead. * * @return the value */ diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlDetails.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlDetails.java index f811ff1ee49..e66fe06c0e3 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlDetails.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlDetails.java @@ -27,6 +27,8 @@ public final class GenerateSqlFromNlDetails "description", "displayName", "inputNaturalLanguageQuery", + "modelId", + "completionMode", "freeformTags", "definedTags" }) @@ -34,12 +36,16 @@ public GenerateSqlFromNlDetails( String description, String displayName, String inputNaturalLanguageQuery, + String modelId, + CompletionMode completionMode, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.description = description; this.displayName = displayName; this.inputNaturalLanguageQuery = inputNaturalLanguageQuery; + this.modelId = modelId; + this.completionMode = completionMode; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -103,6 +109,50 @@ public Builder inputNaturalLanguageQuery(String inputNaturalLanguageQuery) { this.__explicitlySet__.add("inputNaturalLanguageQuery"); return this; } + /** + * The generative AI modelId to use for Generate SQL. 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 Generate SQL. 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; + } + /** + * Controls whether GenerateSqlFromNl should be accepted as a background job or wait for + * completion. BACKGROUND_JOB accepts the request for background processing and returns a + * pollable job. WAIT_FOR_COMPLETION waits for completion within the service-defined + * timeout. + */ + @com.fasterxml.jackson.annotation.JsonProperty("completionMode") + private CompletionMode completionMode; + + /** + * Controls whether GenerateSqlFromNl should be accepted as a background job or wait for + * completion. BACKGROUND_JOB accepts the request for background processing and returns a + * pollable job. WAIT_FOR_COMPLETION waits for completion within the service-defined + * timeout. + * + * @param completionMode the value to set + * @return this builder + */ + public Builder completionMode(CompletionMode completionMode) { + this.completionMode = completionMode; + this.__explicitlySet__.add("completionMode"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -152,6 +202,8 @@ public GenerateSqlFromNlDetails build() { this.description, this.displayName, this.inputNaturalLanguageQuery, + this.modelId, + this.completionMode, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -171,6 +223,12 @@ public Builder copy(GenerateSqlFromNlDetails model) { if (model.wasPropertyExplicitlySet("inputNaturalLanguageQuery")) { this.inputNaturalLanguageQuery(model.getInputNaturalLanguageQuery()); } + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } + if (model.wasPropertyExplicitlySet("completionMode")) { + this.completionMode(model.getCompletionMode()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -241,6 +299,44 @@ public String getInputNaturalLanguageQuery() { return inputNaturalLanguageQuery; } + /** + * The generative AI modelId to use for Generate SQL. 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 Generate SQL. 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; + } + + /** + * Controls whether GenerateSqlFromNl should be accepted as a background job or wait for + * completion. BACKGROUND_JOB accepts the request for background processing and returns a + * pollable job. WAIT_FOR_COMPLETION waits for completion within the service-defined timeout. + */ + @com.fasterxml.jackson.annotation.JsonProperty("completionMode") + private final CompletionMode completionMode; + + /** + * Controls whether GenerateSqlFromNl should be accepted as a background job or wait for + * completion. BACKGROUND_JOB accepts the request for background processing and returns a + * pollable job. WAIT_FOR_COMPLETION waits for completion within the service-defined timeout. + * + * @return the value + */ + public CompletionMode getCompletionMode() { + return completionMode; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -294,6 +390,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", inputNaturalLanguageQuery=") .append(String.valueOf(this.inputNaturalLanguageQuery)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); + sb.append(", completionMode=").append(String.valueOf(this.completionMode)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -314,6 +412,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals( this.inputNaturalLanguageQuery, other.inputNaturalLanguageQuery) + && java.util.Objects.equals(this.modelId, other.modelId) + && java.util.Objects.equals(this.completionMode, other.completionMode) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -330,6 +430,10 @@ public int hashCode() { + (this.inputNaturalLanguageQuery == null ? 43 : this.inputNaturalLanguageQuery.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + result = + (result * PRIME) + + (this.completionMode == null ? 43 : this.completionMode.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(); diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlJob.java index f7444079d06..ad143b47da9 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlJob.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlJob.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaidata.model; /** - * Object representing to GenerateSqlFromNlJob. ocidEntityType: generativeaiGenerateSqlFromNlJob + * Object representing to GenerateSqlFromNlJob. ocidEntityType: generativeaisemanticstorejob * adLocality: regional
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly @@ -35,6 +35,7 @@ public final class GenerateSqlFromNlJob "lifecycleState", "lifecycleDetails", "inputNaturalLanguageQuery", + "modelId", "jobOutput", "freeformTags", "definedTags", @@ -51,6 +52,7 @@ public GenerateSqlFromNlJob( LifecycleState lifecycleState, String lifecycleDetails, String inputNaturalLanguageQuery, + String modelId, JobOutput jobOutput, java.util.Map freeformTags, java.util.Map> definedTags, @@ -66,6 +68,7 @@ public GenerateSqlFromNlJob( this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.inputNaturalLanguageQuery = inputNaturalLanguageQuery; + this.modelId = modelId; this.jobOutput = jobOutput; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -74,12 +77,12 @@ public GenerateSqlFromNlJob( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Unique identifier that is immutable on creation. */ + /** The OCID of the Semantic Store job. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * * @param id the value to set * @return this builder @@ -145,14 +148,14 @@ public Builder displayName(String displayName) { return this; } /** - * The date and time that the enrichment job was accepted in the format of an RFC3339 + * The date and time that the GenerateSqlFromNlJob was accepted in the format of an RFC3339 * datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") private java.util.Date timeAccepted; /** - * The date and time that the enrichment job was accepted in the format of an RFC3339 + * The date and time that the GenerateSqlFromNlJob was accepted in the format of an RFC3339 * datetime string. * * @param timeAccepted the value to set @@ -164,14 +167,14 @@ public Builder timeAccepted(java.util.Date timeAccepted) { return this; } /** - * The date and time that the enrichment job was started in the format of an RFC3339 + * The date and time that the GenerateSqlFromNlJob was started in the format of an RFC3339 * datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") private java.util.Date timeStarted; /** - * The date and time that the enrichment job was started in the format of an RFC3339 + * The date and time that the GenerateSqlFromNlJob was started in the format of an RFC3339 * datetime string. * * @param timeStarted the value to set @@ -183,14 +186,14 @@ public Builder timeStarted(java.util.Date timeStarted) { return this; } /** - * The date and time that the enrichment job was finished in the format of an RFC3339 + * The date and time that the GenerateSqlFromNlJob was finished in the format of an RFC3339 * datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") private java.util.Date timeFinished; /** - * The date and time that the enrichment job was finished in the format of an RFC3339 + * The date and time that the GenerateSqlFromNlJob was finished in the format of an RFC3339 * datetime string. * * @param timeFinished the value to set @@ -201,12 +204,22 @@ public Builder timeFinished(java.util.Date timeFinished) { this.__explicitlySet__.add("timeFinished"); return this; } - /** The lifecycleState of GenerateSqlFromNlJob. */ + /** + * The current state of GenerateSqlFromNlJob. + * + *

    - ACCEPTED: Job has been created but not yet started. - IN_PROGRESS: Job is currently + * running. - SUCCEEDED: Job completed successfully. The result is available in jobOutput. - + * FAILED: Job failed. See lifecycleDetails for error information. + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The lifecycleState of GenerateSqlFromNlJob. + * The current state of GenerateSqlFromNlJob. + * + *

    - ACCEPTED: Job has been created but not yet started. - IN_PROGRESS: Job is currently + * running. - SUCCEEDED: Job completed successfully. The result is available in jobOutput. - + * FAILED: Job failed. See lifecycleDetails for error information. * * @param lifecycleState the value to set * @return this builder @@ -258,6 +271,27 @@ public Builder inputNaturalLanguageQuery(String inputNaturalLanguageQuery) { this.__explicitlySet__.add("inputNaturalLanguageQuery"); return this; } + /** + * The generative AI modelId used for Generate SQL. 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 used for Generate SQL. 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.JsonProperty("jobOutput") private JobOutput jobOutput; @@ -342,6 +376,7 @@ public GenerateSqlFromNlJob build() { this.lifecycleState, this.lifecycleDetails, this.inputNaturalLanguageQuery, + this.modelId, this.jobOutput, this.freeformTags, this.definedTags, @@ -384,6 +419,9 @@ public Builder copy(GenerateSqlFromNlJob model) { if (model.wasPropertyExplicitlySet("inputNaturalLanguageQuery")) { this.inputNaturalLanguageQuery(model.getInputNaturalLanguageQuery()); } + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } if (model.wasPropertyExplicitlySet("jobOutput")) { this.jobOutput(model.getJobOutput()); } @@ -409,12 +447,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Unique identifier that is immutable on creation. */ + /** The OCID of the Semantic Store job. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * * @return the value */ @@ -472,15 +510,15 @@ public String getDisplayName() { } /** - * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime - * string. + * The date and time that the GenerateSqlFromNlJob was accepted in the format of an RFC3339 + * datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") private final java.util.Date timeAccepted; /** - * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime - * string. + * The date and time that the GenerateSqlFromNlJob was accepted in the format of an RFC3339 + * datetime string. * * @return the value */ @@ -489,15 +527,15 @@ public java.util.Date getTimeAccepted() { } /** - * The date and time that the enrichment job was started in the format of an RFC3339 datetime - * string. + * The date and time that the GenerateSqlFromNlJob was started in the format of an RFC3339 + * datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") private final java.util.Date timeStarted; /** - * The date and time that the enrichment job was started in the format of an RFC3339 datetime - * string. + * The date and time that the GenerateSqlFromNlJob was started in the format of an RFC3339 + * datetime string. * * @return the value */ @@ -506,15 +544,15 @@ public java.util.Date getTimeStarted() { } /** - * The date and time that the enrichment job was finished in the format of an RFC3339 datetime - * string. + * The date and time that the GenerateSqlFromNlJob was finished in the format of an RFC3339 + * datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") private final java.util.Date timeFinished; /** - * The date and time that the enrichment job was finished in the format of an RFC3339 datetime - * string. + * The date and time that the GenerateSqlFromNlJob was finished in the format of an RFC3339 + * datetime string. * * @return the value */ @@ -522,12 +560,22 @@ public java.util.Date getTimeFinished() { return timeFinished; } - /** The lifecycleState of GenerateSqlFromNlJob. */ + /** + * The current state of GenerateSqlFromNlJob. + * + *

    - ACCEPTED: Job has been created but not yet started. - IN_PROGRESS: Job is currently + * running. - SUCCEEDED: Job completed successfully. The result is available in jobOutput. - + * FAILED: Job failed. See lifecycleDetails for error information. + */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The lifecycleState of GenerateSqlFromNlJob. + * The current state of GenerateSqlFromNlJob. + * + *

    - ACCEPTED: Job has been created but not yet started. - IN_PROGRESS: Job is currently + * running. - SUCCEEDED: Job completed successfully. The result is available in jobOutput. - + * FAILED: Job failed. See lifecycleDetails for error information. * * @return the value */ @@ -573,6 +621,25 @@ public String getInputNaturalLanguageQuery() { return inputNaturalLanguageQuery; } + /** + * The generative AI modelId used for Generate SQL. 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 used for Generate SQL. 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; + } + @com.fasterxml.jackson.annotation.JsonProperty("jobOutput") private final JobOutput jobOutput; @@ -657,6 +724,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", inputNaturalLanguageQuery=") .append(String.valueOf(this.inputNaturalLanguageQuery)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); sb.append(", jobOutput=").append(String.valueOf(this.jobOutput)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -686,6 +754,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals( this.inputNaturalLanguageQuery, other.inputNaturalLanguageQuery) + && java.util.Objects.equals(this.modelId, other.modelId) && java.util.Objects.equals(this.jobOutput, other.jobOutput) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -717,6 +786,7 @@ public int hashCode() { + (this.inputNaturalLanguageQuery == null ? 43 : this.inputNaturalLanguageQuery.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); result = (result * PRIME) + (this.jobOutput == null ? 43 : this.jobOutput.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/JobOutput.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/JobOutput.java index 927eac93bb7..4d8a9cdb373 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/JobOutput.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/JobOutput.java @@ -6,7 +6,8 @@ /** * A JobOutput delivers content generated by the GenerateSQLJob to a given location, which - * corresponds with type-specific characteristics.
    + * corresponds with type-specific characteristics. This field is present on GenerateSqlFromNlJob + * only when lifecycleState is SUCCEEDED. It is omitted for all other lifecycle states.
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/requests/GetGenerateSqlFromNlJobRequest.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/requests/GetGenerateSqlFromNlJobRequest.java new file mode 100644 index 00000000000..f281aac43cc --- /dev/null +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/requests/GetGenerateSqlFromNlJobRequest.java @@ -0,0 +1,229 @@ +/** + * 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.requests; + +import com.oracle.bmc.generativeaidata.model.*; +/** + * Example: Click here to see how to use + * GetGenerateSqlFromNlJobRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetGenerateSqlFromNlJobRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the semantic store */ + private String semanticStoreId; + + /** The OCID of the semantic store */ + public String getSemanticStoreId() { + return semanticStoreId; + } + /** The OCID of the Semantic Store job for a GenerateSqlFromNl job. */ + private String generateSqlFromNlJobId; + + /** The OCID of the Semantic Store job for a GenerateSqlFromNl job. */ + public String getGenerateSqlFromNlJobId() { + return generateSqlFromNlJobId; + } + /** 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< + GetGenerateSqlFromNlJobRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the semantic store */ + private String semanticStoreId = null; + + /** + * The OCID of the semantic store + * + * @param semanticStoreId the value to set + * @return this builder instance + */ + public Builder semanticStoreId(String semanticStoreId) { + this.semanticStoreId = semanticStoreId; + return this; + } + + /** The OCID of the Semantic Store job for a GenerateSqlFromNl job. */ + private String generateSqlFromNlJobId = null; + + /** + * The OCID of the Semantic Store job for a GenerateSqlFromNl job. + * + * @param generateSqlFromNlJobId the value to set + * @return this builder instance + */ + public Builder generateSqlFromNlJobId(String generateSqlFromNlJobId) { + this.generateSqlFromNlJobId = generateSqlFromNlJobId; + 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(GetGenerateSqlFromNlJobRequest o) { + semanticStoreId(o.getSemanticStoreId()); + generateSqlFromNlJobId(o.getGenerateSqlFromNlJobId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetGenerateSqlFromNlJobRequest 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 GetGenerateSqlFromNlJobRequest + */ + public GetGenerateSqlFromNlJobRequest build() { + GetGenerateSqlFromNlJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetGenerateSqlFromNlJobRequest 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 GetGenerateSqlFromNlJobRequest + */ + public GetGenerateSqlFromNlJobRequest buildWithoutInvocationCallback() { + GetGenerateSqlFromNlJobRequest request = new GetGenerateSqlFromNlJobRequest(); + request.semanticStoreId = semanticStoreId; + request.generateSqlFromNlJobId = generateSqlFromNlJobId; + request.opcRequestId = opcRequestId; + return request; + // new GetGenerateSqlFromNlJobRequest(semanticStoreId, generateSqlFromNlJobId, + // 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() + .semanticStoreId(semanticStoreId) + .generateSqlFromNlJobId(generateSqlFromNlJobId) + .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(",semanticStoreId=").append(String.valueOf(this.semanticStoreId)); + sb.append(",generateSqlFromNlJobId=").append(String.valueOf(this.generateSqlFromNlJobId)); + 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 GetGenerateSqlFromNlJobRequest)) { + return false; + } + + GetGenerateSqlFromNlJobRequest other = (GetGenerateSqlFromNlJobRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.semanticStoreId, other.semanticStoreId) + && java.util.Objects.equals( + this.generateSqlFromNlJobId, other.generateSqlFromNlJobId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.semanticStoreId == null ? 43 : this.semanticStoreId.hashCode()); + result = + (result * PRIME) + + (this.generateSqlFromNlJobId == null + ? 43 + : this.generateSqlFromNlJobId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/CancelEnrichmentJobResponse.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/CancelEnrichmentJobResponse.java index b9ec26d3569..721554e7756 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/CancelEnrichmentJobResponse.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/CancelEnrichmentJobResponse.java @@ -8,6 +8,18 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class CancelEnrichmentJobResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -40,20 +52,38 @@ public String getOpcWorkRequestId() { return opcWorkRequestId; } + /** The returned {@code EnrichmentJob} instance. */ + private com.oracle.bmc.generativeaidata.model.EnrichmentJob enrichmentJob; + + /** + * The returned {@code EnrichmentJob} instance. + * + * @return the value + */ + public com.oracle.bmc.generativeaidata.model.EnrichmentJob getEnrichmentJob() { + return enrichmentJob; + } + @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", + "etag", "opcRequestId", - "opcWorkRequestId" + "opcWorkRequestId", + "enrichmentJob" }) private CancelEnrichmentJobResponse( int __httpStatusCode__, java.util.Map> headers, + String etag, String opcRequestId, - String opcWorkRequestId) { + String opcWorkRequestId, + com.oracle.bmc.generativeaidata.model.EnrichmentJob enrichmentJob) { super(__httpStatusCode__, headers); + this.etag = etag; this.opcRequestId = opcRequestId; this.opcWorkRequestId = opcWorkRequestId; + this.enrichmentJob = enrichmentJob; } public static class Builder @@ -74,6 +104,20 @@ public Builder headers(java.util.Map> headers) { return this; } + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -110,6 +154,21 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { return this; } + /** The returned {@code EnrichmentJob} instance. */ + private com.oracle.bmc.generativeaidata.model.EnrichmentJob enrichmentJob; + + /** + * The returned {@code EnrichmentJob} instance. + * + * @param enrichmentJob the value to set + * @return this builder + */ + public Builder enrichmentJob( + com.oracle.bmc.generativeaidata.model.EnrichmentJob enrichmentJob) { + this.enrichmentJob = enrichmentJob; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * @@ -119,8 +178,10 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { public Builder copy(CancelEnrichmentJobResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); + etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); opcWorkRequestId(o.getOpcWorkRequestId()); + enrichmentJob(o.getEnrichmentJob()); return this; } @@ -133,7 +194,12 @@ public Builder copy(CancelEnrichmentJobResponse o) { @Override public CancelEnrichmentJobResponse build() { return new CancelEnrichmentJobResponse( - __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcWorkRequestId, + enrichmentJob); } } @@ -151,8 +217,10 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",enrichmentJob=").append(String.valueOf(enrichmentJob)); sb.append(")"); return sb.toString(); } @@ -168,18 +236,24 @@ public boolean equals(Object o) { CancelEnrichmentJobResponse other = (CancelEnrichmentJobResponse) o; return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.enrichmentJob, other.enrichmentJob); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.enrichmentJob == null ? 43 : this.enrichmentJob.hashCode()); return result; } } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GenerateSqlFromNlResponse.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GenerateSqlFromNlResponse.java index 4546951ea16..d79195d2b2a 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GenerateSqlFromNlResponse.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GenerateSqlFromNlResponse.java @@ -36,15 +36,11 @@ public String getOpcRequestId() { return opcRequestId; } - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. - */ + /** Not used when {@code 200} status is returned */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its - * status. + * Not used when {@code 200} status is returned * * @return the value */ @@ -136,15 +132,11 @@ public Builder opcRequestId(String opcRequestId) { return this; } - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. - */ + /** Not used when {@code 200} status is returned */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query - * its status. + * Not used when {@code 200} status is returned * * @param opcWorkRequestId the value to set * @return this builder diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GetGenerateSqlFromNlJobResponse.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GetGenerateSqlFromNlJobResponse.java new file mode 100644 index 00000000000..20867b0a405 --- /dev/null +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GetGenerateSqlFromNlJobResponse.java @@ -0,0 +1,181 @@ +/** + * 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.responses; + +import com.oracle.bmc.generativeaidata.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetGenerateSqlFromNlJobResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code GenerateSqlFromNlJob} instance. */ + private com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob generateSqlFromNlJob; + + /** + * The returned {@code GenerateSqlFromNlJob} instance. + * + * @return the value + */ + public com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob getGenerateSqlFromNlJob() { + return generateSqlFromNlJob; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "generateSqlFromNlJob" + }) + private GetGenerateSqlFromNlJobResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob generateSqlFromNlJob) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.generateSqlFromNlJob = generateSqlFromNlJob; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetGenerateSqlFromNlJobResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code GenerateSqlFromNlJob} instance. */ + private com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob generateSqlFromNlJob; + + /** + * The returned {@code GenerateSqlFromNlJob} instance. + * + * @param generateSqlFromNlJob the value to set + * @return this builder + */ + public Builder generateSqlFromNlJob( + com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob generateSqlFromNlJob) { + this.generateSqlFromNlJob = generateSqlFromNlJob; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetGenerateSqlFromNlJobResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + generateSqlFromNlJob(o.getGenerateSqlFromNlJob()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetGenerateSqlFromNlJobResponse build() { + return new GetGenerateSqlFromNlJobResponse( + __httpStatusCode__, headers, opcRequestId, generateSqlFromNlJob); + } + } + + /** + * 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(",generateSqlFromNlJob=").append(String.valueOf(generateSqlFromNlJob)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetGenerateSqlFromNlJobResponse)) { + return false; + } + + GetGenerateSqlFromNlJobResponse other = (GetGenerateSqlFromNlJobResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.generateSqlFromNlJob, other.generateSqlFromNlJob); + } + + @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.generateSqlFromNlJob == null + ? 43 + : this.generateSqlFromNlJob.hashCode()); + return result; + } +} diff --git a/bmc-generativeaidata/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeaidata/reflect-config.json b/bmc-generativeaidata/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeaidata/reflect-config.json index a1910edc44d..950507d5156 100644 --- a/bmc-generativeaidata/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeaidata/reflect-config.json +++ b/bmc-generativeaidata/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-generativeaidata/reflect-config.json @@ -1,4 +1,10 @@ [ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.generativeaidata.model.CompletionMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.generativeaidata.model.DatabaseObject", diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index 029252522fe..b0a863aac99 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -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-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 78ba1667fd4..de14e5c02cb 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -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-goldengate/pom.xml b/bmc-goldengate/pom.xml index 107c74fb5a6..501887e369b 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-goldengate @@ -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-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index dc1fa89cbc1..afac99ff134 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -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-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 10c91d31121..e90d37a100f 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-healthchecks @@ -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-identity/pom.xml b/bmc-identity/pom.xml index b6ba67e41a9..09908307fc2 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/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-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index b79b01e8fc4..cc5959a588a 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-identitydataplane @@ -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-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 25d5e5a7768..9b8df863172 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-identitydomains @@ -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-integration/pom.xml b/bmc-integration/pom.xml index 1b34780f72c..9572999d93b 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-integration @@ -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-iot/pom.xml b/bmc-iot/pom.xml index 3dc8e9c47bd..b50cf053352 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-iot @@ -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-jms/pom.xml b/bmc-jms/pom.xml index 8d92367dc52..8899fdb52ab 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-jms @@ -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-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index b4efa61478c..066ee49e048 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -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-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index 0ee49e0f118..7a8386fc394 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-jmsutils @@ -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-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index e4111e623e6..c561d643837 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-keymanagement @@ -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-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 25ed5c7edc5..88b0038edf3 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-licensemanager @@ -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-limits/pom.xml b/bmc-limits/pom.xml index 25c213cbf47..d8c5ae3b61f 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-limits @@ -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-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index 7758ee9df76..8c28f52a960 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-limitsincrease @@ -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-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 9298f05ad38..9720709510c 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/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-lockbox/pom.xml b/bmc-lockbox/pom.xml index 43e991e4544..5b67463ca81 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-lockbox @@ -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-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index e655395003f..80a60bb8d0e 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-loganalytics @@ -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-logging/pom.xml b/bmc-logging/pom.xml index 8550e1cc971..4cbf556510a 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-logging @@ -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-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index ec69ec52eac..248e9a7e443 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-loggingingestion @@ -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-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index e2330071154..3c4c1d847e4 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-loggingsearch @@ -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-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index 9b264e50f3d..96d2038f3c2 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-lustrefilestorage @@ -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-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index 8c0b682dd38..3bff66823d8 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-managedkafka @@ -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-managementagent/pom.xml b/bmc-managementagent/pom.xml index 9b742b83826..d28c1011332 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-managementagent @@ -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-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 45ac7af9973..91fcd802ce3 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-managementdashboard @@ -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-marketplace/pom.xml b/bmc-marketplace/pom.xml index f2c61edcdac..e9df9bbd430 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-marketplace @@ -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-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 08351a91ed8..e555008be62 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -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-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index e4f12034c5f..0d9c06aa4b7 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -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-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 039855dd716..7342ec6c19e 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-mediaservices @@ -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-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index 6eac978c96d..e34d4fc827a 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-mngdmac @@ -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-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index d01fc22caae..68cad40fef5 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-modeldeployment @@ -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-monitoring/pom.xml b/bmc-monitoring/pom.xml index 983fe781586..63b89bbf25c 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-monitoring @@ -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-multicloud/pom.xml b/bmc-multicloud/pom.xml index 34de66011fe..c4e47146c54 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-multicloud @@ -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-mysql/pom.xml b/bmc-mysql/pom.xml index 73a2d2c7997..b4ae299b535 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-mysql @@ -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-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeployments.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeployments.java new file mode 100644 index 00000000000..dfbb7c287c8 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeployments.java @@ -0,0 +1,224 @@ +/** + * 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.mysql; + +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; + +/** + * The API for the MySQL Database Service 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: 20190415") +public interface BlueGreenDeployments 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); + + /** + * Moves only the blue/green deployment wrapper resource into a different compartment. This + * operation does not move the source DB system, target DB system, or replication channel + * referenced by the deployment. When provided, If-Match is checked against ETag values of the + * blue/green deployment. + * + * @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 + * ChangeBlueGreenDeploymentCompartment API. + */ + ChangeBlueGreenDeploymentCompartmentResponse changeBlueGreenDeploymentCompartment( + ChangeBlueGreenDeploymentCompartmentRequest request); + + /** + * Creates a blue/green deployment resource and its replication channel. + * + * @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 + * CreateBlueGreenDeployment API. + */ + CreateBlueGreenDeploymentResponse createBlueGreenDeployment( + CreateBlueGreenDeploymentRequest request); + + /** + * Deletes only the blue/green deployment wrapper resource. This operation does not delete the + * source DB system, target DB system, or replication channel associated with the deployment. + * + * @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 + * DeleteBlueGreenDeployment API. + */ + DeleteBlueGreenDeploymentResponse deleteBlueGreenDeployment( + DeleteBlueGreenDeploymentRequest request); + + /** + * Gets a blue/green deployment 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 + * GetBlueGreenDeployment API. + */ + GetBlueGreenDeploymentResponse getBlueGreenDeployment(GetBlueGreenDeploymentRequest request); + + /** + * Lists blue/green deployments in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

    Example: Click here to see how to use + * ListBlueGreenDeployments API. + */ + ListBlueGreenDeploymentsResponse listBlueGreenDeployments( + ListBlueGreenDeploymentsRequest request); + + /** + * Initiates switchover for a blue/green deployment. + * + *

    This action is asynchronous and supports idempotent retry only when the same + * `opc-retry-token` is reused for an equivalent switchover request on the same blue/green + * deployment. Equivalent request identity includes materially equivalent request parameters + * after applying defaults and preconditions, including the effective `waitTimeInSeconds` from + * the request body and the same `If-Match` value when provided. An empty switchover details + * body and a body that explicitly passes the default `waitTimeInSeconds=300` are equivalent. + * + *

    Requests that change `If-Match` or other material preconditions are treated as new + * requests and follow normal conflict (`409`) or precondition (`412`) handling instead of + * ordinary retry reuse. + * + *

    Switchover outcome and partial/failure conditions are surfaced through `lifecycleState`, + * `lifecycleDetails`, `switchoverStatus`, and `activeDbSystemId` in the blue/green deployment + * resource. + * + *

    When `waitTimeInSeconds` is omitted from the request body, the default wait time applies. + * The effective wait time provides upper bound guidance for waiting while the target DB System + * applies remaining replication changes during switchover processing. + * + * @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 + * SwitchoverBlueGreenDeployment API. + */ + SwitchoverBlueGreenDeploymentResponse switchoverBlueGreenDeployment( + SwitchoverBlueGreenDeploymentRequest request); + + /** + * Updates mutable metadata for a blue/green deployment. Currently only `displayName`, + * `freeformTags`, and `definedTags` can be changed. + * + * @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 + * UpdateBlueGreenDeployment API. + */ + UpdateBlueGreenDeploymentResponse updateBlueGreenDeployment( + UpdateBlueGreenDeploymentRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + BlueGreenDeploymentsWaiters getWaiters(); + + /** + * Gets the pre-configured paginators available for list operations in this service which may + * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} + * interface so that service responses, or resources/records, can be iterated through without + * having to manually deal with pagination and page tokens. + * + * @return The service paginators. + */ + BlueGreenDeploymentsPaginators getPaginators(); +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsync.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsync.java new file mode 100644 index 00000000000..3d883fd0602 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsync.java @@ -0,0 +1,201 @@ +/** + * 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.mysql; + +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; + +/** The API for the MySQL Database Service */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public interface BlueGreenDeploymentsAsync 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); + + /** + * Moves only the blue/green deployment wrapper resource into a different compartment. This + * operation does not move the source DB system, target DB system, or replication channel + * referenced by the deployment. When provided, If-Match is checked against ETag values of the + * blue/green deployment. + * + * @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 + changeBlueGreenDeploymentCompartment( + ChangeBlueGreenDeploymentCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeBlueGreenDeploymentCompartmentRequest, + ChangeBlueGreenDeploymentCompartmentResponse> + handler); + + /** + * Creates a blue/green deployment resource and its replication channel. + * + * @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 createBlueGreenDeployment( + CreateBlueGreenDeploymentRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateBlueGreenDeploymentRequest, CreateBlueGreenDeploymentResponse> + handler); + + /** + * Deletes only the blue/green deployment wrapper resource. This operation does not delete the + * source DB system, target DB system, or replication channel associated with the deployment. + * + * @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 deleteBlueGreenDeployment( + DeleteBlueGreenDeploymentRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteBlueGreenDeploymentRequest, DeleteBlueGreenDeploymentResponse> + handler); + + /** + * Gets a blue/green deployment 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 getBlueGreenDeployment( + GetBlueGreenDeploymentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + handler); + + /** + * Lists blue/green deployments 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 listBlueGreenDeployments( + ListBlueGreenDeploymentsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBlueGreenDeploymentsRequest, ListBlueGreenDeploymentsResponse> + handler); + + /** + * Initiates switchover for a blue/green deployment. + * + *

    This action is asynchronous and supports idempotent retry only when the same + * `opc-retry-token` is reused for an equivalent switchover request on the same blue/green + * deployment. Equivalent request identity includes materially equivalent request parameters + * after applying defaults and preconditions, including the effective `waitTimeInSeconds` from + * the request body and the same `If-Match` value when provided. An empty switchover details + * body and a body that explicitly passes the default `waitTimeInSeconds=300` are equivalent. + * + *

    Requests that change `If-Match` or other material preconditions are treated as new + * requests and follow normal conflict (`409`) or precondition (`412`) handling instead of + * ordinary retry reuse. + * + *

    Switchover outcome and partial/failure conditions are surfaced through `lifecycleState`, + * `lifecycleDetails`, `switchoverStatus`, and `activeDbSystemId` in the blue/green deployment + * resource. + * + *

    When `waitTimeInSeconds` is omitted from the request body, the default wait time applies. + * The effective wait time provides upper bound guidance for waiting while the target DB System + * applies remaining replication changes during switchover processing. + * + * @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 + switchoverBlueGreenDeployment( + SwitchoverBlueGreenDeploymentRequest request, + com.oracle.bmc.responses.AsyncHandler< + SwitchoverBlueGreenDeploymentRequest, + SwitchoverBlueGreenDeploymentResponse> + handler); + + /** + * Updates mutable metadata for a blue/green deployment. Currently only `displayName`, + * `freeformTags`, and `definedTags` can be changed. + * + * @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 updateBlueGreenDeployment( + UpdateBlueGreenDeploymentRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateBlueGreenDeploymentRequest, UpdateBlueGreenDeploymentResponse> + handler); +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsyncClient.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsyncClient.java new file mode 100644 index 00000000000..ac7ff21f60a --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsyncClient.java @@ -0,0 +1,519 @@ +/** + * 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.mysql; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for BlueGreenDeployments 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: 20190415") +public class BlueGreenDeploymentsAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements BlueGreenDeploymentsAsync { + /** Service instance for BlueGreenDeployments. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(BlueGreenDeploymentsClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://mysql.{region}.ocp.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BlueGreenDeploymentsAsyncClient.class); + + BlueGreenDeploymentsAsyncClient( + 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, BlueGreenDeploymentsAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "mysql"; + 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 BlueGreenDeploymentsAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new BlueGreenDeploymentsAsyncClient(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 + changeBlueGreenDeploymentCompartment( + ChangeBlueGreenDeploymentCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeBlueGreenDeploymentCompartmentRequest, + ChangeBlueGreenDeploymentCompartmentResponse> + handler) { + + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + Objects.requireNonNull( + request.getChangeBlueGreenDeploymentCompartmentDetails(), + "changeBlueGreenDeploymentCompartmentDetails is required"); + + return clientCall(request, ChangeBlueGreenDeploymentCompartmentResponse::builder) + .logger(LOG, "changeBlueGreenDeploymentCompartment") + .serviceDetails( + "BlueGreenDeployments", + "ChangeBlueGreenDeploymentCompartment", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/ChangeBlueGreenDeploymentCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeBlueGreenDeploymentCompartmentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendPathParam(request.getBlueGreenDeploymentId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeBlueGreenDeploymentCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeBlueGreenDeploymentCompartmentResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future createBlueGreenDeployment( + CreateBlueGreenDeploymentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateBlueGreenDeploymentRequest, CreateBlueGreenDeploymentResponse> + handler) { + Objects.requireNonNull( + request.getCreateBlueGreenDeploymentDetails(), + "createBlueGreenDeploymentDetails is required"); + + return clientCall(request, CreateBlueGreenDeploymentResponse::builder) + .logger(LOG, "createBlueGreenDeployment") + .serviceDetails("BlueGreenDeployments", "CreateBlueGreenDeployment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateBlueGreenDeploymentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.mysql.model.BlueGreenDeployment.class, + CreateBlueGreenDeploymentResponse.Builder::blueGreenDeployment) + .handleResponseHeaderString("etag", CreateBlueGreenDeploymentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateBlueGreenDeploymentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateBlueGreenDeploymentResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future deleteBlueGreenDeployment( + DeleteBlueGreenDeploymentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteBlueGreenDeploymentRequest, DeleteBlueGreenDeploymentResponse> + handler) { + + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + + return clientCall(request, DeleteBlueGreenDeploymentResponse::builder) + .logger(LOG, "deleteBlueGreenDeployment") + .serviceDetails( + "BlueGreenDeployments", + "DeleteBlueGreenDeployment", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/DeleteBlueGreenDeployment") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteBlueGreenDeploymentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendPathParam(request.getBlueGreenDeploymentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteBlueGreenDeploymentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteBlueGreenDeploymentResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getBlueGreenDeployment( + GetBlueGreenDeploymentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + handler) { + + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + + return clientCall(request, GetBlueGreenDeploymentResponse::builder) + .logger(LOG, "getBlueGreenDeployment") + .serviceDetails( + "BlueGreenDeployments", + "GetBlueGreenDeployment", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/GetBlueGreenDeployment") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetBlueGreenDeploymentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendPathParam(request.getBlueGreenDeploymentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-none-match", request.getIfNoneMatch()) + .handleBody( + com.oracle.bmc.mysql.model.BlueGreenDeployment.class, + GetBlueGreenDeploymentResponse.Builder::blueGreenDeployment) + .handleResponseHeaderString("etag", GetBlueGreenDeploymentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetBlueGreenDeploymentResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listBlueGreenDeployments( + ListBlueGreenDeploymentsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListBlueGreenDeploymentsRequest, ListBlueGreenDeploymentsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListBlueGreenDeploymentsResponse::builder) + .logger(LOG, "listBlueGreenDeployments") + .serviceDetails( + "BlueGreenDeployments", + "ListBlueGreenDeployments", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeploymentCollection/ListBlueGreenDeployments") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListBlueGreenDeploymentsRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("sourceDbSystemId", request.getSourceDbSystemId()) + .appendQueryParam("targetDbSystemId", request.getTargetDbSystemId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection.class, + ListBlueGreenDeploymentsResponse.Builder::blueGreenDeploymentCollection) + .handleResponseHeaderString( + "opc-request-id", ListBlueGreenDeploymentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListBlueGreenDeploymentsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + switchoverBlueGreenDeployment( + SwitchoverBlueGreenDeploymentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + SwitchoverBlueGreenDeploymentRequest, + SwitchoverBlueGreenDeploymentResponse> + handler) { + + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + Objects.requireNonNull( + request.getSwitchoverBlueGreenDeploymentDetails(), + "switchoverBlueGreenDeploymentDetails is required"); + + return clientCall(request, SwitchoverBlueGreenDeploymentResponse::builder) + .logger(LOG, "switchoverBlueGreenDeployment") + .serviceDetails( + "BlueGreenDeployments", + "SwitchoverBlueGreenDeployment", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/SwitchoverBlueGreenDeployment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SwitchoverBlueGreenDeploymentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendPathParam(request.getBlueGreenDeploymentId()) + .appendPathParam("actions") + .appendPathParam("switchover") + .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.mysql.model.BlueGreenDeployment.class, + SwitchoverBlueGreenDeploymentResponse.Builder::blueGreenDeployment) + .handleResponseHeaderString( + "etag", SwitchoverBlueGreenDeploymentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + SwitchoverBlueGreenDeploymentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + SwitchoverBlueGreenDeploymentResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future updateBlueGreenDeployment( + UpdateBlueGreenDeploymentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateBlueGreenDeploymentRequest, UpdateBlueGreenDeploymentResponse> + handler) { + + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + Objects.requireNonNull( + request.getUpdateBlueGreenDeploymentDetails(), + "updateBlueGreenDeploymentDetails is required"); + + return clientCall(request, UpdateBlueGreenDeploymentResponse::builder) + .logger(LOG, "updateBlueGreenDeployment") + .serviceDetails( + "BlueGreenDeployments", + "UpdateBlueGreenDeployment", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/UpdateBlueGreenDeployment") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateBlueGreenDeploymentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendPathParam(request.getBlueGreenDeploymentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", UpdateBlueGreenDeploymentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateBlueGreenDeploymentResponse.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 BlueGreenDeploymentsAsyncClient( + 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 BlueGreenDeploymentsAsyncClient( + 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 BlueGreenDeploymentsAsyncClient( + 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 BlueGreenDeploymentsAsyncClient( + 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 BlueGreenDeploymentsAsyncClient( + 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 BlueGreenDeploymentsAsyncClient( + 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 BlueGreenDeploymentsAsyncClient( + 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-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsClient.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsClient.java new file mode 100644 index 00000000000..a05a534fd11 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsClient.java @@ -0,0 +1,585 @@ +/** + * 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.mysql; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.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: 20190415") +public class BlueGreenDeploymentsClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements BlueGreenDeployments { + /** Service instance for BlueGreenDeployments. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(BlueGreenDeploymentsClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://mysql.{region}.ocp.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BlueGreenDeploymentsClient.class); + + private final BlueGreenDeploymentsWaiters waiters; + + private final BlueGreenDeploymentsPaginators paginators; + + BlueGreenDeploymentsClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("BlueGreenDeployments-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new BlueGreenDeploymentsWaiters(executorService, this); + + this.paginators = new BlueGreenDeploymentsPaginators(this); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, BlueGreenDeploymentsClient> { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "mysql"; + com.oracle.bmc.internal.DeveloperToolConfiguration + .throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public BlueGreenDeploymentsClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new BlueGreenDeploymentsClient( + this, authenticationDetailsProvider, executorService); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public ChangeBlueGreenDeploymentCompartmentResponse changeBlueGreenDeploymentCompartment( + ChangeBlueGreenDeploymentCompartmentRequest request) { + + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + Objects.requireNonNull( + request.getChangeBlueGreenDeploymentCompartmentDetails(), + "changeBlueGreenDeploymentCompartmentDetails is required"); + + return clientCall(request, ChangeBlueGreenDeploymentCompartmentResponse::builder) + .logger(LOG, "changeBlueGreenDeploymentCompartment") + .serviceDetails( + "BlueGreenDeployments", + "ChangeBlueGreenDeploymentCompartment", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/ChangeBlueGreenDeploymentCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeBlueGreenDeploymentCompartmentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendPathParam(request.getBlueGreenDeploymentId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeBlueGreenDeploymentCompartmentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ChangeBlueGreenDeploymentCompartmentResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public CreateBlueGreenDeploymentResponse createBlueGreenDeployment( + CreateBlueGreenDeploymentRequest request) { + Objects.requireNonNull( + request.getCreateBlueGreenDeploymentDetails(), + "createBlueGreenDeploymentDetails is required"); + + return clientCall(request, CreateBlueGreenDeploymentResponse::builder) + .logger(LOG, "createBlueGreenDeployment") + .serviceDetails("BlueGreenDeployments", "CreateBlueGreenDeployment", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateBlueGreenDeploymentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.mysql.model.BlueGreenDeployment.class, + CreateBlueGreenDeploymentResponse.Builder::blueGreenDeployment) + .handleResponseHeaderString("etag", CreateBlueGreenDeploymentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CreateBlueGreenDeploymentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + CreateBlueGreenDeploymentResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public DeleteBlueGreenDeploymentResponse deleteBlueGreenDeployment( + DeleteBlueGreenDeploymentRequest request) { + + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + + return clientCall(request, DeleteBlueGreenDeploymentResponse::builder) + .logger(LOG, "deleteBlueGreenDeployment") + .serviceDetails( + "BlueGreenDeployments", + "DeleteBlueGreenDeployment", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/DeleteBlueGreenDeployment") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteBlueGreenDeploymentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendPathParam(request.getBlueGreenDeploymentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteBlueGreenDeploymentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteBlueGreenDeploymentResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public GetBlueGreenDeploymentResponse getBlueGreenDeployment( + GetBlueGreenDeploymentRequest request) { + + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + + return clientCall(request, GetBlueGreenDeploymentResponse::builder) + .logger(LOG, "getBlueGreenDeployment") + .serviceDetails( + "BlueGreenDeployments", + "GetBlueGreenDeployment", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/GetBlueGreenDeployment") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetBlueGreenDeploymentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendPathParam(request.getBlueGreenDeploymentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-none-match", request.getIfNoneMatch()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.mysql.model.BlueGreenDeployment.class, + GetBlueGreenDeploymentResponse.Builder::blueGreenDeployment) + .handleResponseHeaderString("etag", GetBlueGreenDeploymentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetBlueGreenDeploymentResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListBlueGreenDeploymentsResponse listBlueGreenDeployments( + ListBlueGreenDeploymentsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListBlueGreenDeploymentsResponse::builder) + .logger(LOG, "listBlueGreenDeployments") + .serviceDetails( + "BlueGreenDeployments", + "ListBlueGreenDeployments", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeploymentCollection/ListBlueGreenDeployments") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListBlueGreenDeploymentsRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("sourceDbSystemId", request.getSourceDbSystemId()) + .appendQueryParam("targetDbSystemId", request.getTargetDbSystemId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection.class, + ListBlueGreenDeploymentsResponse.Builder::blueGreenDeploymentCollection) + .handleResponseHeaderString( + "opc-request-id", ListBlueGreenDeploymentsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListBlueGreenDeploymentsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public SwitchoverBlueGreenDeploymentResponse switchoverBlueGreenDeployment( + SwitchoverBlueGreenDeploymentRequest request) { + + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + Objects.requireNonNull( + request.getSwitchoverBlueGreenDeploymentDetails(), + "switchoverBlueGreenDeploymentDetails is required"); + + return clientCall(request, SwitchoverBlueGreenDeploymentResponse::builder) + .logger(LOG, "switchoverBlueGreenDeployment") + .serviceDetails( + "BlueGreenDeployments", + "SwitchoverBlueGreenDeployment", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/SwitchoverBlueGreenDeployment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SwitchoverBlueGreenDeploymentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendPathParam(request.getBlueGreenDeploymentId()) + .appendPathParam("actions") + .appendPathParam("switchover") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.mysql.model.BlueGreenDeployment.class, + SwitchoverBlueGreenDeploymentResponse.Builder::blueGreenDeployment) + .handleResponseHeaderString( + "etag", SwitchoverBlueGreenDeploymentResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + SwitchoverBlueGreenDeploymentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + SwitchoverBlueGreenDeploymentResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public UpdateBlueGreenDeploymentResponse updateBlueGreenDeployment( + UpdateBlueGreenDeploymentRequest request) { + + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + Objects.requireNonNull( + request.getUpdateBlueGreenDeploymentDetails(), + "updateBlueGreenDeploymentDetails is required"); + + return clientCall(request, UpdateBlueGreenDeploymentResponse::builder) + .logger(LOG, "updateBlueGreenDeployment") + .serviceDetails( + "BlueGreenDeployments", + "UpdateBlueGreenDeployment", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/UpdateBlueGreenDeployment") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateBlueGreenDeploymentRequest::builder) + .basePath("/20190415") + .appendPathParam("blueGreenDeployments") + .appendPathParam(request.getBlueGreenDeploymentId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", UpdateBlueGreenDeploymentResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateBlueGreenDeploymentResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public BlueGreenDeploymentsWaiters getWaiters() { + return waiters; + } + + @Override + public BlueGreenDeploymentsPaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public BlueGreenDeploymentsClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public BlueGreenDeploymentsClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public BlueGreenDeploymentsClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public BlueGreenDeploymentsClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public BlueGreenDeploymentsClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public BlueGreenDeploymentsClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public BlueGreenDeploymentsClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public BlueGreenDeploymentsClient( + 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-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsPaginators.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsPaginators.java new file mode 100644 index 00000000000..67c81d5c746 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsPaginators.java @@ -0,0 +1,165 @@ +/** + * 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.mysql; + +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of BlueGreenDeployments where multiple pages of data may be fetched. Two + * styles of iteration are supported: + * + *

      + *
    • Iterating over the Response objects returned by the list operation. These are referred to + * as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: + * listUsersResponseIterator + *
    • Iterating over the resources/records being listed. These are referred to as + * RecordIterators, and the methods are suffixed with RecordIterator. For example: + * listUsersRecordIterator + *
    + * + * These iterables abstract away the need to write code to manually handle pagination via looping + * and using the page tokens. They will automatically fetch more data from the service when + * required. + * + *

    As an example, if we were using the ListUsers operation in IdentityService, then the {@link + * java.lang.Iterable} returned by calling a ResponseIterator method would iterate over the + * ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have + * to deal with ListUsersResponse objects at all. In either case, pagination will be automatically + * handled so we can iterate until there are no more responses or no more resources/records + * available. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class BlueGreenDeploymentsPaginators { + private final BlueGreenDeployments client; + + public BlueGreenDeploymentsPaginators(BlueGreenDeployments client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listBlueGreenDeployments 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 listBlueGreenDeploymentsResponseIterator( + final ListBlueGreenDeploymentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBlueGreenDeploymentsRequest.Builder, + ListBlueGreenDeploymentsRequest, + ListBlueGreenDeploymentsResponse>( + new java.util.function.Supplier() { + @Override + public ListBlueGreenDeploymentsRequest.Builder get() { + return ListBlueGreenDeploymentsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBlueGreenDeploymentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBlueGreenDeploymentsRequest.Builder>, + ListBlueGreenDeploymentsRequest>() { + @Override + public ListBlueGreenDeploymentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBlueGreenDeploymentsRequest.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< + ListBlueGreenDeploymentsRequest, ListBlueGreenDeploymentsResponse>() { + @Override + public ListBlueGreenDeploymentsResponse apply( + ListBlueGreenDeploymentsRequest request) { + return client.listBlueGreenDeployments(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary} objects contained in responses from + * the listBlueGreenDeployments 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.mysql.model.BlueGreenDeploymentSummary} objects contained in responses + * received from the service. + */ + public Iterable + listBlueGreenDeploymentsRecordIterator(final ListBlueGreenDeploymentsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBlueGreenDeploymentsRequest.Builder, + ListBlueGreenDeploymentsRequest, + ListBlueGreenDeploymentsResponse, + com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary>( + new java.util.function.Supplier() { + @Override + public ListBlueGreenDeploymentsRequest.Builder get() { + return ListBlueGreenDeploymentsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBlueGreenDeploymentsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBlueGreenDeploymentsRequest.Builder>, + ListBlueGreenDeploymentsRequest>() { + @Override + public ListBlueGreenDeploymentsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBlueGreenDeploymentsRequest.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< + ListBlueGreenDeploymentsRequest, ListBlueGreenDeploymentsResponse>() { + @Override + public ListBlueGreenDeploymentsResponse apply( + ListBlueGreenDeploymentsRequest request) { + return client.listBlueGreenDeployments(request); + } + }, + new java.util.function.Function< + ListBlueGreenDeploymentsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListBlueGreenDeploymentsResponse response) { + return response.getBlueGreenDeploymentCollection().getItems(); + } + }); + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsWaiters.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsWaiters.java new file mode 100644 index 00000000000..927006d90a9 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsWaiters.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.mysql; + +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of BlueGreenDeployments. + * + *

    The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class BlueGreenDeploymentsWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final BlueGreenDeployments client; + + public BlueGreenDeploymentsWaiters( + java.util.concurrent.ExecutorService executorService, BlueGreenDeployments client) { + this.executorService = executorService; + this.client = client; + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + forBlueGreenDeployment( + GetBlueGreenDeploymentRequest request, + com.oracle.bmc.mysql.model.BlueGreenDeployment.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 forBlueGreenDeployment( + 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< + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + forBlueGreenDeployment( + GetBlueGreenDeploymentRequest request, + com.oracle.bmc.mysql.model.BlueGreenDeployment.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 forBlueGreenDeployment( + 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< + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + forBlueGreenDeployment( + GetBlueGreenDeploymentRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.mysql.model.BlueGreenDeployment.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 forBlueGreenDeployment( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for BlueGreenDeployment. + private com.oracle.bmc.waiter.Waiter< + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + forBlueGreenDeployment( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetBlueGreenDeploymentRequest request, + final com.oracle.bmc.mysql.model.BlueGreenDeployment.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< + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse>() { + @Override + public GetBlueGreenDeploymentResponse apply( + GetBlueGreenDeploymentRequest request) { + return client.getBlueGreenDeployment(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetBlueGreenDeploymentResponse response) { + return targetStatesSet.contains( + response.getBlueGreenDeployment().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.mysql.model.BlueGreenDeployment.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeployment.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeployment.java new file mode 100644 index 00000000000..687820836df --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeployment.java @@ -0,0 +1,899 @@ +/** + * 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.mysql.model; + +/** + * A blue/green deployment 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: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BlueGreenDeployment.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BlueGreenDeployment + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "targetDbSystemDetails", + "replicationChannelId", + "sslMode", + "id", + "compartmentId", + "displayName", + "lifecycleState", + "lifecycleDetails", + "sourceDbSystemId", + "targetDbSystemId", + "activeDbSystemId", + "switchoverStatus", + "freeformTags", + "definedTags", + "systemTags", + "timeCreated", + "timeUpdated" + }) + public BlueGreenDeployment( + BlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails, + String replicationChannelId, + SslMode sslMode, + String id, + String compartmentId, + String displayName, + LifecycleState lifecycleState, + String lifecycleDetails, + String sourceDbSystemId, + String targetDbSystemId, + String activeDbSystemId, + BlueGreenDeploymentSwitchoverStatus switchoverStatus, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.targetDbSystemDetails = targetDbSystemDetails; + this.replicationChannelId = replicationChannelId; + this.sslMode = sslMode; + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.sourceDbSystemId = sourceDbSystemId; + this.targetDbSystemId = targetDbSystemId; + this.activeDbSystemId = activeDbSystemId; + this.switchoverStatus = switchoverStatus; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemDetails") + private BlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails; + + public Builder targetDbSystemDetails( + BlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails) { + this.targetDbSystemDetails = targetDbSystemDetails; + this.__explicitlySet__.add("targetDbSystemDetails"); + return this; + } + /** + * Replication channel + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationChannelId") + private String replicationChannelId; + + /** + * Replication channel + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param replicationChannelId the value to set + * @return this builder + */ + public Builder replicationChannelId(String replicationChannelId) { + this.replicationChannelId = replicationChannelId; + this.__explicitlySet__.add("replicationChannelId"); + return this; + } + /** SSL mode used for the replication channel created by the blue/green workflow. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private SslMode sslMode; + + /** + * SSL mode used for the replication channel created by the blue/green workflow. + * + * @param sslMode the value to set + * @return this builder + */ + public Builder sslMode(SslMode sslMode) { + this.sslMode = sslMode; + this.__explicitlySet__.add("sslMode"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + * + * @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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the blue/green deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the blue/green deployment. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Additional lifecycle details. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional lifecycle details. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Blue/original source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private String sourceDbSystemId; + + /** + * Blue/original source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + * + * @param sourceDbSystemId the value to set + * @return this builder + */ + public Builder sourceDbSystemId(String sourceDbSystemId) { + this.sourceDbSystemId = sourceDbSystemId; + this.__explicitlySet__.add("sourceDbSystemId"); + return this; + } + /** + * Green/target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemId") + private String targetDbSystemId; + + /** + * Green/target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + * + * @param targetDbSystemId the value to set + * @return this builder + */ + public Builder targetDbSystemId(String targetDbSystemId) { + this.targetDbSystemId = targetDbSystemId; + this.__explicitlySet__.add("targetDbSystemId"); + return this; + } + /** + * The DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * currently owns the client-facing VIP and serves traffic. + */ + @com.fasterxml.jackson.annotation.JsonProperty("activeDbSystemId") + private String activeDbSystemId; + + /** + * The DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * currently owns the client-facing VIP and serves traffic. + * + * @param activeDbSystemId the value to set + * @return this builder + */ + public Builder activeDbSystemId(String activeDbSystemId) { + this.activeDbSystemId = activeDbSystemId; + this.__explicitlySet__.add("activeDbSystemId"); + return this; + } + /** + * Stage of the most recent switchover workflow. {@code SWITCHOVER_FAILED} indicates + * terminal switchover failure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("switchoverStatus") + private BlueGreenDeploymentSwitchoverStatus switchoverStatus; + + /** + * Stage of the most recent switchover workflow. {@code SWITCHOVER_FAILED} indicates + * terminal switchover failure. + * + * @param switchoverStatus the value to set + * @return this builder + */ + public Builder switchoverStatus(BlueGreenDeploymentSwitchoverStatus switchoverStatus) { + this.switchoverStatus = switchoverStatus; + this.__explicitlySet__.add("switchoverStatus"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** The time the deployment was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the deployment was created. + * + * @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 deployment was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the deployment was last updated. + * + * @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 BlueGreenDeployment build() { + BlueGreenDeployment model = + new BlueGreenDeployment( + this.targetDbSystemDetails, + this.replicationChannelId, + this.sslMode, + this.id, + this.compartmentId, + this.displayName, + this.lifecycleState, + this.lifecycleDetails, + this.sourceDbSystemId, + this.targetDbSystemId, + this.activeDbSystemId, + this.switchoverStatus, + this.freeformTags, + this.definedTags, + this.systemTags, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BlueGreenDeployment model) { + if (model.wasPropertyExplicitlySet("targetDbSystemDetails")) { + this.targetDbSystemDetails(model.getTargetDbSystemDetails()); + } + if (model.wasPropertyExplicitlySet("replicationChannelId")) { + this.replicationChannelId(model.getReplicationChannelId()); + } + if (model.wasPropertyExplicitlySet("sslMode")) { + this.sslMode(model.getSslMode()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("sourceDbSystemId")) { + this.sourceDbSystemId(model.getSourceDbSystemId()); + } + if (model.wasPropertyExplicitlySet("targetDbSystemId")) { + this.targetDbSystemId(model.getTargetDbSystemId()); + } + if (model.wasPropertyExplicitlySet("activeDbSystemId")) { + this.activeDbSystemId(model.getActiveDbSystemId()); + } + if (model.wasPropertyExplicitlySet("switchoverStatus")) { + this.switchoverStatus(model.getSwitchoverStatus()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("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); + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemDetails") + private final BlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails; + + public BlueGreenDeploymentTargetDbSystemDetails getTargetDbSystemDetails() { + return targetDbSystemDetails; + } + + /** + * Replication channel + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationChannelId") + private final String replicationChannelId; + + /** + * Replication channel + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @return the value + */ + public String getReplicationChannelId() { + return replicationChannelId; + } + + /** SSL mode used for the replication channel created by the blue/green workflow. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private final SslMode sslMode; + + /** + * SSL mode used for the replication channel created by the blue/green workflow. + * + * @return the value + */ + public SslMode getSslMode() { + return sslMode; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the blue/green deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the blue/green deployment. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The current lifecycle state. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Failed("FAILED"), + 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 current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Additional lifecycle details. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional lifecycle details. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Blue/original source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private final String sourceDbSystemId; + + /** + * Blue/original source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + * + * @return the value + */ + public String getSourceDbSystemId() { + return sourceDbSystemId; + } + + /** + * Green/target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemId") + private final String targetDbSystemId; + + /** + * Green/target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + * + * @return the value + */ + public String getTargetDbSystemId() { + return targetDbSystemId; + } + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * that currently owns the client-facing VIP and serves traffic. + */ + @com.fasterxml.jackson.annotation.JsonProperty("activeDbSystemId") + private final String activeDbSystemId; + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * that currently owns the client-facing VIP and serves traffic. + * + * @return the value + */ + public String getActiveDbSystemId() { + return activeDbSystemId; + } + + /** + * Stage of the most recent switchover workflow. {@code SWITCHOVER_FAILED} indicates terminal + * switchover failure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("switchoverStatus") + private final BlueGreenDeploymentSwitchoverStatus switchoverStatus; + + /** + * Stage of the most recent switchover workflow. {@code SWITCHOVER_FAILED} indicates terminal + * switchover failure. + * + * @return the value + */ + public BlueGreenDeploymentSwitchoverStatus getSwitchoverStatus() { + return switchoverStatus; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** The time the deployment was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the deployment was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the deployment was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the deployment was last updated. + * + * @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("BlueGreenDeployment("); + sb.append("super=").append(super.toString()); + sb.append("targetDbSystemDetails=").append(String.valueOf(this.targetDbSystemDetails)); + sb.append(", replicationChannelId=").append(String.valueOf(this.replicationChannelId)); + sb.append(", sslMode=").append(String.valueOf(this.sslMode)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", sourceDbSystemId=").append(String.valueOf(this.sourceDbSystemId)); + sb.append(", targetDbSystemId=").append(String.valueOf(this.targetDbSystemId)); + sb.append(", activeDbSystemId=").append(String.valueOf(this.activeDbSystemId)); + sb.append(", switchoverStatus=").append(String.valueOf(this.switchoverStatus)); + 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(", 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 BlueGreenDeployment)) { + return false; + } + + BlueGreenDeployment other = (BlueGreenDeployment) o; + return java.util.Objects.equals(this.targetDbSystemDetails, other.targetDbSystemDetails) + && java.util.Objects.equals(this.replicationChannelId, other.replicationChannelId) + && java.util.Objects.equals(this.sslMode, other.sslMode) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.sourceDbSystemId, other.sourceDbSystemId) + && java.util.Objects.equals(this.targetDbSystemId, other.targetDbSystemId) + && java.util.Objects.equals(this.activeDbSystemId, other.activeDbSystemId) + && java.util.Objects.equals(this.switchoverStatus, other.switchoverStatus) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.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.targetDbSystemDetails == null + ? 43 + : this.targetDbSystemDetails.hashCode()); + result = + (result * PRIME) + + (this.replicationChannelId == null + ? 43 + : this.replicationChannelId.hashCode()); + result = (result * PRIME) + (this.sslMode == null ? 43 : this.sslMode.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.sourceDbSystemId == null ? 43 : this.sourceDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.targetDbSystemId == null ? 43 : this.targetDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.activeDbSystemId == null ? 43 : this.activeDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.switchoverStatus == null ? 43 : this.switchoverStatus.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.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-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentCollection.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentCollection.java new file mode 100644 index 00000000000..c1629aaaf99 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentCollection.java @@ -0,0 +1,133 @@ +/** + * 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.mysql.model; + +/** + * A list of blue/green deployments.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BlueGreenDeploymentCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BlueGreenDeploymentCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public BlueGreenDeploymentCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of blue/green deployment items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of blue/green deployment items. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BlueGreenDeploymentCollection build() { + BlueGreenDeploymentCollection model = new BlueGreenDeploymentCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BlueGreenDeploymentCollection 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); + } + + /** A list of blue/green deployment items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of blue/green deployment items. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BlueGreenDeploymentCollection("); + 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 BlueGreenDeploymentCollection)) { + return false; + } + + BlueGreenDeploymentCollection other = (BlueGreenDeploymentCollection) 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-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSummary.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSummary.java new file mode 100644 index 00000000000..29bc79c78b2 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSummary.java @@ -0,0 +1,780 @@ +/** + * 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.mysql.model; + +/** + * List-safe summary of a blue/green deployment.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BlueGreenDeploymentSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BlueGreenDeploymentSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "lifecycleState", + "lifecycleDetails", + "sourceDbSystemId", + "targetDbSystemId", + "activeDbSystemId", + "switchoverStatus", + "freeformTags", + "definedTags", + "systemTags", + "timeCreated", + "timeUpdated" + }) + public BlueGreenDeploymentSummary( + String id, + String compartmentId, + String displayName, + LifecycleState lifecycleState, + String lifecycleDetails, + String sourceDbSystemId, + String targetDbSystemId, + String activeDbSystemId, + BlueGreenDeploymentSwitchoverStatus switchoverStatus, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.sourceDbSystemId = sourceDbSystemId; + this.targetDbSystemId = targetDbSystemId; + this.activeDbSystemId = activeDbSystemId; + this.switchoverStatus = switchoverStatus; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + * + * @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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the blue/green deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the blue/green deployment. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Additional lifecycle details. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional lifecycle details. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Blue/original source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private String sourceDbSystemId; + + /** + * Blue/original source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + * + * @param sourceDbSystemId the value to set + * @return this builder + */ + public Builder sourceDbSystemId(String sourceDbSystemId) { + this.sourceDbSystemId = sourceDbSystemId; + this.__explicitlySet__.add("sourceDbSystemId"); + return this; + } + /** + * Green/target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemId") + private String targetDbSystemId; + + /** + * Green/target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + * + * @param targetDbSystemId the value to set + * @return this builder + */ + public Builder targetDbSystemId(String targetDbSystemId) { + this.targetDbSystemId = targetDbSystemId; + this.__explicitlySet__.add("targetDbSystemId"); + return this; + } + /** + * The DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * currently owns the client-facing VIP and serves traffic. + */ + @com.fasterxml.jackson.annotation.JsonProperty("activeDbSystemId") + private String activeDbSystemId; + + /** + * The DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that + * currently owns the client-facing VIP and serves traffic. + * + * @param activeDbSystemId the value to set + * @return this builder + */ + public Builder activeDbSystemId(String activeDbSystemId) { + this.activeDbSystemId = activeDbSystemId; + this.__explicitlySet__.add("activeDbSystemId"); + return this; + } + /** + * Stage of the most recent switchover workflow. {@code SWITCHOVER_FAILED} indicates + * terminal switchover failure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("switchoverStatus") + private BlueGreenDeploymentSwitchoverStatus switchoverStatus; + + /** + * Stage of the most recent switchover workflow. {@code SWITCHOVER_FAILED} indicates + * terminal switchover failure. + * + * @param switchoverStatus the value to set + * @return this builder + */ + public Builder switchoverStatus(BlueGreenDeploymentSwitchoverStatus switchoverStatus) { + this.switchoverStatus = switchoverStatus; + this.__explicitlySet__.add("switchoverStatus"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + */ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** The time the deployment was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the deployment was created. + * + * @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 deployment was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the deployment was last updated. + * + * @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 BlueGreenDeploymentSummary build() { + BlueGreenDeploymentSummary model = + new BlueGreenDeploymentSummary( + this.id, + this.compartmentId, + this.displayName, + this.lifecycleState, + this.lifecycleDetails, + this.sourceDbSystemId, + this.targetDbSystemId, + this.activeDbSystemId, + this.switchoverStatus, + this.freeformTags, + this.definedTags, + this.systemTags, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BlueGreenDeploymentSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("sourceDbSystemId")) { + this.sourceDbSystemId(model.getSourceDbSystemId()); + } + if (model.wasPropertyExplicitlySet("targetDbSystemId")) { + this.targetDbSystemId(model.getTargetDbSystemId()); + } + if (model.wasPropertyExplicitlySet("activeDbSystemId")) { + this.activeDbSystemId(model.getActiveDbSystemId()); + } + if (model.wasPropertyExplicitlySet("switchoverStatus")) { + this.switchoverStatus(model.getSwitchoverStatus()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the blue/green deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the blue/green deployment. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The current lifecycle state. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Failed("FAILED"), + 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 current lifecycle state. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Additional lifecycle details. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional lifecycle details. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Blue/original source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private final String sourceDbSystemId; + + /** + * Blue/original source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + * + * @return the value + */ + public String getSourceDbSystemId() { + return sourceDbSystemId; + } + + /** + * Green/target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemId") + private final String targetDbSystemId; + + /** + * Green/target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * deployment pair. + * + * @return the value + */ + public String getTargetDbSystemId() { + return targetDbSystemId; + } + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * that currently owns the client-facing VIP and serves traffic. + */ + @com.fasterxml.jackson.annotation.JsonProperty("activeDbSystemId") + private final String activeDbSystemId; + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * that currently owns the client-facing VIP and serves traffic. + * + * @return the value + */ + public String getActiveDbSystemId() { + return activeDbSystemId; + } + + /** + * Stage of the most recent switchover workflow. {@code SWITCHOVER_FAILED} indicates terminal + * switchover failure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("switchoverStatus") + private final BlueGreenDeploymentSwitchoverStatus switchoverStatus; + + /** + * Stage of the most recent switchover workflow. {@code SWITCHOVER_FAILED} indicates terminal + * switchover failure. + * + * @return the value + */ + public BlueGreenDeploymentSwitchoverStatus getSwitchoverStatus() { + return switchoverStatus; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + */ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** The time the deployment was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the deployment was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The time the deployment was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the deployment was last updated. + * + * @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("BlueGreenDeploymentSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", sourceDbSystemId=").append(String.valueOf(this.sourceDbSystemId)); + sb.append(", targetDbSystemId=").append(String.valueOf(this.targetDbSystemId)); + sb.append(", activeDbSystemId=").append(String.valueOf(this.activeDbSystemId)); + sb.append(", switchoverStatus=").append(String.valueOf(this.switchoverStatus)); + 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(", 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 BlueGreenDeploymentSummary)) { + return false; + } + + BlueGreenDeploymentSummary other = (BlueGreenDeploymentSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.sourceDbSystemId, other.sourceDbSystemId) + && java.util.Objects.equals(this.targetDbSystemId, other.targetDbSystemId) + && java.util.Objects.equals(this.activeDbSystemId, other.activeDbSystemId) + && java.util.Objects.equals(this.switchoverStatus, other.switchoverStatus) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.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.compartmentId == null ? 43 : this.compartmentId.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.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.sourceDbSystemId == null ? 43 : this.sourceDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.targetDbSystemId == null ? 43 : this.targetDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.activeDbSystemId == null ? 43 : this.activeDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.switchoverStatus == null ? 43 : this.switchoverStatus.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.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-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSwitchoverStatus.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSwitchoverStatus.java new file mode 100644 index 00000000000..1bf8abee518 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSwitchoverStatus.java @@ -0,0 +1,58 @@ +/** + * 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.mysql.model; + +/** Current stage of the latest switchover action. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public enum BlueGreenDeploymentSwitchoverStatus implements com.oracle.bmc.http.internal.BmcEnum { + NotStarted("NOT_STARTED"), + Validating("VALIDATING"), + ReplicatingData("REPLICATING_DATA"), + ReadyForSwitchover("READY_FOR_SWITCHOVER"), + SwitchoverInProgress("SWITCHOVER_IN_PROGRESS"), + SwitchoverCompleted("SWITCHOVER_COMPLETED"), + SwitchoverFailed("SWITCHOVER_FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BlueGreenDeploymentSwitchoverStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BlueGreenDeploymentSwitchoverStatus v : BlueGreenDeploymentSwitchoverStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BlueGreenDeploymentSwitchoverStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BlueGreenDeploymentSwitchoverStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BlueGreenDeploymentSwitchoverStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentTargetDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentTargetDbSystemDetails.java new file mode 100644 index 00000000000..03f1f54ca2d --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentTargetDbSystemDetails.java @@ -0,0 +1,284 @@ +/** + * 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.mysql.model; + +/** + * Target DB System details for a blue/green deployment.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BlueGreenDeploymentTargetDbSystemDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BlueGreenDeploymentTargetDbSystemDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "mysqlVersion", + "shapeName", + "configurationId", + "dataStorageSizeInGBs" + }) + public BlueGreenDeploymentTargetDbSystemDetails( + String mysqlVersion, + String shapeName, + String configurationId, + Integer dataStorageSizeInGBs) { + super(); + this.mysqlVersion = mysqlVersion; + this.shapeName = shapeName; + this.configurationId = configurationId; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Target MySQL engine version. */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlVersion") + private String mysqlVersion; + + /** + * Target MySQL engine version. + * + * @param mysqlVersion the value to set + * @return this builder + */ + public Builder mysqlVersion(String mysqlVersion) { + this.mysqlVersion = mysqlVersion; + this.__explicitlySet__.add("mysqlVersion"); + return this; + } + /** + * The shape of the target DB System. The shape determines resources allocated to the DB + * System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or + * bare metal) shapes. To get a list of shapes, use the {@link + * #listShapes(ListShapesRequest) listShapes} operation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; + + /** + * The shape of the target DB System. The shape determines resources allocated to the DB + * System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or + * bare metal) shapes. To get a list of shapes, use the {@link + * #listShapes(ListShapesRequest) listShapes} operation. + * + * @param shapeName the value to set + * @return this builder + */ + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration applied to the target DB System. + */ + @com.fasterxml.jackson.annotation.JsonProperty("configurationId") + private String configurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration applied to the target DB System. + * + * @param configurationId the value to set + * @return this builder + */ + public Builder configurationId(String configurationId) { + this.configurationId = configurationId; + this.__explicitlySet__.add("configurationId"); + return this; + } + /** Initial data storage size in GiBs for the target DB System. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Integer dataStorageSizeInGBs; + + /** + * Initial data storage size in GiBs for the target DB System. + * + * @param dataStorageSizeInGBs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BlueGreenDeploymentTargetDbSystemDetails build() { + BlueGreenDeploymentTargetDbSystemDetails model = + new BlueGreenDeploymentTargetDbSystemDetails( + this.mysqlVersion, + this.shapeName, + this.configurationId, + this.dataStorageSizeInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BlueGreenDeploymentTargetDbSystemDetails model) { + if (model.wasPropertyExplicitlySet("mysqlVersion")) { + this.mysqlVersion(model.getMysqlVersion()); + } + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); + } + if (model.wasPropertyExplicitlySet("configurationId")) { + this.configurationId(model.getConfigurationId()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Target MySQL engine version. */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlVersion") + private final String mysqlVersion; + + /** + * Target MySQL engine version. + * + * @return the value + */ + public String getMysqlVersion() { + return mysqlVersion; + } + + /** + * The shape of the target DB System. The shape determines resources allocated to the DB System + * - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare + * metal) shapes. To get a list of shapes, use the {@link #listShapes(ListShapesRequest) + * listShapes} operation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; + + /** + * The shape of the target DB System. The shape determines resources allocated to the DB System + * - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare + * metal) shapes. To get a list of shapes, use the {@link #listShapes(ListShapesRequest) + * listShapes} operation. + * + * @return the value + */ + public String getShapeName() { + return shapeName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration applied to the target DB System. + */ + @com.fasterxml.jackson.annotation.JsonProperty("configurationId") + private final String configurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration applied to the target DB System. + * + * @return the value + */ + public String getConfigurationId() { + return configurationId; + } + + /** Initial data storage size in GiBs for the target DB System. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Integer dataStorageSizeInGBs; + + /** + * Initial data storage size in GiBs for the target DB System. + * + * @return the value + */ + public Integer getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BlueGreenDeploymentTargetDbSystemDetails("); + sb.append("super=").append(super.toString()); + sb.append("mysqlVersion=").append(String.valueOf(this.mysqlVersion)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); + sb.append(", configurationId=").append(String.valueOf(this.configurationId)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BlueGreenDeploymentTargetDbSystemDetails)) { + return false; + } + + BlueGreenDeploymentTargetDbSystemDetails other = + (BlueGreenDeploymentTargetDbSystemDetails) o; + return java.util.Objects.equals(this.mysqlVersion, other.mysqlVersion) + && java.util.Objects.equals(this.shapeName, other.shapeName) + && java.util.Objects.equals(this.configurationId, other.configurationId) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.mysqlVersion == null ? 43 : this.mysqlVersion.hashCode()); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); + result = + (result * PRIME) + + (this.configurationId == null ? 43 : this.configurationId.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChangeBlueGreenDeploymentCompartmentDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChangeBlueGreenDeploymentCompartmentDetails.java new file mode 100644 index 00000000000..0bffd7c1774 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChangeBlueGreenDeploymentCompartmentDetails.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.mysql.model; + +/** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target + * compartment for a blue/green deployment change compartment request.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeBlueGreenDeploymentCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeBlueGreenDeploymentCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeBlueGreenDeploymentCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * target compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * target compartment. + * + * @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 ChangeBlueGreenDeploymentCompartmentDetails build() { + ChangeBlueGreenDeploymentCompartmentDetails model = + new ChangeBlueGreenDeploymentCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeBlueGreenDeploymentCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * target compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * target compartment. + * + * @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("ChangeBlueGreenDeploymentCompartmentDetails("); + 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 ChangeBlueGreenDeploymentCompartmentDetails)) { + return false; + } + + ChangeBlueGreenDeploymentCompartmentDetails other = + (ChangeBlueGreenDeploymentCompartmentDetails) 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-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentChannelDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentChannelDetails.java new file mode 100644 index 00000000000..ce206fcaf8b --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentChannelDetails.java @@ -0,0 +1,369 @@ +/** + * 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.mysql.model; + +/** + * Replication channel details for a blue/green deployment.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateBlueGreenDeploymentChannelDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateBlueGreenDeploymentChannelDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + public CreateBlueGreenDeploymentChannelDetails( + String sourceUsername, + String sourcePassword, + String applierUsername, + SslMode sslMode, + CaCertificate sslCaCertificate) { + super(); + this.sourceUsername = sourceUsername; + this.sourcePassword = sourcePassword != null ? sourcePassword.toCharArray() : null; + this.applierUsername = applierUsername; + this.sslMode = sslMode; + this.sslCaCertificate = sslCaCertificate; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({ + "sourceUsername", + "sourcePassword", + "applierUsername", + "sslMode", + "sslCaCertificate" + }) + public CreateBlueGreenDeploymentChannelDetails( + String sourceUsername, + char[] sourcePassword, + String applierUsername, + SslMode sslMode, + CaCertificate sslCaCertificate) { + super(); + this.sourceUsername = sourceUsername; + this.sourcePassword = sourcePassword; + this.applierUsername = applierUsername; + this.sslMode = sslMode; + this.sslCaCertificate = sslCaCertificate; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The username on the source DB system used by the blue/green workflow to configure the + * replication channel. The username has a maximum length of 96 characters. For more + * information, please see the [MySQL + * documentation](https://dev.mysql.com/doc/refman/8.0/en/change-master-to.html) + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceUsername") + private String sourceUsername; + + /** + * The username on the source DB system used by the blue/green workflow to configure the + * replication channel. The username has a maximum length of 96 characters. For more + * information, please see the [MySQL + * documentation](https://dev.mysql.com/doc/refman/8.0/en/change-master-to.html) + * + * @param sourceUsername the value to set + * @return this builder + */ + public Builder sourceUsername(String sourceUsername) { + this.sourceUsername = sourceUsername; + this.__explicitlySet__.add("sourceUsername"); + return this; + } + /** + * The password for the source DB system user used by the blue/green workflow to configure + * the replication channel. The password must be between 8 and 32 characters long, and must + * contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 + * special (nonalphanumeric) character. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourcePassword") + private char[] sourcePassword; + + /** + * The password for the source DB system user used by the blue/green workflow to configure + * the replication channel. The password must be between 8 and 32 characters long, and must + * contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 + * special (nonalphanumeric) character. + * + * @param sourcePassword the value to set + * @return this builder + */ + public Builder sourcePassword(char[] sourcePassword) { + this.sourcePassword = sourcePassword; + this.__explicitlySet__.add("sourcePassword"); + return this; + } + + public Builder sourcePassword(String sourcePassword) { + this.sourcePassword = sourcePassword != null ? sourcePassword.toCharArray() : null; + this.__explicitlySet__.add("sourcePassword"); + return this; + } + /** The username for the replication applier of the target MySQL DB System. */ + @com.fasterxml.jackson.annotation.JsonProperty("applierUsername") + private String applierUsername; + + /** + * The username for the replication applier of the target MySQL DB System. + * + * @param applierUsername the value to set + * @return this builder + */ + public Builder applierUsername(String applierUsername) { + this.applierUsername = applierUsername; + this.__explicitlySet__.add("applierUsername"); + return this; + } + /** + * The SSL mode of the replication channel created by the blue/green workflow. {@code + * VERIFY_CA} and {@code VERIFY_IDENTITY} require {@code sslCaCertificate}. {@code REQUIRED} + * and {@code DISABLED} must not include {@code sslCaCertificate}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private SslMode sslMode; + + /** + * The SSL mode of the replication channel created by the blue/green workflow. {@code + * VERIFY_CA} and {@code VERIFY_IDENTITY} require {@code sslCaCertificate}. {@code REQUIRED} + * and {@code DISABLED} must not include {@code sslCaCertificate}. + * + * @param sslMode the value to set + * @return this builder + */ + public Builder sslMode(SslMode sslMode) { + this.sslMode = sslMode; + this.__explicitlySet__.add("sslMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sslCaCertificate") + private CaCertificate sslCaCertificate; + + public Builder sslCaCertificate(CaCertificate sslCaCertificate) { + this.sslCaCertificate = sslCaCertificate; + this.__explicitlySet__.add("sslCaCertificate"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateBlueGreenDeploymentChannelDetails build() { + CreateBlueGreenDeploymentChannelDetails model = + new CreateBlueGreenDeploymentChannelDetails( + this.sourceUsername, + this.sourcePassword, + this.applierUsername, + this.sslMode, + this.sslCaCertificate); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateBlueGreenDeploymentChannelDetails model) { + if (model.wasPropertyExplicitlySet("sourceUsername")) { + this.sourceUsername(model.getSourceUsername()); + } + if (model.wasPropertyExplicitlySet("sourcePassword")) { + this.sourcePassword(model.getSourcePassword()); + } + if (model.wasPropertyExplicitlySet("applierUsername")) { + this.applierUsername(model.getApplierUsername()); + } + if (model.wasPropertyExplicitlySet("sslMode")) { + this.sslMode(model.getSslMode()); + } + if (model.wasPropertyExplicitlySet("sslCaCertificate")) { + this.sslCaCertificate(model.getSslCaCertificate()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The username on the source DB system used by the blue/green workflow to configure the + * replication channel. The username has a maximum length of 96 characters. For more + * information, please see the [MySQL + * documentation](https://dev.mysql.com/doc/refman/8.0/en/change-master-to.html) + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceUsername") + private final String sourceUsername; + + /** + * The username on the source DB system used by the blue/green workflow to configure the + * replication channel. The username has a maximum length of 96 characters. For more + * information, please see the [MySQL + * documentation](https://dev.mysql.com/doc/refman/8.0/en/change-master-to.html) + * + * @return the value + */ + public String getSourceUsername() { + return sourceUsername; + } + + /** + * The password for the source DB system user used by the blue/green workflow to configure the + * replication channel. The password must be between 8 and 32 characters long, and must contain + * at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special + * (nonalphanumeric) character. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourcePassword") + private final char[] sourcePassword; + + /** + * The password for the source DB system user used by the blue/green workflow to configure the + * replication channel. The password must be between 8 and 32 characters long, and must contain + * at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special + * (nonalphanumeric) character. + * + * @return the value + * @deprecated Use getSourcePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSourcePassword() { + return sourcePassword != null ? new String(sourcePassword) : null; + } + + /** + * The password for the source DB system user used by the blue/green workflow to configure the + * replication channel. The password must be between 8 and 32 characters long, and must contain + * at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special + * (nonalphanumeric) character. + * + * @return the value + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourcePassword") + public char[] getSourcePassword__AsCharArray() { + return sourcePassword; + } + + /** The username for the replication applier of the target MySQL DB System. */ + @com.fasterxml.jackson.annotation.JsonProperty("applierUsername") + private final String applierUsername; + + /** + * The username for the replication applier of the target MySQL DB System. + * + * @return the value + */ + public String getApplierUsername() { + return applierUsername; + } + + /** + * The SSL mode of the replication channel created by the blue/green workflow. {@code VERIFY_CA} + * and {@code VERIFY_IDENTITY} require {@code sslCaCertificate}. {@code REQUIRED} and {@code + * DISABLED} must not include {@code sslCaCertificate}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private final SslMode sslMode; + + /** + * The SSL mode of the replication channel created by the blue/green workflow. {@code VERIFY_CA} + * and {@code VERIFY_IDENTITY} require {@code sslCaCertificate}. {@code REQUIRED} and {@code + * DISABLED} must not include {@code sslCaCertificate}. + * + * @return the value + */ + public SslMode getSslMode() { + return sslMode; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sslCaCertificate") + private final CaCertificate sslCaCertificate; + + public CaCertificate getSslCaCertificate() { + return sslCaCertificate; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateBlueGreenDeploymentChannelDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceUsername=").append(String.valueOf(this.sourceUsername)); + sb.append(", sourcePassword=").append(""); + sb.append(", applierUsername=").append(String.valueOf(this.applierUsername)); + sb.append(", sslMode=").append(String.valueOf(this.sslMode)); + sb.append(", sslCaCertificate=").append(String.valueOf(this.sslCaCertificate)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBlueGreenDeploymentChannelDetails)) { + return false; + } + + CreateBlueGreenDeploymentChannelDetails other = (CreateBlueGreenDeploymentChannelDetails) o; + return java.util.Objects.equals(this.sourceUsername, other.sourceUsername) + && java.util.Objects.equals(this.sourcePassword, other.sourcePassword) + && java.util.Objects.equals(this.applierUsername, other.applierUsername) + && java.util.Objects.equals(this.sslMode, other.sslMode) + && java.util.Objects.equals(this.sslCaCertificate, other.sslCaCertificate) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceUsername == null ? 43 : this.sourceUsername.hashCode()); + result = + (result * PRIME) + + (this.sourcePassword == null ? 43 : this.sourcePassword.hashCode()); + result = + (result * PRIME) + + (this.applierUsername == null ? 43 : this.applierUsername.hashCode()); + result = (result * PRIME) + (this.sslMode == null ? 43 : this.sslMode.hashCode()); + result = + (result * PRIME) + + (this.sslCaCertificate == null ? 43 : this.sslCaCertificate.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentDetails.java new file mode 100644 index 00000000000..bd3db0757c2 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentDetails.java @@ -0,0 +1,387 @@ +/** + * 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.mysql.model; + +/** + * Details for creating a blue/green deployment backed by a replication channel.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateBlueGreenDeploymentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateBlueGreenDeploymentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "sourceDbSystemId", + "targetDbSystemDetails", + "channelDetails", + "freeformTags", + "definedTags" + }) + public CreateBlueGreenDeploymentDetails( + String compartmentId, + String displayName, + String sourceDbSystemId, + CreateBlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails, + CreateBlueGreenDeploymentChannelDetails channelDetails, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.sourceDbSystemId = sourceDbSystemId; + this.targetDbSystemDetails = targetDbSystemDetails; + this.channelDetails = channelDetails; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The display name of the blue/green deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the blue/green deployment. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private String sourceDbSystemId; + + /** + * Source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param sourceDbSystemId the value to set + * @return this builder + */ + public Builder sourceDbSystemId(String sourceDbSystemId) { + this.sourceDbSystemId = sourceDbSystemId; + this.__explicitlySet__.add("sourceDbSystemId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemDetails") + private CreateBlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails; + + public Builder targetDbSystemDetails( + CreateBlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails) { + this.targetDbSystemDetails = targetDbSystemDetails; + this.__explicitlySet__.add("targetDbSystemDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("channelDetails") + private CreateBlueGreenDeploymentChannelDetails channelDetails; + + public Builder channelDetails(CreateBlueGreenDeploymentChannelDetails channelDetails) { + this.channelDetails = channelDetails; + this.__explicitlySet__.add("channelDetails"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateBlueGreenDeploymentDetails build() { + CreateBlueGreenDeploymentDetails model = + new CreateBlueGreenDeploymentDetails( + this.compartmentId, + this.displayName, + this.sourceDbSystemId, + this.targetDbSystemDetails, + this.channelDetails, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateBlueGreenDeploymentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sourceDbSystemId")) { + this.sourceDbSystemId(model.getSourceDbSystemId()); + } + if (model.wasPropertyExplicitlySet("targetDbSystemDetails")) { + this.targetDbSystemDetails(model.getTargetDbSystemDetails()); + } + if (model.wasPropertyExplicitlySet("channelDetails")) { + this.channelDetails(model.getChannelDetails()); + } + 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); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the blue/green deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the blue/green deployment. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private final String sourceDbSystemId; + + /** + * Source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @return the value + */ + public String getSourceDbSystemId() { + return sourceDbSystemId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemDetails") + private final CreateBlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails; + + public CreateBlueGreenDeploymentTargetDbSystemDetails getTargetDbSystemDetails() { + return targetDbSystemDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("channelDetails") + private final CreateBlueGreenDeploymentChannelDetails channelDetails; + + public CreateBlueGreenDeploymentChannelDetails getChannelDetails() { + return channelDetails; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateBlueGreenDeploymentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", sourceDbSystemId=").append(String.valueOf(this.sourceDbSystemId)); + sb.append(", targetDbSystemDetails=").append(String.valueOf(this.targetDbSystemDetails)); + sb.append(", channelDetails=").append(String.valueOf(this.channelDetails)); + 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 CreateBlueGreenDeploymentDetails)) { + return false; + } + + CreateBlueGreenDeploymentDetails other = (CreateBlueGreenDeploymentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sourceDbSystemId, other.sourceDbSystemId) + && java.util.Objects.equals(this.targetDbSystemDetails, other.targetDbSystemDetails) + && java.util.Objects.equals(this.channelDetails, other.channelDetails) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.sourceDbSystemId == null ? 43 : this.sourceDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.targetDbSystemDetails == null + ? 43 + : this.targetDbSystemDetails.hashCode()); + result = + (result * PRIME) + + (this.channelDetails == null ? 43 : this.channelDetails.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-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentTargetDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentTargetDbSystemDetails.java new file mode 100644 index 00000000000..c4d37b6cfae --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentTargetDbSystemDetails.java @@ -0,0 +1,296 @@ +/** + * 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.mysql.model; + +/** + * Target DB System overrides for a blue/green deployment.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateBlueGreenDeploymentTargetDbSystemDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateBlueGreenDeploymentTargetDbSystemDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "mysqlVersion", + "shapeName", + "configurationId", + "dataStorageSizeInGBs" + }) + public CreateBlueGreenDeploymentTargetDbSystemDetails( + String mysqlVersion, + String shapeName, + String configurationId, + Integer dataStorageSizeInGBs) { + super(); + this.mysqlVersion = mysqlVersion; + this.shapeName = shapeName; + this.configurationId = configurationId; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Target MySQL engine version. */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlVersion") + private String mysqlVersion; + + /** + * Target MySQL engine version. + * + * @param mysqlVersion the value to set + * @return this builder + */ + public Builder mysqlVersion(String mysqlVersion) { + this.mysqlVersion = mysqlVersion; + this.__explicitlySet__.add("mysqlVersion"); + return this; + } + /** + * The shape of the target DB System. The shape determines resources allocated to the DB + * System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or + * bare metal) shapes. To get a list of shapes, use the {@link + * #listShapes(ListShapesRequest) listShapes} operation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; + + /** + * The shape of the target DB System. The shape determines resources allocated to the DB + * System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or + * bare metal) shapes. To get a list of shapes, use the {@link + * #listShapes(ListShapesRequest) listShapes} operation. + * + * @param shapeName the value to set + * @return this builder + */ + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration to apply to the target DB System. If omitted, the target DB System inherits + * the source DB System configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("configurationId") + private String configurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration to apply to the target DB System. If omitted, the target DB System inherits + * the source DB System configuration. + * + * @param configurationId the value to set + * @return this builder + */ + public Builder configurationId(String configurationId) { + this.configurationId = configurationId; + this.__explicitlySet__.add("configurationId"); + return this; + } + /** + * Initial data storage size in GiBs for the target DB System. If omitted, the target DB + * System uses the source DB System storage size. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Integer dataStorageSizeInGBs; + + /** + * Initial data storage size in GiBs for the target DB System. If omitted, the target DB + * System uses the source DB System storage size. + * + * @param dataStorageSizeInGBs the value to set + * @return this builder + */ + public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateBlueGreenDeploymentTargetDbSystemDetails build() { + CreateBlueGreenDeploymentTargetDbSystemDetails model = + new CreateBlueGreenDeploymentTargetDbSystemDetails( + this.mysqlVersion, + this.shapeName, + this.configurationId, + this.dataStorageSizeInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateBlueGreenDeploymentTargetDbSystemDetails model) { + if (model.wasPropertyExplicitlySet("mysqlVersion")) { + this.mysqlVersion(model.getMysqlVersion()); + } + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); + } + if (model.wasPropertyExplicitlySet("configurationId")) { + this.configurationId(model.getConfigurationId()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Target MySQL engine version. */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlVersion") + private final String mysqlVersion; + + /** + * Target MySQL engine version. + * + * @return the value + */ + public String getMysqlVersion() { + return mysqlVersion; + } + + /** + * The shape of the target DB System. The shape determines resources allocated to the DB System + * - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare + * metal) shapes. To get a list of shapes, use the {@link #listShapes(ListShapesRequest) + * listShapes} operation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; + + /** + * The shape of the target DB System. The shape determines resources allocated to the DB System + * - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare + * metal) shapes. To get a list of shapes, use the {@link #listShapes(ListShapesRequest) + * listShapes} operation. + * + * @return the value + */ + public String getShapeName() { + return shapeName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration to apply to the target DB System. If omitted, the target DB System inherits the + * source DB System configuration. + */ + @com.fasterxml.jackson.annotation.JsonProperty("configurationId") + private final String configurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration to apply to the target DB System. If omitted, the target DB System inherits the + * source DB System configuration. + * + * @return the value + */ + public String getConfigurationId() { + return configurationId; + } + + /** + * Initial data storage size in GiBs for the target DB System. If omitted, the target DB System + * uses the source DB System storage size. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Integer dataStorageSizeInGBs; + + /** + * Initial data storage size in GiBs for the target DB System. If omitted, the target DB System + * uses the source DB System storage size. + * + * @return the value + */ + public Integer getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateBlueGreenDeploymentTargetDbSystemDetails("); + sb.append("super=").append(super.toString()); + sb.append("mysqlVersion=").append(String.valueOf(this.mysqlVersion)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); + sb.append(", configurationId=").append(String.valueOf(this.configurationId)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBlueGreenDeploymentTargetDbSystemDetails)) { + return false; + } + + CreateBlueGreenDeploymentTargetDbSystemDetails other = + (CreateBlueGreenDeploymentTargetDbSystemDetails) o; + return java.util.Objects.equals(this.mysqlVersion, other.mysqlVersion) + && java.util.Objects.equals(this.shapeName, other.shapeName) + && java.util.Objects.equals(this.configurationId, other.configurationId) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.mysqlVersion == null ? 43 : this.mysqlVersion.hashCode()); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); + result = + (result * PRIME) + + (this.configurationId == null ? 43 : this.configurationId.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SslMode.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SslMode.java index 4845521a5dd..601fbe9e25d 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SslMode.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SslMode.java @@ -11,7 +11,14 @@ public enum SslMode implements com.oracle.bmc.http.internal.BmcEnum { VerifyCa("VERIFY_CA"), Required("REQUIRED"), Disabled("DISABLED"), - ; + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(SslMode.class); private final String value; private static java.util.Map map; @@ -19,7 +26,9 @@ public enum SslMode implements com.oracle.bmc.http.internal.BmcEnum { static { map = new java.util.HashMap<>(); for (SslMode v : SslMode.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -37,6 +46,7 @@ public static SslMode create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid SslMode: " + key); + LOG.warn("Received unknown value '{}' for enum 'SslMode', returning UnknownEnumValue", key); + return UnknownEnumValue; } } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SwitchoverBlueGreenDeploymentDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SwitchoverBlueGreenDeploymentDetails.java new file mode 100644 index 00000000000..a254f5d765d --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SwitchoverBlueGreenDeploymentDetails.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.mysql.model; + +/** + * Details for switching over a blue/green deployment.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SwitchoverBlueGreenDeploymentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SwitchoverBlueGreenDeploymentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"waitTimeInSeconds"}) + public SwitchoverBlueGreenDeploymentDetails(Integer waitTimeInSeconds) { + super(); + this.waitTimeInSeconds = waitTimeInSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Upper bound guidance, in seconds, for waiting while the target DB System applies + * remaining replication changes during switchover processing. + */ + @com.fasterxml.jackson.annotation.JsonProperty("waitTimeInSeconds") + private Integer waitTimeInSeconds; + + /** + * Upper bound guidance, in seconds, for waiting while the target DB System applies + * remaining replication changes during switchover processing. + * + * @param waitTimeInSeconds the value to set + * @return this builder + */ + public Builder waitTimeInSeconds(Integer waitTimeInSeconds) { + this.waitTimeInSeconds = waitTimeInSeconds; + this.__explicitlySet__.add("waitTimeInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SwitchoverBlueGreenDeploymentDetails build() { + SwitchoverBlueGreenDeploymentDetails model = + new SwitchoverBlueGreenDeploymentDetails(this.waitTimeInSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SwitchoverBlueGreenDeploymentDetails model) { + if (model.wasPropertyExplicitlySet("waitTimeInSeconds")) { + this.waitTimeInSeconds(model.getWaitTimeInSeconds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Upper bound guidance, in seconds, for waiting while the target DB System applies remaining + * replication changes during switchover processing. + */ + @com.fasterxml.jackson.annotation.JsonProperty("waitTimeInSeconds") + private final Integer waitTimeInSeconds; + + /** + * Upper bound guidance, in seconds, for waiting while the target DB System applies remaining + * replication changes during switchover processing. + * + * @return the value + */ + public Integer getWaitTimeInSeconds() { + return waitTimeInSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SwitchoverBlueGreenDeploymentDetails("); + sb.append("super=").append(super.toString()); + sb.append("waitTimeInSeconds=").append(String.valueOf(this.waitTimeInSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchoverBlueGreenDeploymentDetails)) { + return false; + } + + SwitchoverBlueGreenDeploymentDetails other = (SwitchoverBlueGreenDeploymentDetails) o; + return java.util.Objects.equals(this.waitTimeInSeconds, other.waitTimeInSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.waitTimeInSeconds == null ? 43 : this.waitTimeInSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateBlueGreenDeploymentDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateBlueGreenDeploymentDetails.java new file mode 100644 index 00000000000..0d0aa8cd511 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateBlueGreenDeploymentDetails.java @@ -0,0 +1,227 @@ +/** + * 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.mysql.model; + +/** + * Details for updating mutable metadata on a blue/green deployment. Currently only {@code + * displayName}, {@code freeformTags}, and {@code definedTags} are supported.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateBlueGreenDeploymentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateBlueGreenDeploymentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "freeformTags", "definedTags"}) + public UpdateBlueGreenDeploymentDetails( + String displayName, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A user-supplied display name for the blue/green deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-supplied display name for the blue/green deployment. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + */ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateBlueGreenDeploymentDetails build() { + UpdateBlueGreenDeploymentDetails model = + new UpdateBlueGreenDeploymentDetails( + this.displayName, this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateBlueGreenDeploymentDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A user-supplied display name for the blue/green deployment. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-supplied display name for the blue/green deployment. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateBlueGreenDeploymentDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBlueGreenDeploymentDetails)) { + return false; + } + + UpdateBlueGreenDeploymentDetails other = (UpdateBlueGreenDeploymentDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java index a13018d0a17..44eb9547ed0 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java @@ -35,6 +35,11 @@ public enum WorkRequestOperationType implements com.oracle.bmc.http.internal.Bmc DeleteBackup("DELETE_BACKUP"), UpdateBackup("UPDATE_BACKUP"), ExportBackup("EXPORT_BACKUP"), + CreateBlueGreenDeployment("CREATE_BLUE_GREEN_DEPLOYMENT"), + UpdateBlueGreenDeployment("UPDATE_BLUE_GREEN_DEPLOYMENT"), + DeleteBlueGreenDeployment("DELETE_BLUE_GREEN_DEPLOYMENT"), + ChangeBlueGreenDeploymentCompartment("CHANGE_BLUE_GREEN_DEPLOYMENT_COMPARTMENT"), + SwitchoverBlueGreenDeployment("SWITCHOVER_BLUE_GREEN_DEPLOYMENT"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ChangeBlueGreenDeploymentCompartmentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ChangeBlueGreenDeploymentCompartmentRequest.java new file mode 100644 index 00000000000..06b6278c69d --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ChangeBlueGreenDeploymentCompartmentRequest.java @@ -0,0 +1,392 @@ +/** + * 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.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use + * ChangeBlueGreenDeploymentCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class ChangeBlueGreenDeploymentCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + private String blueGreenDeploymentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + public String getBlueGreenDeploymentId() { + return blueGreenDeploymentId; + } + /** Target compartment for a blue/green deployment. */ + private com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails + changeBlueGreenDeploymentCompartmentDetails; + + /** Target compartment for a blue/green deployment. */ + public com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails + getChangeBlueGreenDeploymentCompartmentDetails() { + return changeBlueGreenDeploymentCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * If-Match} header 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} header 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; + } + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails getBody$() { + return changeBlueGreenDeploymentCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeBlueGreenDeploymentCompartmentRequest, + com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + private String blueGreenDeploymentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + * + * @param blueGreenDeploymentId the value to set + * @return this builder instance + */ + public Builder blueGreenDeploymentId(String blueGreenDeploymentId) { + this.blueGreenDeploymentId = blueGreenDeploymentId; + return this; + } + + /** Target compartment for a blue/green deployment. */ + private com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails + changeBlueGreenDeploymentCompartmentDetails = null; + + /** + * Target compartment for a blue/green deployment. + * + * @param changeBlueGreenDeploymentCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeBlueGreenDeploymentCompartmentDetails( + com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails + changeBlueGreenDeploymentCompartmentDetails) { + this.changeBlueGreenDeploymentCompartmentDetails = + changeBlueGreenDeploymentCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code If-Match} header 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} header 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; + } + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeBlueGreenDeploymentCompartmentRequest o) { + blueGreenDeploymentId(o.getBlueGreenDeploymentId()); + changeBlueGreenDeploymentCompartmentDetails( + o.getChangeBlueGreenDeploymentCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeBlueGreenDeploymentCompartmentRequest 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 ChangeBlueGreenDeploymentCompartmentRequest + */ + public ChangeBlueGreenDeploymentCompartmentRequest build() { + ChangeBlueGreenDeploymentCompartmentRequest 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.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails body) { + changeBlueGreenDeploymentCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeBlueGreenDeploymentCompartmentRequest 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 ChangeBlueGreenDeploymentCompartmentRequest + */ + public ChangeBlueGreenDeploymentCompartmentRequest buildWithoutInvocationCallback() { + ChangeBlueGreenDeploymentCompartmentRequest request = + new ChangeBlueGreenDeploymentCompartmentRequest(); + request.blueGreenDeploymentId = blueGreenDeploymentId; + request.changeBlueGreenDeploymentCompartmentDetails = + changeBlueGreenDeploymentCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeBlueGreenDeploymentCompartmentRequest(blueGreenDeploymentId, + // changeBlueGreenDeploymentCompartmentDetails, 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() + .blueGreenDeploymentId(blueGreenDeploymentId) + .changeBlueGreenDeploymentCompartmentDetails( + changeBlueGreenDeploymentCompartmentDetails) + .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(",blueGreenDeploymentId=").append(String.valueOf(this.blueGreenDeploymentId)); + sb.append(",changeBlueGreenDeploymentCompartmentDetails=") + .append(String.valueOf(this.changeBlueGreenDeploymentCompartmentDetails)); + 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 ChangeBlueGreenDeploymentCompartmentRequest)) { + return false; + } + + ChangeBlueGreenDeploymentCompartmentRequest other = + (ChangeBlueGreenDeploymentCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.blueGreenDeploymentId, other.blueGreenDeploymentId) + && java.util.Objects.equals( + this.changeBlueGreenDeploymentCompartmentDetails, + other.changeBlueGreenDeploymentCompartmentDetails) + && 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.blueGreenDeploymentId == null + ? 43 + : this.blueGreenDeploymentId.hashCode()); + result = + (result * PRIME) + + (this.changeBlueGreenDeploymentCompartmentDetails == null + ? 43 + : this.changeBlueGreenDeploymentCompartmentDetails.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-mysql/src/main/java/com/oracle/bmc/mysql/requests/CreateBlueGreenDeploymentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CreateBlueGreenDeploymentRequest.java new file mode 100644 index 00000000000..6a6b9038c63 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CreateBlueGreenDeploymentRequest.java @@ -0,0 +1,297 @@ +/** + * 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.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use + * CreateBlueGreenDeploymentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class CreateBlueGreenDeploymentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails> { + + /** Details for creating a blue/green deployment, including target DB System overrides. */ + private com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails + createBlueGreenDeploymentDetails; + + /** Details for creating a blue/green deployment, including target DB System overrides. */ + public com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails + getCreateBlueGreenDeploymentDetails() { + return createBlueGreenDeploymentDetails; + } + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails getBody$() { + return createBlueGreenDeploymentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateBlueGreenDeploymentRequest, + com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for creating a blue/green deployment, including target DB System overrides. */ + private com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails + createBlueGreenDeploymentDetails = null; + + /** + * Details for creating a blue/green deployment, including target DB System overrides. + * + * @param createBlueGreenDeploymentDetails the value to set + * @return this builder instance + */ + public Builder createBlueGreenDeploymentDetails( + com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails + createBlueGreenDeploymentDetails) { + this.createBlueGreenDeploymentDetails = createBlueGreenDeploymentDetails; + return this; + } + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateBlueGreenDeploymentRequest o) { + createBlueGreenDeploymentDetails(o.getCreateBlueGreenDeploymentDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateBlueGreenDeploymentRequest 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 CreateBlueGreenDeploymentRequest + */ + public CreateBlueGreenDeploymentRequest build() { + CreateBlueGreenDeploymentRequest 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.mysql.model.CreateBlueGreenDeploymentDetails body) { + createBlueGreenDeploymentDetails(body); + return this; + } + + /** + * Build the instance of CreateBlueGreenDeploymentRequest 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 CreateBlueGreenDeploymentRequest + */ + public CreateBlueGreenDeploymentRequest buildWithoutInvocationCallback() { + CreateBlueGreenDeploymentRequest request = new CreateBlueGreenDeploymentRequest(); + request.createBlueGreenDeploymentDetails = createBlueGreenDeploymentDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateBlueGreenDeploymentRequest(createBlueGreenDeploymentDetails, 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() + .createBlueGreenDeploymentDetails(createBlueGreenDeploymentDetails) + .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(",createBlueGreenDeploymentDetails=") + .append(String.valueOf(this.createBlueGreenDeploymentDetails)); + 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 CreateBlueGreenDeploymentRequest)) { + return false; + } + + CreateBlueGreenDeploymentRequest other = (CreateBlueGreenDeploymentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createBlueGreenDeploymentDetails, + other.createBlueGreenDeploymentDetails) + && 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.createBlueGreenDeploymentDetails == null + ? 43 + : this.createBlueGreenDeploymentDetails.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-mysql/src/main/java/com/oracle/bmc/mysql/requests/DeleteBlueGreenDeploymentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/DeleteBlueGreenDeploymentRequest.java new file mode 100644 index 00000000000..7615cd52567 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/DeleteBlueGreenDeploymentRequest.java @@ -0,0 +1,267 @@ +/** + * 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.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use + * DeleteBlueGreenDeploymentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class DeleteBlueGreenDeploymentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + private String blueGreenDeploymentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + public String getBlueGreenDeploymentId() { + return blueGreenDeploymentId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * If-Match} header 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} header 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; + } + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteBlueGreenDeploymentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + private String blueGreenDeploymentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + * + * @param blueGreenDeploymentId the value to set + * @return this builder instance + */ + public Builder blueGreenDeploymentId(String blueGreenDeploymentId) { + this.blueGreenDeploymentId = blueGreenDeploymentId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code If-Match} header 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} header 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; + } + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + * + * @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(DeleteBlueGreenDeploymentRequest o) { + blueGreenDeploymentId(o.getBlueGreenDeploymentId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteBlueGreenDeploymentRequest 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 DeleteBlueGreenDeploymentRequest + */ + public DeleteBlueGreenDeploymentRequest build() { + DeleteBlueGreenDeploymentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteBlueGreenDeploymentRequest 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 DeleteBlueGreenDeploymentRequest + */ + public DeleteBlueGreenDeploymentRequest buildWithoutInvocationCallback() { + DeleteBlueGreenDeploymentRequest request = new DeleteBlueGreenDeploymentRequest(); + request.blueGreenDeploymentId = blueGreenDeploymentId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteBlueGreenDeploymentRequest(blueGreenDeploymentId, 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() + .blueGreenDeploymentId(blueGreenDeploymentId) + .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(",blueGreenDeploymentId=").append(String.valueOf(this.blueGreenDeploymentId)); + 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 DeleteBlueGreenDeploymentRequest)) { + return false; + } + + DeleteBlueGreenDeploymentRequest other = (DeleteBlueGreenDeploymentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.blueGreenDeploymentId, other.blueGreenDeploymentId) + && 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.blueGreenDeploymentId == null + ? 43 + : this.blueGreenDeploymentId.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-mysql/src/main/java/com/oracle/bmc/mysql/requests/GetBlueGreenDeploymentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/GetBlueGreenDeploymentRequest.java new file mode 100644 index 00000000000..b660dbdaed0 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/GetBlueGreenDeploymentRequest.java @@ -0,0 +1,267 @@ +/** + * 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.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use + * GetBlueGreenDeploymentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class GetBlueGreenDeploymentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + private String blueGreenDeploymentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + public String getBlueGreenDeploymentId() { + return blueGreenDeploymentId; + } + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource has + * not changed, or a 200 OK response with the updated representation. + */ + private String ifNoneMatch; + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource has + * not changed, or a 200 OK response with the updated representation. + */ + public String getIfNoneMatch() { + return ifNoneMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetBlueGreenDeploymentRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + private String blueGreenDeploymentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + * + * @param blueGreenDeploymentId the value to set + * @return this builder instance + */ + public Builder blueGreenDeploymentId(String blueGreenDeploymentId) { + this.blueGreenDeploymentId = blueGreenDeploymentId; + return this; + } + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource + * has not changed, or a 200 OK response with the updated representation. + */ + private String ifNoneMatch = null; + + /** + * For conditional requests. In the GET call for a resource, set the {@code If-None-Match} + * header to the value of the ETag from a previous GET (or POST or PUT) response for that + * resource. The server will return with either a 304 Not Modified response if the resource + * has not changed, or a 200 OK response with the updated representation. + * + * @param ifNoneMatch the value to set + * @return this builder instance + */ + public Builder ifNoneMatch(String ifNoneMatch) { + this.ifNoneMatch = ifNoneMatch; + 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(GetBlueGreenDeploymentRequest o) { + blueGreenDeploymentId(o.getBlueGreenDeploymentId()); + opcRequestId(o.getOpcRequestId()); + ifNoneMatch(o.getIfNoneMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetBlueGreenDeploymentRequest 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 GetBlueGreenDeploymentRequest + */ + public GetBlueGreenDeploymentRequest build() { + GetBlueGreenDeploymentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetBlueGreenDeploymentRequest 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 GetBlueGreenDeploymentRequest + */ + public GetBlueGreenDeploymentRequest buildWithoutInvocationCallback() { + GetBlueGreenDeploymentRequest request = new GetBlueGreenDeploymentRequest(); + request.blueGreenDeploymentId = blueGreenDeploymentId; + request.opcRequestId = opcRequestId; + request.ifNoneMatch = ifNoneMatch; + return request; + // new GetBlueGreenDeploymentRequest(blueGreenDeploymentId, opcRequestId, ifNoneMatch); + } + } + + /** + * 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() + .blueGreenDeploymentId(blueGreenDeploymentId) + .opcRequestId(opcRequestId) + .ifNoneMatch(ifNoneMatch); + } + + /** + * 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(",blueGreenDeploymentId=").append(String.valueOf(this.blueGreenDeploymentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBlueGreenDeploymentRequest)) { + return false; + } + + GetBlueGreenDeploymentRequest other = (GetBlueGreenDeploymentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.blueGreenDeploymentId, other.blueGreenDeploymentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.blueGreenDeploymentId == null + ? 43 + : this.blueGreenDeploymentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ListBlueGreenDeploymentsRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ListBlueGreenDeploymentsRequest.java new file mode 100644 index 00000000000..93625d34aca --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ListBlueGreenDeploymentsRequest.java @@ -0,0 +1,576 @@ +/** + * 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.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use + * ListBlueGreenDeploymentsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class ListBlueGreenDeploymentsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The maximum number of items to return in a paginated list call. For information about + * pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + */ + private Integer limit; + + /** + * The maximum number of items to return in a paginated list call. For information about + * pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + */ + public Integer getLimit() { + return limit; + } + /** + * The value of the {@code opc-next-page} or {@code opc-prev-page} response header from the + * previous list call. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + */ + private String page; + + /** + * The value of the {@code opc-next-page} or {@code opc-prev-page} response header from the + * previous list call. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + */ + public String getPage() { + return page; + } + /** + * Source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + private String sourceDbSystemId; + + /** + * Source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + public String getSourceDbSystemId() { + return sourceDbSystemId; + } + /** + * Target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + private String targetDbSystemId; + + /** + * Target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + public String getTargetDbSystemId() { + return targetDbSystemId; + } + /** Filters deployments by display name. */ + private String displayName; + + /** Filters deployments by display name. */ + public String getDisplayName() { + return displayName; + } + /** Filters deployments by lifecycle state. */ + private com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary.LifecycleState lifecycleState; + + /** Filters deployments by lifecycle state. */ + public com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * The field to sort by. Only one sort order may be provided. Time fields are default ordered as + * descending. Display name is default ordered as ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Time fields are default ordered as + * descending. Display name is default ordered as ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Time fields are default ordered as + * descending. Display name is default ordered as ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use (ASC or DESC). */ + private SortOrder sortOrder; + + /** The sort order to use (ASC or DESC). */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** The sort order to use (ASC or DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListBlueGreenDeploymentsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The maximum number of items to return in a paginated list call. For information about + * pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + */ + private Integer limit = null; + + /** + * The maximum number of items to return in a paginated list call. For information about + * pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The value of the {@code opc-next-page} or {@code opc-prev-page} response header from the + * previous list call. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + */ + private String page = null; + + /** + * The value of the {@code opc-next-page} or {@code opc-prev-page} response header from the + * previous list call. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + private String sourceDbSystemId = null; + + /** + * Source DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + * + * @param sourceDbSystemId the value to set + * @return this builder instance + */ + public Builder sourceDbSystemId(String sourceDbSystemId) { + this.sourceDbSystemId = sourceDbSystemId; + return this; + } + + /** + * Target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + private String targetDbSystemId = null; + + /** + * Target DB system + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + * + * @param targetDbSystemId the value to set + * @return this builder instance + */ + public Builder targetDbSystemId(String targetDbSystemId) { + this.targetDbSystemId = targetDbSystemId; + return this; + } + + /** Filters deployments by display name. */ + private String displayName = null; + + /** + * Filters deployments by display name. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** Filters deployments by lifecycle state. */ + private com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary.LifecycleState + lifecycleState = null; + + /** + * Filters deployments by lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Time fields are default + * ordered as descending. Display name is default ordered as ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Time fields are default + * ordered as descending. Display name is default ordered as ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use (ASC or DESC). */ + private SortOrder sortOrder = null; + + /** + * The sort order to use (ASC or DESC). + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListBlueGreenDeploymentsRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sourceDbSystemId(o.getSourceDbSystemId()); + targetDbSystemId(o.getTargetDbSystemId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBlueGreenDeploymentsRequest 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 ListBlueGreenDeploymentsRequest + */ + public ListBlueGreenDeploymentsRequest build() { + ListBlueGreenDeploymentsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBlueGreenDeploymentsRequest 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 ListBlueGreenDeploymentsRequest + */ + public ListBlueGreenDeploymentsRequest buildWithoutInvocationCallback() { + ListBlueGreenDeploymentsRequest request = new ListBlueGreenDeploymentsRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + request.sourceDbSystemId = sourceDbSystemId; + request.targetDbSystemId = targetDbSystemId; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListBlueGreenDeploymentsRequest(compartmentId, opcRequestId, limit, page, + // sourceDbSystemId, targetDbSystemId, displayName, lifecycleState, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page) + .sourceDbSystemId(sourceDbSystemId) + .targetDbSystemId(targetDbSystemId) + .displayName(displayName) + .lifecycleState(lifecycleState) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sourceDbSystemId=").append(String.valueOf(this.sourceDbSystemId)); + sb.append(",targetDbSystemId=").append(String.valueOf(this.targetDbSystemId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBlueGreenDeploymentsRequest)) { + return false; + } + + ListBlueGreenDeploymentsRequest other = (ListBlueGreenDeploymentsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sourceDbSystemId, other.sourceDbSystemId) + && java.util.Objects.equals(this.targetDbSystemId, other.targetDbSystemId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = + (result * PRIME) + + (this.sourceDbSystemId == null ? 43 : this.sourceDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.targetDbSystemId == null ? 43 : this.targetDbSystemId.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.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/SwitchoverBlueGreenDeploymentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/SwitchoverBlueGreenDeploymentRequest.java new file mode 100644 index 00000000000..c99c757b1d2 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/SwitchoverBlueGreenDeploymentRequest.java @@ -0,0 +1,384 @@ +/** + * 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.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use + * SwitchoverBlueGreenDeploymentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class SwitchoverBlueGreenDeploymentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + private String blueGreenDeploymentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + public String getBlueGreenDeploymentId() { + return blueGreenDeploymentId; + } + /** Details for switching over a blue/green deployment. */ + private com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails + switchoverBlueGreenDeploymentDetails; + + /** Details for switching over a blue/green deployment. */ + public com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails + getSwitchoverBlueGreenDeploymentDetails() { + return switchoverBlueGreenDeploymentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * If-Match} header 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} header 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; + } + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails getBody$() { + return switchoverBlueGreenDeploymentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SwitchoverBlueGreenDeploymentRequest, + com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + private String blueGreenDeploymentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + * + * @param blueGreenDeploymentId the value to set + * @return this builder instance + */ + public Builder blueGreenDeploymentId(String blueGreenDeploymentId) { + this.blueGreenDeploymentId = blueGreenDeploymentId; + return this; + } + + /** Details for switching over a blue/green deployment. */ + private com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails + switchoverBlueGreenDeploymentDetails = null; + + /** + * Details for switching over a blue/green deployment. + * + * @param switchoverBlueGreenDeploymentDetails the value to set + * @return this builder instance + */ + public Builder switchoverBlueGreenDeploymentDetails( + com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails + switchoverBlueGreenDeploymentDetails) { + this.switchoverBlueGreenDeploymentDetails = switchoverBlueGreenDeploymentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code If-Match} header 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} header 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; + } + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(SwitchoverBlueGreenDeploymentRequest o) { + blueGreenDeploymentId(o.getBlueGreenDeploymentId()); + switchoverBlueGreenDeploymentDetails(o.getSwitchoverBlueGreenDeploymentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SwitchoverBlueGreenDeploymentRequest 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 SwitchoverBlueGreenDeploymentRequest + */ + public SwitchoverBlueGreenDeploymentRequest build() { + SwitchoverBlueGreenDeploymentRequest 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.mysql.model.SwitchoverBlueGreenDeploymentDetails body) { + switchoverBlueGreenDeploymentDetails(body); + return this; + } + + /** + * Build the instance of SwitchoverBlueGreenDeploymentRequest 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 SwitchoverBlueGreenDeploymentRequest + */ + public SwitchoverBlueGreenDeploymentRequest buildWithoutInvocationCallback() { + SwitchoverBlueGreenDeploymentRequest request = + new SwitchoverBlueGreenDeploymentRequest(); + request.blueGreenDeploymentId = blueGreenDeploymentId; + request.switchoverBlueGreenDeploymentDetails = switchoverBlueGreenDeploymentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new SwitchoverBlueGreenDeploymentRequest(blueGreenDeploymentId, + // switchoverBlueGreenDeploymentDetails, 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() + .blueGreenDeploymentId(blueGreenDeploymentId) + .switchoverBlueGreenDeploymentDetails(switchoverBlueGreenDeploymentDetails) + .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(",blueGreenDeploymentId=").append(String.valueOf(this.blueGreenDeploymentId)); + sb.append(",switchoverBlueGreenDeploymentDetails=") + .append(String.valueOf(this.switchoverBlueGreenDeploymentDetails)); + 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 SwitchoverBlueGreenDeploymentRequest)) { + return false; + } + + SwitchoverBlueGreenDeploymentRequest other = (SwitchoverBlueGreenDeploymentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.blueGreenDeploymentId, other.blueGreenDeploymentId) + && java.util.Objects.equals( + this.switchoverBlueGreenDeploymentDetails, + other.switchoverBlueGreenDeploymentDetails) + && 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.blueGreenDeploymentId == null + ? 43 + : this.blueGreenDeploymentId.hashCode()); + result = + (result * PRIME) + + (this.switchoverBlueGreenDeploymentDetails == null + ? 43 + : this.switchoverBlueGreenDeploymentDetails.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-mysql/src/main/java/com/oracle/bmc/mysql/requests/UpdateBlueGreenDeploymentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/UpdateBlueGreenDeploymentRequest.java new file mode 100644 index 00000000000..d744869cbac --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/UpdateBlueGreenDeploymentRequest.java @@ -0,0 +1,332 @@ +/** + * 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.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use + * UpdateBlueGreenDeploymentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class UpdateBlueGreenDeploymentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + private String blueGreenDeploymentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + public String getBlueGreenDeploymentId() { + return blueGreenDeploymentId; + } + /** Details for updating mutable metadata on a blue/green deployment. */ + private com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails + updateBlueGreenDeploymentDetails; + + /** Details for updating mutable metadata on a blue/green deployment. */ + public com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails + getUpdateBlueGreenDeploymentDetails() { + return updateBlueGreenDeploymentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * If-Match} header 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} header 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; + } + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails getBody$() { + return updateBlueGreenDeploymentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateBlueGreenDeploymentRequest, + com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + */ + private String blueGreenDeploymentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * blue/green deployment. + * + * @param blueGreenDeploymentId the value to set + * @return this builder instance + */ + public Builder blueGreenDeploymentId(String blueGreenDeploymentId) { + this.blueGreenDeploymentId = blueGreenDeploymentId; + return this; + } + + /** Details for updating mutable metadata on a blue/green deployment. */ + private com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails + updateBlueGreenDeploymentDetails = null; + + /** + * Details for updating mutable metadata on a blue/green deployment. + * + * @param updateBlueGreenDeploymentDetails the value to set + * @return this builder instance + */ + public Builder updateBlueGreenDeploymentDetails( + com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails + updateBlueGreenDeploymentDetails) { + this.updateBlueGreenDeploymentDetails = updateBlueGreenDeploymentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code If-Match} header 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} header 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; + } + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. + * + * @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(UpdateBlueGreenDeploymentRequest o) { + blueGreenDeploymentId(o.getBlueGreenDeploymentId()); + updateBlueGreenDeploymentDetails(o.getUpdateBlueGreenDeploymentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateBlueGreenDeploymentRequest 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 UpdateBlueGreenDeploymentRequest + */ + public UpdateBlueGreenDeploymentRequest build() { + UpdateBlueGreenDeploymentRequest 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.mysql.model.UpdateBlueGreenDeploymentDetails body) { + updateBlueGreenDeploymentDetails(body); + return this; + } + + /** + * Build the instance of UpdateBlueGreenDeploymentRequest 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 UpdateBlueGreenDeploymentRequest + */ + public UpdateBlueGreenDeploymentRequest buildWithoutInvocationCallback() { + UpdateBlueGreenDeploymentRequest request = new UpdateBlueGreenDeploymentRequest(); + request.blueGreenDeploymentId = blueGreenDeploymentId; + request.updateBlueGreenDeploymentDetails = updateBlueGreenDeploymentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateBlueGreenDeploymentRequest(blueGreenDeploymentId, + // updateBlueGreenDeploymentDetails, 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() + .blueGreenDeploymentId(blueGreenDeploymentId) + .updateBlueGreenDeploymentDetails(updateBlueGreenDeploymentDetails) + .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(",blueGreenDeploymentId=").append(String.valueOf(this.blueGreenDeploymentId)); + sb.append(",updateBlueGreenDeploymentDetails=") + .append(String.valueOf(this.updateBlueGreenDeploymentDetails)); + 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 UpdateBlueGreenDeploymentRequest)) { + return false; + } + + UpdateBlueGreenDeploymentRequest other = (UpdateBlueGreenDeploymentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.blueGreenDeploymentId, other.blueGreenDeploymentId) + && java.util.Objects.equals( + this.updateBlueGreenDeploymentDetails, + other.updateBlueGreenDeploymentDetails) + && 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.blueGreenDeploymentId == null + ? 43 + : this.blueGreenDeploymentId.hashCode()); + result = + (result * PRIME) + + (this.updateBlueGreenDeploymentDetails == null + ? 43 + : this.updateBlueGreenDeploymentDetails.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-mysql/src/main/java/com/oracle/bmc/mysql/responses/ChangeBlueGreenDeploymentCompartmentResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ChangeBlueGreenDeploymentCompartmentResponse.java new file mode 100644 index 00000000000..78d1bf8f87b --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ChangeBlueGreenDeploymentCompartmentResponse.java @@ -0,0 +1,188 @@ +/** + * 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.mysql.responses; + +import com.oracle.bmc.mysql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class ChangeBlueGreenDeploymentCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ChangeBlueGreenDeploymentCompartmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeBlueGreenDeploymentCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeBlueGreenDeploymentCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeBlueGreenDeploymentCompartmentResponse build() { + return new ChangeBlueGreenDeploymentCompartmentResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeBlueGreenDeploymentCompartmentResponse)) { + return false; + } + + ChangeBlueGreenDeploymentCompartmentResponse other = + (ChangeBlueGreenDeploymentCompartmentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CreateBlueGreenDeploymentResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CreateBlueGreenDeploymentResponse.java new file mode 100644 index 00000000000..7141f62afe5 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CreateBlueGreenDeploymentResponse.java @@ -0,0 +1,262 @@ +/** + * 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.mysql.responses; + +import com.oracle.bmc.mysql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class CreateBlueGreenDeploymentResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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 returned {@code BlueGreenDeployment} instance. */ + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; + + /** + * The returned {@code BlueGreenDeployment} instance. + * + * @return the value + */ + public com.oracle.bmc.mysql.model.BlueGreenDeployment getBlueGreenDeployment() { + return blueGreenDeployment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcWorkRequestId", + "blueGreenDeployment" + }) + private CreateBlueGreenDeploymentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + String opcWorkRequestId, + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.blueGreenDeployment = blueGreenDeployment; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateBlueGreenDeploymentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 returned {@code BlueGreenDeployment} instance. */ + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; + + /** + * The returned {@code BlueGreenDeployment} instance. + * + * @param blueGreenDeployment the value to set + * @return this builder + */ + public Builder blueGreenDeployment( + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment) { + this.blueGreenDeployment = blueGreenDeployment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateBlueGreenDeploymentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + blueGreenDeployment(o.getBlueGreenDeployment()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateBlueGreenDeploymentResponse build() { + return new CreateBlueGreenDeploymentResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcWorkRequestId, + blueGreenDeployment); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",blueGreenDeployment=").append(String.valueOf(blueGreenDeployment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBlueGreenDeploymentResponse)) { + return false; + } + + CreateBlueGreenDeploymentResponse other = (CreateBlueGreenDeploymentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.blueGreenDeployment, other.blueGreenDeployment); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.blueGreenDeployment == null + ? 43 + : this.blueGreenDeployment.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/DeleteBlueGreenDeploymentResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/DeleteBlueGreenDeploymentResponse.java new file mode 100644 index 00000000000..a771215df7f --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/DeleteBlueGreenDeploymentResponse.java @@ -0,0 +1,186 @@ +/** + * 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.mysql.responses; + +import com.oracle.bmc.mysql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class DeleteBlueGreenDeploymentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DeleteBlueGreenDeploymentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteBlueGreenDeploymentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteBlueGreenDeploymentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteBlueGreenDeploymentResponse build() { + return new DeleteBlueGreenDeploymentResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteBlueGreenDeploymentResponse)) { + return false; + } + + DeleteBlueGreenDeploymentResponse other = (DeleteBlueGreenDeploymentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/GetBlueGreenDeploymentResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/GetBlueGreenDeploymentResponse.java new file mode 100644 index 00000000000..ec4d05ac9b5 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/GetBlueGreenDeploymentResponse.java @@ -0,0 +1,266 @@ +/** + * 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.mysql.responses; + +import com.oracle.bmc.mysql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class GetBlueGreenDeploymentResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned BlueGreenDeployment instance, or null if {@link #isNotModified()} is true. */ + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; + + /** + * The returned BlueGreenDeployment instance, or null if {@link #isNotModified()} is true. + * + * @return the value + */ + public com.oracle.bmc.mysql.model.BlueGreenDeployment getBlueGreenDeployment() { + return blueGreenDeployment; + } + + /** + * Flag to indicate whether or not the object was modified. If this is true, the getter for the + * object itself will return null. Callers should check this if they specified one of the + * request params that might result in a conditional response (like 'if-match'/'if-none-match'). + */ + private boolean isNotModified; + + /** + * Flag to indicate whether or not the object was modified. If this is true, the getter for the + * object itself will return null. Callers should check this if they specified one of the + * request params that might result in a conditional response (like 'if-match'/'if-none-match'). + * + * @param true if the object was not modified + */ + public boolean isNotModified() { + return isNotModified; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "blueGreenDeployment", + "isNotModified" + }) + private GetBlueGreenDeploymentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment, + boolean isNotModified) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.blueGreenDeployment = blueGreenDeployment; + this.isNotModified = isNotModified; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetBlueGreenDeploymentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned BlueGreenDeployment instance, or null if {@link #isNotModified()} is true. + */ + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; + + /** + * The returned BlueGreenDeployment instance, or null if {@link #isNotModified()} is true. + * + * @param blueGreenDeployment the value to set + * @return this builder + */ + public Builder blueGreenDeployment( + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment) { + this.blueGreenDeployment = blueGreenDeployment; + return this; + } + + /** + * Flag to indicate whether or not the object was modified. If this is true, the getter for + * the object itself will return null. Callers should check this if they specified one of + * the request params that might result in a conditional response (like + * 'if-match'/'if-none-match'). + */ + private boolean isNotModified; + + /** + * Flag to indicate whether or not the object was modified. If this is true, the getter for + * the object itself will return null. Callers should check this if they specified one of + * the request params that might result in a conditional response (like + * 'if-match'/'if-none-match'). + * + * @param true if the object was not modified + */ + public Builder isNotModified(boolean isNotModified) { + this.isNotModified = isNotModified; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetBlueGreenDeploymentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + blueGreenDeployment(o.getBlueGreenDeployment()); + isNotModified(o.isNotModified()); + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetBlueGreenDeploymentResponse build() { + return new GetBlueGreenDeploymentResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + blueGreenDeployment, + isNotModified); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",blueGreenDeployment=").append(String.valueOf(blueGreenDeployment)); + sb.append(",isNotModified=").append(isNotModified); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBlueGreenDeploymentResponse)) { + return false; + } + + GetBlueGreenDeploymentResponse other = (GetBlueGreenDeploymentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.blueGreenDeployment, other.blueGreenDeployment) + && this.isNotModified == other.isNotModified; + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.blueGreenDeployment == null + ? 43 + : this.blueGreenDeployment.hashCode()); + result = (result * PRIME) + (this.isNotModified ? 79 : 97); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ListBlueGreenDeploymentsResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ListBlueGreenDeploymentsResponse.java new file mode 100644 index 00000000000..6d03bbafbe2 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ListBlueGreenDeploymentsResponse.java @@ -0,0 +1,236 @@ +/** + * 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.mysql.responses; + +import com.oracle.bmc.mysql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class ListBlueGreenDeploymentsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code BlueGreenDeploymentCollection} instance. */ + private com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection blueGreenDeploymentCollection; + + /** + * The returned {@code BlueGreenDeploymentCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection + getBlueGreenDeploymentCollection() { + return blueGreenDeploymentCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "blueGreenDeploymentCollection" + }) + private ListBlueGreenDeploymentsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection + blueGreenDeploymentCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.blueGreenDeploymentCollection = blueGreenDeploymentCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListBlueGreenDeploymentsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code BlueGreenDeploymentCollection} instance. */ + private com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection + blueGreenDeploymentCollection; + + /** + * The returned {@code BlueGreenDeploymentCollection} instance. + * + * @param blueGreenDeploymentCollection the value to set + * @return this builder + */ + public Builder blueGreenDeploymentCollection( + com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection + blueGreenDeploymentCollection) { + this.blueGreenDeploymentCollection = blueGreenDeploymentCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListBlueGreenDeploymentsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + blueGreenDeploymentCollection(o.getBlueGreenDeploymentCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListBlueGreenDeploymentsResponse build() { + return new ListBlueGreenDeploymentsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + blueGreenDeploymentCollection); + } + } + + /** + * 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(",blueGreenDeploymentCollection=") + .append(String.valueOf(blueGreenDeploymentCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBlueGreenDeploymentsResponse)) { + return false; + } + + ListBlueGreenDeploymentsResponse other = (ListBlueGreenDeploymentsResponse) 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.blueGreenDeploymentCollection, other.blueGreenDeploymentCollection); + } + + @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.blueGreenDeploymentCollection == null + ? 43 + : this.blueGreenDeploymentCollection.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/SwitchoverBlueGreenDeploymentResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/SwitchoverBlueGreenDeploymentResponse.java new file mode 100644 index 00000000000..5eb854777af --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/SwitchoverBlueGreenDeploymentResponse.java @@ -0,0 +1,262 @@ +/** + * 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.mysql.responses; + +import com.oracle.bmc.mysql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class SwitchoverBlueGreenDeploymentResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * 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 returned {@code BlueGreenDeployment} instance. */ + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; + + /** + * The returned {@code BlueGreenDeployment} instance. + * + * @return the value + */ + public com.oracle.bmc.mysql.model.BlueGreenDeployment getBlueGreenDeployment() { + return blueGreenDeployment; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcWorkRequestId", + "blueGreenDeployment" + }) + private SwitchoverBlueGreenDeploymentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + String opcWorkRequestId, + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.blueGreenDeployment = blueGreenDeployment; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + SwitchoverBlueGreenDeploymentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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 returned {@code BlueGreenDeployment} instance. */ + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; + + /** + * The returned {@code BlueGreenDeployment} instance. + * + * @param blueGreenDeployment the value to set + * @return this builder + */ + public Builder blueGreenDeployment( + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment) { + this.blueGreenDeployment = blueGreenDeployment; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(SwitchoverBlueGreenDeploymentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + blueGreenDeployment(o.getBlueGreenDeployment()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public SwitchoverBlueGreenDeploymentResponse build() { + return new SwitchoverBlueGreenDeploymentResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcWorkRequestId, + blueGreenDeployment); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",blueGreenDeployment=").append(String.valueOf(blueGreenDeployment)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchoverBlueGreenDeploymentResponse)) { + return false; + } + + SwitchoverBlueGreenDeploymentResponse other = (SwitchoverBlueGreenDeploymentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.blueGreenDeployment, other.blueGreenDeployment); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.blueGreenDeployment == null + ? 43 + : this.blueGreenDeployment.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/UpdateBlueGreenDeploymentResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/UpdateBlueGreenDeploymentResponse.java new file mode 100644 index 00000000000..a5cb9122ad0 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/UpdateBlueGreenDeploymentResponse.java @@ -0,0 +1,186 @@ +/** + * 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.mysql.responses; + +import com.oracle.bmc.mysql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class UpdateBlueGreenDeploymentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private UpdateBlueGreenDeploymentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateBlueGreenDeploymentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateBlueGreenDeploymentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateBlueGreenDeploymentResponse build() { + return new UpdateBlueGreenDeploymentResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBlueGreenDeploymentResponse)) { + return false; + } + + UpdateBlueGreenDeploymentResponse other = (UpdateBlueGreenDeploymentResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json b/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json index 7c0208461b1..a7c3e2f7210 100644 --- a/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json +++ b/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json @@ -140,6 +140,80 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.BlueGreenDeployment", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.BlueGreenDeployment$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.BlueGreenDeployment$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.BlueGreenDeploymentSwitchoverStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.BlueGreenDeploymentTargetDbSystemDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.BlueGreenDeploymentTargetDbSystemDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.mysql.model.CaCertificate", @@ -173,6 +247,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.mysql.model.Channel", @@ -551,6 +639,48 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentChannelDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentChannelDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentTargetDbSystemDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentTargetDbSystemDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.mysql.model.CreateChannelDetails", @@ -1747,6 +1877,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.mysql.model.TelemetryConfigurationDetails", @@ -1789,6 +1933,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.mysql.model.UpdateChannelDetails", diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index 7a45d540ac3..0c1daecd556 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-networkfirewall @@ -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-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 28ea030715c..47a0ebf40be 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -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-nosql/pom.xml b/bmc-nosql/pom.xml index 87d6ad2e05c..2623ddbd122 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-nosql @@ -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-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 3866e02b8a9..7502965dcb9 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.94.2 + 3.95.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.94.2 + 3.95.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.94.2 + 3.95.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 3fded42da56..25d78fe3f95 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.94.2 + 3.95.0 ../pom.xml @@ -25,17 +25,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-objectstorage-generated - 3.94.2 + 3.95.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 15c8a26409e..f8850c29b4c 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.94.2 + 3.95.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.94.2 + 3.95.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 124738ee86c..af0d8a6bb87 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/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-oce/pom.xml b/bmc-oce/pom.xml index dbd03f73b92..0bd8a3fbedd 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-oce @@ -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-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 914b7ad00fe..dee28a08f0f 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -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-ocvp/pom.xml b/bmc-ocvp/pom.xml index 67d83f74a46..d19906992c6 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-ocvp @@ -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-oda/pom.xml b/bmc-oda/pom.xml index c75629df2c1..a6e4f684120 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-oda @@ -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-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 576d6ed3cfb..da411d9fb7e 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-onesubscription @@ -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-ons/pom.xml b/bmc-ons/pom.xml index d6995c05cd3..0ee88687707 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-ons @@ -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-opa/pom.xml b/bmc-opa/pom.xml index fef6c5cfa32..e51af203ec0 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-opa @@ -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-opensearch/pom.xml b/bmc-opensearch/pom.xml index cbeb5d47df2..7ee963c49ac 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-opensearch @@ -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-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 632d9e1c440..c101e52c5d9 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -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-opsi/pom.xml b/bmc-opsi/pom.xml index 20d6cfa0520..0571f48c6dc 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-opsi @@ -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-optimizer/pom.xml b/bmc-optimizer/pom.xml index 29fc6eb8223..3d11c0a8424 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-optimizer @@ -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-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index a93f11d1622..1f6ea48d6e8 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -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-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 3432c655172..5e6bdfbebda 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-ospgateway @@ -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-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 8be098f6549..61587fc88d9 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -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-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 567508e37d7..fe970eb959d 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -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-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 89f822d1f39..39c105964fc 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-osubsubscription @@ -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-osubusage/pom.xml b/bmc-osubusage/pom.xml index adbfebc1c35..425c9604e18 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-osubusage @@ -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-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index 0815f74edd6..3c8ebdb5647 100644 --- a/bmc-other-examples/bmc-jersey-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey-examples - 3.94.2 + 3.95.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.94.2 + 3.95.0 false @@ -95,14 +95,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-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 1bd2247e258..71a507bc2ed 100644 --- a/bmc-other-examples/bmc-jersey3-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey3-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey3-examples - 3.94.2 + 3.95.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.94.2 + 3.95.0 false @@ -95,14 +95,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-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index b8360f416ad..ca3c0ac82f0 100644 --- a/bmc-other-examples/native-maven-example/pom.xml +++ b/bmc-other-examples/native-maven-example/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-examples-native - 3.94.2 + 3.95.0 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -98,14 +98,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-other-examples/pom.xml b/bmc-other-examples/pom.xml index 0b825be4437..99183f1e212 100644 --- a/bmc-other-examples/pom.xml +++ b/bmc-other-examples/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index c907deab960..b153d7834e0 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-psa @@ -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-psql/pom.xml b/bmc-psql/pom.xml index 39edee6a934..cc245d46ce2 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-psql @@ -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-queue/pom.xml b/bmc-queue/pom.xml index 6b92c0bf2eb..ed5601cd7bc 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-queue @@ -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-recovery/pom.xml b/bmc-recovery/pom.xml index 130a55814bf..ea166c43115 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-recovery @@ -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-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java index 678bc910375..61b23d38ebc 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java @@ -63,6 +63,25 @@ public interface DatabaseRecovery extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Cancels a long-term backup that is being created or scheduled to be created. You must specify + * the unique identifier or OCID of the long-term backup that you want to cancel. You can cancel + * a long-term backup only if the current state of the backup resource is + * WAITING_FOR_BACKUP_FROM_DB, or SCHEDULED_FOR_ARCHIVAL, or ARCHIVAL_IN_PROGRESS. + * + * @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 + * CancelLongTermBackup API. + */ + CancelLongTermBackupResponse cancelLongTermBackup(CancelLongTermBackupRequest request); + /** * Cancels the scheduled deletion of a protected database, and returns the protected database to * an ACTIVE state. You can cancel the deletion only if the protected database is in the DELETE @@ -154,6 +173,22 @@ ChangeProtectionPolicyCompartmentResponse changeProtectionPolicyCompartment( ChangeRecoveryServiceSubnetCompartmentResponse changeRecoveryServiceSubnetCompartment( ChangeRecoveryServiceSubnetCompartmentRequest request); + /** + * Creates a long-term backup of a specified protected database. + * + * @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 + * CreateLongTermBackup API. + */ + CreateLongTermBackupResponse createLongTermBackup(CreateLongTermBackupRequest request); + /** * Creates a new Protected Database. * @@ -204,7 +239,26 @@ CreateRecoveryServiceSubnetResponse createRecoveryServiceSubnet( CreateRecoveryServiceSubnetRequest request); /** - * Deletes a protected database based on the specified protected database ID. + * Deletes a long-term backup. You can delete a long-term backup only if the current state of + * the backup is ACTIVE, FAILED, or CANCELED. + * + * @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 + * DeleteLongTermBackup API. + */ + DeleteLongTermBackupResponse deleteLongTermBackup(DeleteLongTermBackupRequest request); + + /** + * Deletes a protected database based on the specified protected database ID. Only the user or + * the Oracle Database service that created the protected database is allowed to modify or + * delete it. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -271,6 +325,22 @@ DeleteRecoveryServiceSubnetResponse deleteRecoveryServiceSubnet( FetchProtectedDatabaseConfigurationResponse fetchProtectedDatabaseConfiguration( FetchProtectedDatabaseConfigurationRequest request); + /** + * Retrieves information regarding a long-term backup. + * + * @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 GetLongTermBackup + * API. + */ + GetLongTermBackupResponse getLongTermBackup(GetLongTermBackupRequest request); + /** * Gets information about a specified protected database. * @@ -335,6 +405,24 @@ GetRecoveryServiceSubnetResponse getRecoveryServiceSubnet( */ GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + /** + * Lists the long-term backups associated with a protected database. You can filter the results + * using the unique identifier (OCID) of a specific compartment, a protected database, or a + * long-term backup. + * + * @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 ListLongTermBackups + * API. + */ + ListLongTermBackupsResponse listLongTermBackups(ListLongTermBackupsRequest request); + /** * Lists the protected databases based on the specified parameters. * @@ -434,8 +522,11 @@ ListRecoveryServiceSubnetsResponse listRecoveryServiceSubnets( /** * Defines a preferred schedule to delete a protected database after you terminate the source - * database. The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can - * occur 72 hours (3 days) after the source database is terminated. The alternate schedule is + * database. Only the user or the Oracle Database service that created the protected database is + * allowed to modify or delete it. + * + *

    The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 + * hours (3 days) after the source database is terminated. The alternate schedule is * DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database * only after the policy-defined backup retention period expires. * @@ -453,6 +544,22 @@ ListRecoveryServiceSubnetsResponse listRecoveryServiceSubnets( ScheduleProtectedDatabaseDeletionResponse scheduleProtectedDatabaseDeletion( ScheduleProtectedDatabaseDeletionRequest request); + /** + * Updates the specified long term backup. + * + * @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 + * UpdateLongTermBackup API. + */ + UpdateLongTermBackupResponse updateLongTermBackup(UpdateLongTermBackupRequest request); + /** * Updates the Protected Database * diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java index 5c9d76c8f4b..69f29a827fe 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java @@ -59,6 +59,25 @@ public interface DatabaseRecoveryAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Cancels a long-term backup that is being created or scheduled to be created. You must specify + * the unique identifier or OCID of the long-term backup that you want to cancel. You can cancel + * a long-term backup only if the current state of the backup resource is + * WAITING_FOR_BACKUP_FROM_DB, or SCHEDULED_FOR_ARCHIVAL, or ARCHIVAL_IN_PROGRESS. + * + * @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 cancelLongTermBackup( + CancelLongTermBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelLongTermBackupRequest, CancelLongTermBackupResponse> + handler); + /** * Cancels the scheduled deletion of a protected database, and returns the protected database to * an ACTIVE state. You can cancel the deletion only if the protected database is in the DELETE @@ -155,6 +174,22 @@ public interface DatabaseRecoveryAsync extends AutoCloseable { ChangeRecoveryServiceSubnetCompartmentResponse> handler); + /** + * Creates a long-term backup of a specified protected database. + * + * @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 createLongTermBackup( + CreateLongTermBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateLongTermBackupRequest, CreateLongTermBackupResponse> + handler); + /** * Creates a new Protected Database. * @@ -204,7 +239,26 @@ java.util.concurrent.Future createRecoveryS handler); /** - * Deletes a protected database based on the specified protected database ID. + * Deletes a long-term backup. You can delete a long-term backup only if the current state of + * the backup is ACTIVE, FAILED, or CANCELED. + * + * @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 deleteLongTermBackup( + DeleteLongTermBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteLongTermBackupRequest, DeleteLongTermBackupResponse> + handler); + + /** + * Deletes a protected database based on the specified protected database ID. Only the user or + * the Oracle Database service that created the protected database is allowed to modify or + * delete it. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -271,6 +325,22 @@ java.util.concurrent.Future deleteRecoveryS FetchProtectedDatabaseConfigurationResponse> handler); + /** + * Retrieves information regarding a long-term backup. + * + * @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 getLongTermBackup( + GetLongTermBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetLongTermBackupRequest, GetLongTermBackupResponse> + handler); + /** * Gets information about a specified protected database. * @@ -334,6 +404,24 @@ java.util.concurrent.Future getWorkRequest( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Lists the long-term backups associated with a protected database. You can filter the results + * using the unique identifier (OCID) of a specific compartment, a protected database, or a + * long-term backup. + * + * @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 listLongTermBackups( + ListLongTermBackupsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListLongTermBackupsRequest, ListLongTermBackupsResponse> + handler); + /** * Lists the protected databases based on the specified parameters. * @@ -431,8 +519,11 @@ java.util.concurrent.Future listWorkRequests( /** * Defines a preferred schedule to delete a protected database after you terminate the source - * database. The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can - * occur 72 hours (3 days) after the source database is terminated. The alternate schedule is + * database. Only the user or the Oracle Database service that created the protected database is + * allowed to modify or delete it. + * + *

    The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 + * hours (3 days) after the source database is terminated. The alternate schedule is * DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database * only after the policy-defined backup retention period expires. * @@ -451,6 +542,22 @@ java.util.concurrent.Future listWorkRequests( ScheduleProtectedDatabaseDeletionResponse> handler); + /** + * Updates the specified long term backup. + * + * @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 updateLongTermBackup( + UpdateLongTermBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateLongTermBackupRequest, UpdateLongTermBackupResponse> + handler); + /** * Updates the Protected Database * diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java index b3eabb29c63..4813230d11d 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java @@ -123,6 +123,40 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future cancelLongTermBackup( + CancelLongTermBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelLongTermBackupRequest, CancelLongTermBackupResponse> + handler) { + + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + + return clientCall(request, CancelLongTermBackupResponse::builder) + .logger(LOG, "cancelLongTermBackup") + .serviceDetails( + "DatabaseRecovery", + "CancelLongTermBackup", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/CancelLongTermBackup") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelLongTermBackupRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .appendPathParam(request.getLongTermBackupId()) + .appendPathParam("actions") + .appendPathParam("cancel") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + CancelLongTermBackupResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CancelLongTermBackupResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future cancelProtectedDatabaseDeletion( @@ -149,6 +183,7 @@ public void setRegion(String regionId) { .appendPathParam("actions") .appendPathParam("cancelDeletion") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( @@ -186,6 +221,7 @@ public void setRegion(String regionId) { .appendPathParam("actions") .appendPathParam("changeCompartment") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() @@ -227,6 +263,7 @@ public void setRegion(String regionId) { .appendPathParam("actions") .appendPathParam("changeSubscription") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) .hasBody() @@ -267,6 +304,7 @@ public void setRegion(String regionId) { .appendPathParam("actions") .appendPathParam("changeCompartment") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() @@ -308,6 +346,7 @@ public void setRegion(String regionId) { .appendPathParam("actions") .appendPathParam("changeCompartment") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() @@ -320,6 +359,44 @@ public void setRegion(String regionId) { .callAsync(handler); } + @Override + public java.util.concurrent.Future createLongTermBackup( + CreateLongTermBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateLongTermBackupRequest, CreateLongTermBackupResponse> + handler) { + Objects.requireNonNull( + request.getCreateLongTermBackupDetails(), + "createLongTermBackupDetails is required"); + + return clientCall(request, CreateLongTermBackupResponse::builder) + .logger(LOG, "createLongTermBackup") + .serviceDetails( + "DatabaseRecovery", + "CreateLongTermBackup", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/CreateLongTermBackup") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateLongTermBackupRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.recovery.model.LongTermBackup.class, + CreateLongTermBackupResponse.Builder::longTermBackup) + .handleResponseHeaderString( + "location", CreateLongTermBackupResponse.Builder::location) + .handleResponseHeaderString("etag", CreateLongTermBackupResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateLongTermBackupResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateLongTermBackupResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createProtectedDatabase( CreateProtectedDatabaseRequest request, @@ -438,6 +515,37 @@ public java.util.concurrent.Future createProtect .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteLongTermBackup( + DeleteLongTermBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteLongTermBackupRequest, DeleteLongTermBackupResponse> + handler) { + + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + + return clientCall(request, DeleteLongTermBackupResponse::builder) + .logger(LOG, "deleteLongTermBackup") + .serviceDetails( + "DatabaseRecovery", + "DeleteLongTermBackup", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/DeleteLongTermBackup") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteLongTermBackupRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .appendPathParam(request.getLongTermBackupId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteLongTermBackupResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteLongTermBackupResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteProtectedDatabase( DeleteProtectedDatabaseRequest request, @@ -562,6 +670,7 @@ public java.util.concurrent.Future deleteProtect .appendPathParam("actions") .appendPathParam("getConfiguration") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) .hasBody() @@ -582,6 +691,37 @@ public java.util.concurrent.Future deleteProtect .callAsync(handler); } + @Override + public java.util.concurrent.Future getLongTermBackup( + GetLongTermBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetLongTermBackupRequest, GetLongTermBackupResponse> + handler) { + + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + + return clientCall(request, GetLongTermBackupResponse::builder) + .logger(LOG, "getLongTermBackup") + .serviceDetails( + "DatabaseRecovery", + "GetLongTermBackup", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/GetLongTermBackup") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetLongTermBackupRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .appendPathParam(request.getLongTermBackupId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.recovery.model.LongTermBackup.class, + GetLongTermBackupResponse.Builder::longTermBackup) + .handleResponseHeaderString("etag", GetLongTermBackupResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetLongTermBackupResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getProtectedDatabase( GetProtectedDatabaseRequest request, @@ -709,13 +849,50 @@ public java.util.concurrent.Future getWorkRequest( .callAsync(handler); } + @Override + public java.util.concurrent.Future listLongTermBackups( + ListLongTermBackupsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListLongTermBackupsRequest, ListLongTermBackupsResponse> + handler) { + + return clientCall(request, ListLongTermBackupsResponse::builder) + .logger(LOG, "listLongTermBackups") + .serviceDetails( + "DatabaseRecovery", + "ListLongTermBackups", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackupCollection/ListLongTermBackups") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListLongTermBackupsRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("protectedDatabaseId", request.getProtectedDatabaseId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.recovery.model.LongTermBackupCollection.class, + ListLongTermBackupsResponse.Builder::longTermBackupCollection) + .handleResponseHeaderString( + "opc-request-id", ListLongTermBackupsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListLongTermBackupsResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listProtectedDatabases( ListProtectedDatabasesRequest request, final com.oracle.bmc.responses.AsyncHandler< ListProtectedDatabasesRequest, ListProtectedDatabasesResponse> handler) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListProtectedDatabasesResponse::builder) .logger(LOG, "listProtectedDatabases") @@ -733,6 +910,7 @@ public java.util.concurrent.Future listProtected .appendQueryParam("id", request.getId()) .appendQueryParam("protectionPolicyId", request.getProtectionPolicyId()) .appendQueryParam("recoveryServiceSubnetId", request.getRecoveryServiceSubnetId()) + .appendEnumQueryParam("backupCloudLocation", request.getBackupCloudLocation()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) @@ -755,7 +933,6 @@ public java.util.concurrent.Future listProtectio final com.oracle.bmc.responses.AsyncHandler< ListProtectionPoliciesRequest, ListProtectionPoliciesResponse> handler) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListProtectionPoliciesResponse::builder) .logger(LOG, "listProtectionPolicies") @@ -772,6 +949,7 @@ public java.util.concurrent.Future listProtectio .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("protectionPolicyId", request.getProtectionPolicyId()) .appendEnumQueryParam("owner", request.getOwner()) + .appendQueryParam("mustEnforceCloudLocality", request.getMustEnforceCloudLocality()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) @@ -796,7 +974,6 @@ public java.util.concurrent.Future listProtectio ListRecoveryServiceSubnetsRequest, ListRecoveryServiceSubnetsResponse> handler) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListRecoveryServiceSubnetsResponse::builder) .logger(LOG, "listRecoveryServiceSubnets") @@ -909,7 +1086,6 @@ public java.util.concurrent.Future listWorkRequests( final com.oracle.bmc.responses.AsyncHandler< ListWorkRequestsRequest, ListWorkRequestsResponse> handler) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") @@ -967,6 +1143,7 @@ public java.util.concurrent.Future listWorkRequests( .appendPathParam("actions") .appendPathParam("scheduleDeletion") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() @@ -979,6 +1156,41 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future updateLongTermBackup( + UpdateLongTermBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateLongTermBackupRequest, UpdateLongTermBackupResponse> + handler) { + + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + Objects.requireNonNull( + request.getUpdateLongTermBackupDetails(), + "updateLongTermBackupDetails is required"); + + return clientCall(request, UpdateLongTermBackupResponse::builder) + .logger(LOG, "updateLongTermBackup") + .serviceDetails( + "DatabaseRecovery", + "UpdateLongTermBackup", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/UpdateLongTermBackup") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateLongTermBackupRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .appendPathParam(request.getLongTermBackupId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateLongTermBackupResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateLongTermBackupResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateProtectedDatabase( UpdateProtectedDatabaseRequest request, diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java index 14cc0fb4bcc..a330cc8431d 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java @@ -149,6 +149,37 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public CancelLongTermBackupResponse cancelLongTermBackup(CancelLongTermBackupRequest request) { + + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + + return clientCall(request, CancelLongTermBackupResponse::builder) + .logger(LOG, "cancelLongTermBackup") + .serviceDetails( + "DatabaseRecovery", + "CancelLongTermBackup", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/CancelLongTermBackup") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelLongTermBackupRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .appendPathParam(request.getLongTermBackupId()) + .appendPathParam("actions") + .appendPathParam("cancel") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + CancelLongTermBackupResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CancelLongTermBackupResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CancelProtectedDatabaseDeletionResponse cancelProtectedDatabaseDeletion( CancelProtectedDatabaseDeletionRequest request) { @@ -170,6 +201,7 @@ public CancelProtectedDatabaseDeletionResponse cancelProtectedDatabaseDeletion( .appendPathParam("actions") .appendPathParam("cancelDeletion") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() @@ -203,6 +235,7 @@ public ChangeProtectedDatabaseCompartmentResponse changeProtectedDatabaseCompart .appendPathParam("actions") .appendPathParam("changeCompartment") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() @@ -240,6 +273,7 @@ public ChangeProtectedDatabaseSubscriptionResponse changeProtectedDatabaseSubscr .appendPathParam("actions") .appendPathParam("changeSubscription") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) .operationUsesDefaultRetries() @@ -276,6 +310,7 @@ public ChangeProtectionPolicyCompartmentResponse changeProtectionPolicyCompartme .appendPathParam("actions") .appendPathParam("changeCompartment") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() @@ -313,6 +348,7 @@ public ChangeRecoveryServiceSubnetCompartmentResponse changeRecoveryServiceSubne .appendPathParam("actions") .appendPathParam("changeCompartment") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() @@ -326,6 +362,41 @@ public ChangeRecoveryServiceSubnetCompartmentResponse changeRecoveryServiceSubne .callSync(); } + @Override + public CreateLongTermBackupResponse createLongTermBackup(CreateLongTermBackupRequest request) { + Objects.requireNonNull( + request.getCreateLongTermBackupDetails(), + "createLongTermBackupDetails is required"); + + return clientCall(request, CreateLongTermBackupResponse::builder) + .logger(LOG, "createLongTermBackup") + .serviceDetails( + "DatabaseRecovery", + "CreateLongTermBackup", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/CreateLongTermBackup") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateLongTermBackupRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.recovery.model.LongTermBackup.class, + CreateLongTermBackupResponse.Builder::longTermBackup) + .handleResponseHeaderString( + "location", CreateLongTermBackupResponse.Builder::location) + .handleResponseHeaderString("etag", CreateLongTermBackupResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateLongTermBackupResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateLongTermBackupResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateProtectedDatabaseResponse createProtectedDatabase( CreateProtectedDatabaseRequest request) { @@ -436,6 +507,34 @@ public CreateRecoveryServiceSubnetResponse createRecoveryServiceSubnet( .callSync(); } + @Override + public DeleteLongTermBackupResponse deleteLongTermBackup(DeleteLongTermBackupRequest request) { + + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + + return clientCall(request, DeleteLongTermBackupResponse::builder) + .logger(LOG, "deleteLongTermBackup") + .serviceDetails( + "DatabaseRecovery", + "DeleteLongTermBackup", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/DeleteLongTermBackup") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteLongTermBackupRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .appendPathParam(request.getLongTermBackupId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteLongTermBackupResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", DeleteLongTermBackupResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteProtectedDatabaseResponse deleteProtectedDatabase( DeleteProtectedDatabaseRequest request) { @@ -547,6 +646,7 @@ public FetchProtectedDatabaseConfigurationResponse fetchProtectedDatabaseConfigu .appendPathParam("actions") .appendPathParam("getConfiguration") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) .operationUsesDefaultRetries() @@ -568,6 +668,34 @@ public FetchProtectedDatabaseConfigurationResponse fetchProtectedDatabaseConfigu .callSync(); } + @Override + public GetLongTermBackupResponse getLongTermBackup(GetLongTermBackupRequest request) { + + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + + return clientCall(request, GetLongTermBackupResponse::builder) + .logger(LOG, "getLongTermBackup") + .serviceDetails( + "DatabaseRecovery", + "GetLongTermBackup", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/GetLongTermBackup") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetLongTermBackupRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .appendPathParam(request.getLongTermBackupId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.recovery.model.LongTermBackup.class, + GetLongTermBackupResponse.Builder::longTermBackup) + .handleResponseHeaderString("etag", GetLongTermBackupResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetLongTermBackupResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetProtectedDatabaseResponse getProtectedDatabase(GetProtectedDatabaseRequest request) { @@ -684,10 +812,44 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { .callSync(); } + @Override + public ListLongTermBackupsResponse listLongTermBackups(ListLongTermBackupsRequest request) { + + return clientCall(request, ListLongTermBackupsResponse::builder) + .logger(LOG, "listLongTermBackups") + .serviceDetails( + "DatabaseRecovery", + "ListLongTermBackups", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackupCollection/ListLongTermBackups") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListLongTermBackupsRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("id", request.getId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("protectedDatabaseId", request.getProtectedDatabaseId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.recovery.model.LongTermBackupCollection.class, + ListLongTermBackupsResponse.Builder::longTermBackupCollection) + .handleResponseHeaderString( + "opc-request-id", ListLongTermBackupsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListLongTermBackupsResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListProtectedDatabasesResponse listProtectedDatabases( ListProtectedDatabasesRequest request) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListProtectedDatabasesResponse::builder) .logger(LOG, "listProtectedDatabases") @@ -705,6 +867,7 @@ public ListProtectedDatabasesResponse listProtectedDatabases( .appendQueryParam("id", request.getId()) .appendQueryParam("protectionPolicyId", request.getProtectionPolicyId()) .appendQueryParam("recoveryServiceSubnetId", request.getRecoveryServiceSubnetId()) + .appendEnumQueryParam("backupCloudLocation", request.getBackupCloudLocation()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) @@ -725,7 +888,6 @@ public ListProtectedDatabasesResponse listProtectedDatabases( @Override public ListProtectionPoliciesResponse listProtectionPolicies( ListProtectionPoliciesRequest request) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListProtectionPoliciesResponse::builder) .logger(LOG, "listProtectionPolicies") @@ -742,6 +904,7 @@ public ListProtectionPoliciesResponse listProtectionPolicies( .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("protectionPolicyId", request.getProtectionPolicyId()) .appendEnumQueryParam("owner", request.getOwner()) + .appendQueryParam("mustEnforceCloudLocality", request.getMustEnforceCloudLocality()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) @@ -762,7 +925,6 @@ public ListProtectionPoliciesResponse listProtectionPolicies( @Override public ListRecoveryServiceSubnetsResponse listRecoveryServiceSubnets( ListRecoveryServiceSubnetsRequest request) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListRecoveryServiceSubnetsResponse::builder) .logger(LOG, "listRecoveryServiceSubnets") @@ -867,7 +1029,6 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques @Override public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") @@ -921,6 +1082,7 @@ public ScheduleProtectedDatabaseDeletionResponse scheduleProtectedDatabaseDeleti .appendPathParam("actions") .appendPathParam("scheduleDeletion") .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() @@ -934,6 +1096,38 @@ public ScheduleProtectedDatabaseDeletionResponse scheduleProtectedDatabaseDeleti .callSync(); } + @Override + public UpdateLongTermBackupResponse updateLongTermBackup(UpdateLongTermBackupRequest request) { + + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + Objects.requireNonNull( + request.getUpdateLongTermBackupDetails(), + "updateLongTermBackupDetails is required"); + + return clientCall(request, UpdateLongTermBackupResponse::builder) + .logger(LOG, "updateLongTermBackup") + .serviceDetails( + "DatabaseRecovery", + "UpdateLongTermBackup", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/UpdateLongTermBackup") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateLongTermBackupRequest::builder) + .basePath("/20210216") + .appendPathParam("longTermBackups") + .appendPathParam(request.getLongTermBackupId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + UpdateLongTermBackupResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", UpdateLongTermBackupResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateProtectedDatabaseResponse updateProtectedDatabase( UpdateProtectedDatabaseRequest request) { diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryPaginators.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryPaginators.java index 189897bf3a5..35885151aec 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryPaginators.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryPaginators.java @@ -41,6 +41,124 @@ public DatabaseRecoveryPaginators(DatabaseRecovery client) { this.client = client; } + /** + * Creates a new iterable which will iterate over the responses received from the + * listLongTermBackups 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 listLongTermBackupsResponseIterator( + final ListLongTermBackupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListLongTermBackupsRequest.Builder, + ListLongTermBackupsRequest, + ListLongTermBackupsResponse>( + new java.util.function.Supplier() { + @Override + public ListLongTermBackupsRequest.Builder get() { + return ListLongTermBackupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListLongTermBackupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLongTermBackupsRequest.Builder>, + ListLongTermBackupsRequest>() { + @Override + public ListLongTermBackupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLongTermBackupsRequest.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< + ListLongTermBackupsRequest, ListLongTermBackupsResponse>() { + @Override + public ListLongTermBackupsResponse apply(ListLongTermBackupsRequest request) { + return client.listLongTermBackups(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.recovery.model.LongTermBackupSummary} objects contained in responses from the + * listLongTermBackups 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.recovery.model.LongTermBackupSummary} objects contained in responses + * received from the service. + */ + public Iterable + listLongTermBackupsRecordIterator(final ListLongTermBackupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListLongTermBackupsRequest.Builder, + ListLongTermBackupsRequest, + ListLongTermBackupsResponse, + com.oracle.bmc.recovery.model.LongTermBackupSummary>( + new java.util.function.Supplier() { + @Override + public ListLongTermBackupsRequest.Builder get() { + return ListLongTermBackupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListLongTermBackupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLongTermBackupsRequest.Builder>, + ListLongTermBackupsRequest>() { + @Override + public ListLongTermBackupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLongTermBackupsRequest.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< + ListLongTermBackupsRequest, ListLongTermBackupsResponse>() { + @Override + public ListLongTermBackupsResponse apply(ListLongTermBackupsRequest request) { + return client.listLongTermBackups(request); + } + }, + new java.util.function.Function< + ListLongTermBackupsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListLongTermBackupsResponse response) { + return response.getLongTermBackupCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listProtectedDatabases operation. This iterable will fetch more data from the server as diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryWaiters.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryWaiters.java index 1061a5532c8..2102cbd8dfa 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryWaiters.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryWaiters.java @@ -25,6 +25,113 @@ public DatabaseRecoveryWaiters( this.client = client; } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forLongTermBackup( + GetLongTermBackupRequest request, + com.oracle.bmc.recovery.model.LongTermBackup.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 forLongTermBackup( + 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 + forLongTermBackup( + GetLongTermBackupRequest request, + com.oracle.bmc.recovery.model.LongTermBackup.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 forLongTermBackup( + 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 + forLongTermBackup( + GetLongTermBackupRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.recovery.model.LongTermBackup.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 forLongTermBackup( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for LongTermBackup. + private com.oracle.bmc.waiter.Waiter + forLongTermBackup( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetLongTermBackupRequest request, + final com.oracle.bmc.recovery.model.LongTermBackup.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< + GetLongTermBackupRequest, GetLongTermBackupResponse>() { + @Override + public GetLongTermBackupResponse apply( + GetLongTermBackupRequest request) { + return client.getLongTermBackup(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetLongTermBackupResponse response) { + return targetStatesSet.contains( + response.getLongTermBackup().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.recovery.model.LongTermBackup.LifecycleState + .Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/BackupCloudLocation.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/BackupCloudLocation.java new file mode 100644 index 00000000000..e0854f08dc1 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/BackupCloudLocation.java @@ -0,0 +1,58 @@ +/** + * 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.recovery.model; + +/** + * Indicates the cloud service environment where the protected database is provisioned. For example, + * Oracle Cloud or Microsoft Azure. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public enum BackupCloudLocation implements com.oracle.bmc.http.internal.BmcEnum { + Azure("AZURE"), + Oci("OCI"), + Gcp("GCP"), + Aws("AWS"), + + /** + * 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(BackupCloudLocation.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BackupCloudLocation v : BackupCloudLocation.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BackupCloudLocation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BackupCloudLocation create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BackupCloudLocation', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateLongTermBackupDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateLongTermBackupDetails.java new file mode 100644 index 00000000000..71244e0b858 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateLongTermBackupDetails.java @@ -0,0 +1,462 @@ +/** + * 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.recovery.model; + +/** + * Describes the parameters required to create an on demand long term backup.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateLongTermBackupDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateLongTermBackupDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "protectedDatabaseId", + "retentionScn", + "retentionPointInTime", + "retentionPeriod", + "freeformTags", + "definedTags" + }) + public CreateLongTermBackupDetails( + String displayName, + String protectedDatabaseId, + Integer retentionScn, + java.util.Date retentionPointInTime, + java.util.List retentionPeriod, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.protectedDatabaseId = protectedDatabaseId; + this.retentionScn = retentionScn; + this.retentionPointInTime = retentionPointInTime; + this.retentionPeriod = retentionPeriod; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user provided name for the long term backup. The 'displayName' does not have to be + * unique, and it can be modified. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user provided name for the long term backup. The 'displayName' does not have to be + * unique, and it can be modified. Avoid entering confidential information. + * + * @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 protected database for which you want to create the long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private String protectedDatabaseId; + + /** + * The OCID of the protected database for which you want to create the long-term backup. + * + * @param protectedDatabaseId the value to set + * @return this builder + */ + public Builder protectedDatabaseId(String protectedDatabaseId) { + this.protectedDatabaseId = protectedDatabaseId; + this.__explicitlySet__.add("protectedDatabaseId"); + return this; + } + /** + * The desired target point (SCN) at which you want to create the long-term backup of the + * database.For example, specify the value as 1000 if you want to create the long-term + * backup until SCN 1000. If you want to specify the target point as a time expression + * instead of the SCN value, then use the longTermRetentionPointInTime parameter. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private Integer retentionScn; + + /** + * The desired target point (SCN) at which you want to create the long-term backup of the + * database.For example, specify the value as 1000 if you want to create the long-term + * backup until SCN 1000. If you want to specify the target point as a time expression + * instead of the SCN value, then use the longTermRetentionPointInTime parameter. + * + * @param retentionScn the value to set + * @return this builder + */ + public Builder retentionScn(Integer retentionScn) { + this.retentionScn = retentionScn; + this.__explicitlySet__.add("retentionScn"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the desired target point in time in + * the database at which you want to create the long-term backup. For example, if you want + * the long-term backup to include all the changes until May 22 at 9:10 PM, then specify the + * value as, '2020-05-22T21:10:00.000Z'. If you want to specify the target point as an SCN + * value instead of the target time, then use the databaseSCN parameter. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the desired target point in time in + * the database at which you want to create the long-term backup. For example, if you want + * the long-term backup to include all the changes until May 22 at 9:10 PM, then specify the + * value as, '2020-05-22T21:10:00.000Z'. If you want to specify the target point as an SCN + * value instead of the target time, then use the databaseSCN parameter. + * + * @param retentionPointInTime the value to set + * @return this builder + */ + public Builder retentionPointInTime(java.util.Date retentionPointInTime) { + this.retentionPointInTime = retentionPointInTime; + this.__explicitlySet__.add("retentionPointInTime"); + return this; + } + /** + * The maximum period to retain the long-term backup. Specify the retention period type and + * the duration for the long-term backup. If you have chosen the retention period type as + * 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the + * retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 + * years. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private java.util.List retentionPeriod; + + /** + * The maximum period to retain the long-term backup. Specify the retention period type and + * the duration for the long-term backup. If you have chosen the retention period type as + * 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the + * retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 + * years. + * + * @param retentionPeriod the value to set + * @return this builder + */ + public Builder retentionPeriod(java.util.List retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see + * [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see + * [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @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 CreateLongTermBackupDetails build() { + CreateLongTermBackupDetails model = + new CreateLongTermBackupDetails( + this.displayName, + this.protectedDatabaseId, + this.retentionScn, + this.retentionPointInTime, + this.retentionPeriod, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateLongTermBackupDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("protectedDatabaseId")) { + this.protectedDatabaseId(model.getProtectedDatabaseId()); + } + if (model.wasPropertyExplicitlySet("retentionScn")) { + this.retentionScn(model.getRetentionScn()); + } + if (model.wasPropertyExplicitlySet("retentionPointInTime")) { + this.retentionPointInTime(model.getRetentionPointInTime()); + } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + 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 provided name for the long term backup. The 'displayName' does not have to be unique, + * and it can be modified. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user provided name for the long term backup. The 'displayName' does not have to be unique, + * and it can be modified. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the protected database for which you want to create the long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private final String protectedDatabaseId; + + /** + * The OCID of the protected database for which you want to create the long-term backup. + * + * @return the value + */ + public String getProtectedDatabaseId() { + return protectedDatabaseId; + } + + /** + * The desired target point (SCN) at which you want to create the long-term backup of the + * database.For example, specify the value as 1000 if you want to create the long-term backup + * until SCN 1000. If you want to specify the target point as a time expression instead of the + * SCN value, then use the longTermRetentionPointInTime parameter. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private final Integer retentionScn; + + /** + * The desired target point (SCN) at which you want to create the long-term backup of the + * database.For example, specify the value as 1000 if you want to create the long-term backup + * until SCN 1000. If you want to specify the target point as a time expression instead of the + * SCN value, then use the longTermRetentionPointInTime parameter. + * + * @return the value + */ + public Integer getRetentionScn() { + return retentionScn; + } + + /** + * An RFC3339 formatted datetime string that indicates the desired target point in time in the + * database at which you want to create the long-term backup. For example, if you want the + * long-term backup to include all the changes until May 22 at 9:10 PM, then specify the value + * as, '2020-05-22T21:10:00.000Z'. If you want to specify the target point as an SCN value + * instead of the target time, then use the databaseSCN parameter. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private final java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the desired target point in time in the + * database at which you want to create the long-term backup. For example, if you want the + * long-term backup to include all the changes until May 22 at 9:10 PM, then specify the value + * as, '2020-05-22T21:10:00.000Z'. If you want to specify the target point as an SCN value + * instead of the target time, then use the databaseSCN parameter. + * + * @return the value + */ + public java.util.Date getRetentionPointInTime() { + return retentionPointInTime; + } + + /** + * The maximum period to retain the long-term backup. Specify the retention period type and the + * duration for the long-term backup. If you have chosen the retention period type as 'DAYS', + * then specify a duration ranging from 90 days to 3650 days. If you have chosen the retention + * period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final java.util.List retentionPeriod; + + /** + * The maximum period to retain the long-term backup. Specify the retention period type and the + * duration for the long-term backup. If you have chosen the retention period type as 'DAYS', + * then specify a duration ranging from 90 days to 3650 days. If you have chosen the retention + * period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. + * + * @return the value + */ + public java.util.List getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @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("CreateLongTermBackupDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(", retentionScn=").append(String.valueOf(this.retentionScn)); + sb.append(", retentionPointInTime=").append(String.valueOf(this.retentionPointInTime)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + 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 CreateLongTermBackupDetails)) { + return false; + } + + CreateLongTermBackupDetails other = (CreateLongTermBackupDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals(this.retentionScn, other.retentionScn) + && java.util.Objects.equals(this.retentionPointInTime, other.retentionPointInTime) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && 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.protectedDatabaseId == null + ? 43 + : this.protectedDatabaseId.hashCode()); + result = (result * PRIME) + (this.retentionScn == null ? 43 : this.retentionScn.hashCode()); + result = + (result * PRIME) + + (this.retentionPointInTime == null + ? 43 + : this.retentionPointInTime.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.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-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateRecoveryServiceSubnetDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateRecoveryServiceSubnetDetails.java index d4ba00b1231..ffcf4e5bbf0 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateRecoveryServiceSubnetDetails.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateRecoveryServiceSubnetDetails.java @@ -28,6 +28,7 @@ public final class CreateRecoveryServiceSubnetDetails "subnetId", "subnets", "nsgIds", + "securityAttributes", "vcnId", "compartmentId", "freeformTags", @@ -38,6 +39,7 @@ public CreateRecoveryServiceSubnetDetails( String subnetId, java.util.List subnets, java.util.List nsgIds, + java.util.Map> securityAttributes, String vcnId, String compartmentId, java.util.Map freeformTags, @@ -47,6 +49,7 @@ public CreateRecoveryServiceSubnetDetails( this.subnetId = subnetId; this.subnets = subnets; this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; this.vcnId = vcnId; this.compartmentId = compartmentId; this.freeformTags = freeformTags; @@ -129,6 +132,34 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * The OCID of the virtual cloud network (VCN) that contains the recovery service subnet. * You can create a single recovery service subnet per VCN. @@ -217,6 +248,7 @@ public CreateRecoveryServiceSubnetDetails build() { this.subnetId, this.subnets, this.nsgIds, + this.securityAttributes, this.vcnId, this.compartmentId, this.freeformTags, @@ -241,6 +273,9 @@ public Builder copy(CreateRecoveryServiceSubnetDetails model) { if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("vcnId")) { this.vcnId(model.getVcnId()); } @@ -332,6 +367,29 @@ public java.util.List getNsgIds() { return nsgIds; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * The OCID of the virtual cloud network (VCN) that contains the recovery service subnet. You * can create a single recovery service subnet per VCN. @@ -417,6 +475,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", subnets=").append(String.valueOf(this.subnets)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -439,6 +498,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.subnets, other.subnets) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.vcnId, other.vcnId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -454,6 +514,11 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.subnets == null ? 43 : this.subnets.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackup.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackup.java new file mode 100644 index 00000000000..71612dabc0f --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackup.java @@ -0,0 +1,1157 @@ +/** + * 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.recovery.model; + +/** + * The details of a Long Term Backup.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = LongTermBackup.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LongTermBackup + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "protectedDatabaseId", + "retentionScn", + "retentionPointInTime", + "timeBackupInitiated", + "timeBackupCompleted", + "retentionPeriod", + "retentionUntilDateTime", + "databaseIdentifier", + "databaseSizeInGBs", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleSubstate", + "lifecycleDetails", + "rmanTag", + "freeformTags", + "definedTags", + "systemTags" + }) + public LongTermBackup( + String id, + String displayName, + String compartmentId, + String protectedDatabaseId, + Integer retentionScn, + java.util.Date retentionPointInTime, + java.util.Date timeBackupInitiated, + java.util.Date timeBackupCompleted, + java.util.List retentionPeriod, + java.util.Date retentionUntilDateTime, + String databaseIdentifier, + Integer databaseSizeInGBs, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + LifecycleSubstate lifecycleSubstate, + String lifecycleDetails, + String rmanTag, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.protectedDatabaseId = protectedDatabaseId; + this.retentionScn = retentionScn; + this.retentionPointInTime = retentionPointInTime; + this.timeBackupInitiated = timeBackupInitiated; + this.timeBackupCompleted = timeBackupCompleted; + this.retentionPeriod = retentionPeriod; + this.retentionUntilDateTime = retentionUntilDateTime; + this.databaseIdentifier = databaseIdentifier; + this.databaseSizeInGBs = databaseSizeInGBs; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleSubstate = lifecycleSubstate; + this.lifecycleDetails = lifecycleDetails; + this.rmanTag = rmanTag; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the long-term backup. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The user-provided name for the long-term backup. You can change the displayName. Avoid + * entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-provided name for the long-term backup. You can change the displayName. Avoid + * entering confidential information. + * + * @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 containing the long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment containing the long-term backup. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The OCID of the protected database associated with the long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private String protectedDatabaseId; + + /** + * The OCID of the protected database associated with the long-term backup. + * + * @param protectedDatabaseId the value to set + * @return this builder + */ + public Builder protectedDatabaseId(String protectedDatabaseId) { + this.protectedDatabaseId = protectedDatabaseId; + this.__explicitlySet__.add("protectedDatabaseId"); + return this; + } + /** + * The unique system change number (SCN) or the target point in the database until which the + * long-term backup is consistent. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private Integer retentionScn; + + /** + * The unique system change number (SCN) or the target point in the database until which the + * long-term backup is consistent. + * + * @param retentionScn the value to set + * @return this builder + */ + public Builder retentionScn(Integer retentionScn) { + this.retentionScn = retentionScn; + this.__explicitlySet__.add("retentionScn"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the target point in time until which + * the long-term backup is consistent. For example, '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the target point in time until which + * the long-term backup is consistent. For example, '2020-05-22T21:10:29.600Z'. + * + * @param retentionPointInTime the value to set + * @return this builder + */ + public Builder retentionPointInTime(java.util.Date retentionPointInTime) { + this.retentionPointInTime = retentionPointInTime; + this.__explicitlySet__.add("retentionPointInTime"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup + * was created. For example, '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupInitiated") + private java.util.Date timeBackupInitiated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup + * was created. For example, '2020-05-22T21:10:29.600Z'. + * + * @param timeBackupInitiated the value to set + * @return this builder + */ + public Builder timeBackupInitiated(java.util.Date timeBackupInitiated) { + this.timeBackupInitiated = timeBackupInitiated; + this.__explicitlySet__.add("timeBackupInitiated"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup + * completed. For example, '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupCompleted") + private java.util.Date timeBackupCompleted; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup + * completed. For example, '2020-05-22T21:10:29.600Z'. + * + * @param timeBackupCompleted the value to set + * @return this builder + */ + public Builder timeBackupCompleted(java.util.Date timeBackupCompleted) { + this.timeBackupCompleted = timeBackupCompleted; + this.__explicitlySet__.add("timeBackupCompleted"); + return this; + } + /** + * The maximum number of DAYS or YEARS to store the long-term backup. You can retain a + * long-term backup for a period ranging from 90-3650 days or 1-10 years. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private java.util.List retentionPeriod; + + /** + * The maximum number of DAYS or YEARS to store the long-term backup. You can retain a + * long-term backup for a period ranging from 90-3650 days or 1-10 years. + * + * @param retentionPeriod the value to set + * @return this builder + */ + public Builder retentionPeriod(java.util.List retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Indicates that Recovery Service must retain the backup for the specified long-term + * retention period. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionUntilDateTime") + private java.util.Date retentionUntilDateTime; + + /** + * Indicates that Recovery Service must retain the backup for the specified long-term + * retention period. + * + * @param retentionUntilDateTime the value to set + * @return this builder + */ + public Builder retentionUntilDateTime(java.util.Date retentionUntilDateTime) { + this.retentionUntilDateTime = retentionUntilDateTime; + this.__explicitlySet__.add("retentionUntilDateTime"); + return this; + } + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle + * Cloud. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseIdentifier") + private String databaseIdentifier; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle + * Cloud. + * + * @param databaseIdentifier the value to set + * @return this builder + */ + public Builder databaseIdentifier(String databaseIdentifier) { + this.databaseIdentifier = databaseIdentifier; + this.__explicitlySet__.add("databaseIdentifier"); + return this; + } + /** The size of the database, in gigabytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs") + private Integer databaseSizeInGBs; + + /** + * The size of the database, in gigabytes. + * + * @param databaseSizeInGBs the value to set + * @return this builder + */ + public Builder databaseSizeInGBs(Integer databaseSizeInGBs) { + this.databaseSizeInGBs = databaseSizeInGBs; + this.__explicitlySet__.add("databaseSizeInGBs"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup + * was created. For example: '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup + * was created. For example: '2020-05-22T21:10:29.600Z'. + * + * @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; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the long term backup + * was last updated. For example: '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long term backup + * was last updated. For example: '2020-05-22T21:10:29.600Z'. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The current state of the long term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the long term backup. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** More details on the state of the backup when it is in Creating lifecycleState. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private LifecycleSubstate lifecycleSubstate; + + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + * @param lifecycleSubstate the value to set + * @return this builder + */ + public Builder lifecycleSubstate(LifecycleSubstate lifecycleSubstate) { + this.lifecycleSubstate = lifecycleSubstate; + this.__explicitlySet__.add("lifecycleSubstate"); + return this; + } + /** + * A detailed message about the current lifecycle state of the long-term backup. For + * example, it can be used to provide actionable information for a resource in a Failed + * state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A detailed message about the current lifecycle state of the long-term backup. For + * example, it can be used to provide actionable information for a resource in a Failed + * state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** Recovery Manager (RMAN) assigned unique identifier for the long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("rmanTag") + private String rmanTag; + + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + * + * @param rmanTag the value to set + * @return this builder + */ + public Builder rmanTag(String rmanTag) { + this.rmanTag = rmanTag; + this.__explicitlySet__.add("rmanTag"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see + * [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see + * [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @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. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @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 LongTermBackup build() { + LongTermBackup model = + new LongTermBackup( + this.id, + this.displayName, + this.compartmentId, + this.protectedDatabaseId, + this.retentionScn, + this.retentionPointInTime, + this.timeBackupInitiated, + this.timeBackupCompleted, + this.retentionPeriod, + this.retentionUntilDateTime, + this.databaseIdentifier, + this.databaseSizeInGBs, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleSubstate, + this.lifecycleDetails, + this.rmanTag, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LongTermBackup 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("protectedDatabaseId")) { + this.protectedDatabaseId(model.getProtectedDatabaseId()); + } + if (model.wasPropertyExplicitlySet("retentionScn")) { + this.retentionScn(model.getRetentionScn()); + } + if (model.wasPropertyExplicitlySet("retentionPointInTime")) { + this.retentionPointInTime(model.getRetentionPointInTime()); + } + if (model.wasPropertyExplicitlySet("timeBackupInitiated")) { + this.timeBackupInitiated(model.getTimeBackupInitiated()); + } + if (model.wasPropertyExplicitlySet("timeBackupCompleted")) { + this.timeBackupCompleted(model.getTimeBackupCompleted()); + } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("retentionUntilDateTime")) { + this.retentionUntilDateTime(model.getRetentionUntilDateTime()); + } + if (model.wasPropertyExplicitlySet("databaseIdentifier")) { + this.databaseIdentifier(model.getDatabaseIdentifier()); + } + if (model.wasPropertyExplicitlySet("databaseSizeInGBs")) { + this.databaseSizeInGBs(model.getDatabaseSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleSubstate")) { + this.lifecycleSubstate(model.getLifecycleSubstate()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("rmanTag")) { + this.rmanTag(model.getRmanTag()); + } + 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 long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the long-term backup. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The user-provided name for the long-term backup. You can change the displayName. Avoid + * entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-provided name for the long-term backup. You can change the displayName. Avoid + * entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the compartment containing the long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment containing the long-term backup. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The OCID of the protected database associated with the long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private final String protectedDatabaseId; + + /** + * The OCID of the protected database associated with the long-term backup. + * + * @return the value + */ + public String getProtectedDatabaseId() { + return protectedDatabaseId; + } + + /** + * The unique system change number (SCN) or the target point in the database until which the + * long-term backup is consistent. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private final Integer retentionScn; + + /** + * The unique system change number (SCN) or the target point in the database until which the + * long-term backup is consistent. + * + * @return the value + */ + public Integer getRetentionScn() { + return retentionScn; + } + + /** + * An RFC3339 formatted datetime string that indicates the target point in time until which the + * long-term backup is consistent. For example, '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private final java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the target point in time until which the + * long-term backup is consistent. For example, '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getRetentionPointInTime() { + return retentionPointInTime; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was + * created. For example, '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupInitiated") + private final java.util.Date timeBackupInitiated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was + * created. For example, '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeBackupInitiated() { + return timeBackupInitiated; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup + * completed. For example, '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupCompleted") + private final java.util.Date timeBackupCompleted; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup + * completed. For example, '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeBackupCompleted() { + return timeBackupCompleted; + } + + /** + * The maximum number of DAYS or YEARS to store the long-term backup. You can retain a long-term + * backup for a period ranging from 90-3650 days or 1-10 years. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final java.util.List retentionPeriod; + + /** + * The maximum number of DAYS or YEARS to store the long-term backup. You can retain a long-term + * backup for a period ranging from 90-3650 days or 1-10 years. + * + * @return the value + */ + public java.util.List getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Indicates that Recovery Service must retain the backup for the specified long-term retention + * period. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionUntilDateTime") + private final java.util.Date retentionUntilDateTime; + + /** + * Indicates that Recovery Service must retain the backup for the specified long-term retention + * period. + * + * @return the value + */ + public java.util.Date getRetentionUntilDateTime() { + return retentionUntilDateTime; + } + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseIdentifier") + private final String databaseIdentifier; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * + * @return the value + */ + public String getDatabaseIdentifier() { + return databaseIdentifier; + } + + /** The size of the database, in gigabytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs") + private final Integer databaseSizeInGBs; + + /** + * The size of the database, in gigabytes. + * + * @return the value + */ + public Integer getDatabaseSizeInGBs() { + return databaseSizeInGBs; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was + * created. For example: '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was + * created. For example: '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the long term backup was + * last updated. For example: '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long term backup was + * last updated. For example: '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the long term backup. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The current state of the long term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the long term backup. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** More details on the state of the backup when it is in Creating lifecycleState. */ + public enum LifecycleSubstate implements com.oracle.bmc.http.internal.BmcEnum { + WaitingForBackupFromDb("WAITING_FOR_BACKUP_FROM_DB"), + ScheduledForArchival("SCHEDULED_FOR_ARCHIVAL"), + ArchivalInProgress("ARCHIVAL_IN_PROGRESS"), + + /** + * 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(LifecycleSubstate.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleSubstate v : LifecycleSubstate.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleSubstate(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleSubstate create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleSubstate', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** More details on the state of the backup when it is in Creating lifecycleState. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private final LifecycleSubstate lifecycleSubstate; + + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + * @return the value + */ + public LifecycleSubstate getLifecycleSubstate() { + return lifecycleSubstate; + } + + /** + * A detailed message about the current lifecycle state of the long-term backup. For example, it + * can be used to provide actionable information for a resource in a Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A detailed message about the current lifecycle state of the long-term backup. For example, it + * can be used to provide actionable information for a resource in a Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** Recovery Manager (RMAN) assigned unique identifier for the long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("rmanTag") + private final String rmanTag; + + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + * + * @return the value + */ + public String getRmanTag() { + return rmanTag; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @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("LongTermBackup("); + 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(", protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(", retentionScn=").append(String.valueOf(this.retentionScn)); + sb.append(", retentionPointInTime=").append(String.valueOf(this.retentionPointInTime)); + sb.append(", timeBackupInitiated=").append(String.valueOf(this.timeBackupInitiated)); + sb.append(", timeBackupCompleted=").append(String.valueOf(this.timeBackupCompleted)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", retentionUntilDateTime=").append(String.valueOf(this.retentionUntilDateTime)); + sb.append(", databaseIdentifier=").append(String.valueOf(this.databaseIdentifier)); + sb.append(", databaseSizeInGBs=").append(String.valueOf(this.databaseSizeInGBs)); + 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(", lifecycleSubstate=").append(String.valueOf(this.lifecycleSubstate)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", rmanTag=").append(String.valueOf(this.rmanTag)); + 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 LongTermBackup)) { + return false; + } + + LongTermBackup other = (LongTermBackup) 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.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals(this.retentionScn, other.retentionScn) + && java.util.Objects.equals(this.retentionPointInTime, other.retentionPointInTime) + && java.util.Objects.equals(this.timeBackupInitiated, other.timeBackupInitiated) + && java.util.Objects.equals(this.timeBackupCompleted, other.timeBackupCompleted) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.retentionUntilDateTime, other.retentionUntilDateTime) + && java.util.Objects.equals(this.databaseIdentifier, other.databaseIdentifier) + && java.util.Objects.equals(this.databaseSizeInGBs, other.databaseSizeInGBs) + && 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.lifecycleSubstate, other.lifecycleSubstate) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.rmanTag, other.rmanTag) + && 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.protectedDatabaseId == null + ? 43 + : this.protectedDatabaseId.hashCode()); + result = (result * PRIME) + (this.retentionScn == null ? 43 : this.retentionScn.hashCode()); + result = + (result * PRIME) + + (this.retentionPointInTime == null + ? 43 + : this.retentionPointInTime.hashCode()); + result = + (result * PRIME) + + (this.timeBackupInitiated == null + ? 43 + : this.timeBackupInitiated.hashCode()); + result = + (result * PRIME) + + (this.timeBackupCompleted == null + ? 43 + : this.timeBackupCompleted.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.retentionUntilDateTime == null + ? 43 + : this.retentionUntilDateTime.hashCode()); + result = + (result * PRIME) + + (this.databaseIdentifier == null + ? 43 + : this.databaseIdentifier.hashCode()); + result = + (result * PRIME) + + (this.databaseSizeInGBs == null ? 43 : this.databaseSizeInGBs.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleSubstate == null ? 43 : this.lifecycleSubstate.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.rmanTag == null ? 43 : this.rmanTag.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-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupCollection.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupCollection.java new file mode 100644 index 00000000000..41e2d4296e8 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupCollection.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.recovery.model; + +/** + * Results of a long term backup search. Contains both long term backup Summary items and other + * information, such as metadata.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LongTermBackupCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LongTermBackupCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public LongTermBackupCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of LongTermBackups. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of LongTermBackups. + * + * @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 LongTermBackupCollection build() { + LongTermBackupCollection model = new LongTermBackupCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LongTermBackupCollection 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 LongTermBackups. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of LongTermBackups. + * + * @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("LongTermBackupCollection("); + 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 LongTermBackupCollection)) { + return false; + } + + LongTermBackupCollection other = (LongTermBackupCollection) 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-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupSummary.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupSummary.java new file mode 100644 index 00000000000..17ce5203cba --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupSummary.java @@ -0,0 +1,1048 @@ +/** + * 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.recovery.model; + +/** + * Generate an on-demand backup and retain it long-term as per the LTR backup retention period + * specified.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LongTermBackupSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LongTermBackupSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "protectedDatabaseId", + "retentionScn", + "retentionPointInTime", + "timeBackupInitiated", + "timeBackupCompleted", + "retentionPeriod", + "retentionUntilDateTime", + "databaseIdentifier", + "databaseSizeInGBs", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleSubstate", + "lifecycleDetails", + "rmanTag", + "freeformTags", + "definedTags", + "systemTags" + }) + public LongTermBackupSummary( + String id, + String displayName, + String compartmentId, + String protectedDatabaseId, + Integer retentionScn, + java.util.Date retentionPointInTime, + java.util.Date timeBackupInitiated, + java.util.Date timeBackupCompleted, + java.util.List retentionPeriod, + java.util.Date retentionUntilDateTime, + String databaseIdentifier, + Integer databaseSizeInGBs, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LongTermBackup.LifecycleState lifecycleState, + LongTermBackup.LifecycleSubstate lifecycleSubstate, + String lifecycleDetails, + String rmanTag, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.protectedDatabaseId = protectedDatabaseId; + this.retentionScn = retentionScn; + this.retentionPointInTime = retentionPointInTime; + this.timeBackupInitiated = timeBackupInitiated; + this.timeBackupCompleted = timeBackupCompleted; + this.retentionPeriod = retentionPeriod; + this.retentionUntilDateTime = retentionUntilDateTime; + this.databaseIdentifier = databaseIdentifier; + this.databaseSizeInGBs = databaseSizeInGBs; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleSubstate = lifecycleSubstate; + this.lifecycleDetails = lifecycleDetails; + this.rmanTag = rmanTag; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The Long Term Backup OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The Long Term Backup OCID. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The long term backup name. You can change the displayName. Avoid entering confidential + * information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The long term backup name. You can change the displayName. Avoid entering confidential + * information. + * + * @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 long term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the long term backup. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** The protected database ocid. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private String protectedDatabaseId; + + /** + * The protected database ocid. + * + * @param protectedDatabaseId the value to set + * @return this builder + */ + public Builder protectedDatabaseId(String protectedDatabaseId) { + this.protectedDatabaseId = protectedDatabaseId; + this.__explicitlySet__.add("protectedDatabaseId"); + return this; + } + /** System Change Number (SCN) to which backup is consistent. */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private Integer retentionScn; + + /** + * System Change Number (SCN) to which backup is consistent. + * + * @param retentionScn the value to set + * @return this builder + */ + public Builder retentionScn(Integer retentionScn) { + this.retentionScn = retentionScn; + this.__explicitlySet__.add("retentionScn"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time for a long term backup to be + * initiated. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the time for a long term backup to be + * initiated. + * + * @param retentionPointInTime the value to set + * @return this builder + */ + public Builder retentionPointInTime(java.util.Date retentionPointInTime) { + this.retentionPointInTime = retentionPointInTime; + this.__explicitlySet__.add("retentionPointInTime"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually + * taken. For example '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupInitiated") + private java.util.Date timeBackupInitiated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually + * taken. For example '2020-05-22T21:10:29.600Z' + * + * @param timeBackupInitiated the value to set + * @return this builder + */ + public Builder timeBackupInitiated(java.util.Date timeBackupInitiated) { + this.timeBackupInitiated = timeBackupInitiated; + this.__explicitlySet__.add("timeBackupInitiated"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually + * completed. For example '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupCompleted") + private java.util.Date timeBackupCompleted; + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually + * completed. For example '2020-05-22T21:10:29.600Z' + * + * @param timeBackupCompleted the value to set + * @return this builder + */ + public Builder timeBackupCompleted(java.util.Date timeBackupCompleted) { + this.timeBackupCompleted = timeBackupCompleted; + this.__explicitlySet__.add("timeBackupCompleted"); + return this; + } + /** Retain the long-term backup as per the backup retention period specified */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private java.util.List retentionPeriod; + + /** + * Retain the long-term backup as per the backup retention period specified + * + * @param retentionPeriod the value to set + * @return this builder + */ + public Builder retentionPeriod(java.util.List retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time after which the long term + * backup will be deleted. For example '2020-05-22T21:10:29.600Z'. This timestamp has to be + * 95 days-10 years from the current timestamp + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionUntilDateTime") + private java.util.Date retentionUntilDateTime; + + /** + * An RFC3339 formatted datetime string that indicates the time after which the long term + * backup will be deleted. For example '2020-05-22T21:10:29.600Z'. This timestamp has to be + * 95 days-10 years from the current timestamp + * + * @param retentionUntilDateTime the value to set + * @return this builder + */ + public Builder retentionUntilDateTime(java.util.Date retentionUntilDateTime) { + this.retentionUntilDateTime = retentionUntilDateTime; + this.__explicitlySet__.add("retentionUntilDateTime"); + return this; + } + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle + * Cloud. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseIdentifier") + private String databaseIdentifier; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle + * Cloud. + * + * @param databaseIdentifier the value to set + * @return this builder + */ + public Builder databaseIdentifier(String databaseIdentifier) { + this.databaseIdentifier = databaseIdentifier; + this.__explicitlySet__.add("databaseIdentifier"); + return this; + } + /** Database size */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs") + private Integer databaseSizeInGBs; + + /** + * Database size + * + * @param databaseSizeInGBs the value to set + * @return this builder + */ + public Builder databaseSizeInGBs(Integer databaseSizeInGBs) { + this.databaseSizeInGBs = databaseSizeInGBs; + this.__explicitlySet__.add("databaseSizeInGBs"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the created time for the long term + * backup. For example: '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * An RFC3339 formatted datetime string that indicates the created time for the long term + * backup. For example: '2020-05-22T21:10:29.600Z'. + * + * @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; + } + /** + * An RFC3339 formatted datetime string that indicates the updated time for the long term + * backup. For example: '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * An RFC3339 formatted datetime string that indicates the updated time for the long term + * backup. For example: '2020-05-22T21:10:29.600Z'. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** The current state of the long term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LongTermBackup.LifecycleState lifecycleState; + + /** + * The current state of the long term backup. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LongTermBackup.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** More details on the state of the backup when it is in Creating lifecycleState. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private LongTermBackup.LifecycleSubstate lifecycleSubstate; + + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + * @param lifecycleSubstate the value to set + * @return this builder + */ + public Builder lifecycleSubstate(LongTermBackup.LifecycleSubstate lifecycleSubstate) { + this.lifecycleSubstate = lifecycleSubstate; + this.__explicitlySet__.add("lifecycleSubstate"); + return this; + } + /** + * Detailed description about the current lifecycle state of the long term backup. For + * example, it can be used to provide actionable information for a resource in a Failed + * state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Detailed description about the current lifecycle state of the long term backup. For + * example, it can be used to provide actionable information for a resource in a Failed + * state. + * + * @param lifecycleDetails the value to set + * @return this builder + */ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** Recovery Manager (RMAN) assigned unique identifier for the long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("rmanTag") + private String rmanTag; + + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + * + * @param rmanTag the value to set + * @return this builder + */ + public Builder rmanTag(String rmanTag) { + this.rmanTag = rmanTag; + this.__explicitlySet__.add("rmanTag"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see + * [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see + * [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @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. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @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 LongTermBackupSummary build() { + LongTermBackupSummary model = + new LongTermBackupSummary( + this.id, + this.displayName, + this.compartmentId, + this.protectedDatabaseId, + this.retentionScn, + this.retentionPointInTime, + this.timeBackupInitiated, + this.timeBackupCompleted, + this.retentionPeriod, + this.retentionUntilDateTime, + this.databaseIdentifier, + this.databaseSizeInGBs, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleSubstate, + this.lifecycleDetails, + this.rmanTag, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LongTermBackupSummary 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("protectedDatabaseId")) { + this.protectedDatabaseId(model.getProtectedDatabaseId()); + } + if (model.wasPropertyExplicitlySet("retentionScn")) { + this.retentionScn(model.getRetentionScn()); + } + if (model.wasPropertyExplicitlySet("retentionPointInTime")) { + this.retentionPointInTime(model.getRetentionPointInTime()); + } + if (model.wasPropertyExplicitlySet("timeBackupInitiated")) { + this.timeBackupInitiated(model.getTimeBackupInitiated()); + } + if (model.wasPropertyExplicitlySet("timeBackupCompleted")) { + this.timeBackupCompleted(model.getTimeBackupCompleted()); + } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("retentionUntilDateTime")) { + this.retentionUntilDateTime(model.getRetentionUntilDateTime()); + } + if (model.wasPropertyExplicitlySet("databaseIdentifier")) { + this.databaseIdentifier(model.getDatabaseIdentifier()); + } + if (model.wasPropertyExplicitlySet("databaseSizeInGBs")) { + this.databaseSizeInGBs(model.getDatabaseSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleSubstate")) { + this.lifecycleSubstate(model.getLifecycleSubstate()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("rmanTag")) { + this.rmanTag(model.getRmanTag()); + } + 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 Long Term Backup OCID. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The Long Term Backup OCID. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The long term backup name. You can change the displayName. Avoid entering confidential + * information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The long term backup name. You can change the displayName. Avoid entering confidential + * information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the compartment that contains the long term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the long term backup. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The protected database ocid. */ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private final String protectedDatabaseId; + + /** + * The protected database ocid. + * + * @return the value + */ + public String getProtectedDatabaseId() { + return protectedDatabaseId; + } + + /** System Change Number (SCN) to which backup is consistent. */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private final Integer retentionScn; + + /** + * System Change Number (SCN) to which backup is consistent. + * + * @return the value + */ + public Integer getRetentionScn() { + return retentionScn; + } + + /** + * An RFC3339 formatted datetime string that indicates the time for a long term backup to be + * initiated. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private final java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the time for a long term backup to be + * initiated. + * + * @return the value + */ + public java.util.Date getRetentionPointInTime() { + return retentionPointInTime; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually + * taken. For example '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupInitiated") + private final java.util.Date timeBackupInitiated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually + * taken. For example '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeBackupInitiated() { + return timeBackupInitiated; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually + * completed. For example '2020-05-22T21:10:29.600Z' + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupCompleted") + private final java.util.Date timeBackupCompleted; + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually + * completed. For example '2020-05-22T21:10:29.600Z' + * + * @return the value + */ + public java.util.Date getTimeBackupCompleted() { + return timeBackupCompleted; + } + + /** Retain the long-term backup as per the backup retention period specified */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final java.util.List retentionPeriod; + + /** + * Retain the long-term backup as per the backup retention period specified + * + * @return the value + */ + public java.util.List getRetentionPeriod() { + return retentionPeriod; + } + + /** + * An RFC3339 formatted datetime string that indicates the time after which the long term backup + * will be deleted. For example '2020-05-22T21:10:29.600Z'. This timestamp has to be 95 days-10 + * years from the current timestamp + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionUntilDateTime") + private final java.util.Date retentionUntilDateTime; + + /** + * An RFC3339 formatted datetime string that indicates the time after which the long term backup + * will be deleted. For example '2020-05-22T21:10:29.600Z'. This timestamp has to be 95 days-10 + * years from the current timestamp + * + * @return the value + */ + public java.util.Date getRetentionUntilDateTime() { + return retentionUntilDateTime; + } + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseIdentifier") + private final String databaseIdentifier; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * + * @return the value + */ + public String getDatabaseIdentifier() { + return databaseIdentifier; + } + + /** Database size */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs") + private final Integer databaseSizeInGBs; + + /** + * Database size + * + * @return the value + */ + public Integer getDatabaseSizeInGBs() { + return databaseSizeInGBs; + } + + /** + * An RFC3339 formatted datetime string that indicates the created time for the long term + * backup. For example: '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * An RFC3339 formatted datetime string that indicates the created time for the long term + * backup. For example: '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * An RFC3339 formatted datetime string that indicates the updated time for the long term + * backup. For example: '2020-05-22T21:10:29.600Z'. + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * An RFC3339 formatted datetime string that indicates the updated time for the long term + * backup. For example: '2020-05-22T21:10:29.600Z'. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the long term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LongTermBackup.LifecycleState lifecycleState; + + /** + * The current state of the long term backup. + * + * @return the value + */ + public LongTermBackup.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** More details on the state of the backup when it is in Creating lifecycleState. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private final LongTermBackup.LifecycleSubstate lifecycleSubstate; + + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + * @return the value + */ + public LongTermBackup.LifecycleSubstate getLifecycleSubstate() { + return lifecycleSubstate; + } + + /** + * Detailed description about the current lifecycle state of the long term backup. For example, + * it can be used to provide actionable information for a resource in a Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Detailed description about the current lifecycle state of the long term backup. For example, + * it can be used to provide actionable information for a resource in a Failed state. + * + * @return the value + */ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** Recovery Manager (RMAN) assigned unique identifier for the long-term backup. */ + @com.fasterxml.jackson.annotation.JsonProperty("rmanTag") + private final String rmanTag; + + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + * + * @return the value + */ + public String getRmanTag() { + return rmanTag; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @return the value + */ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @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("LongTermBackupSummary("); + 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(", protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(", retentionScn=").append(String.valueOf(this.retentionScn)); + sb.append(", retentionPointInTime=").append(String.valueOf(this.retentionPointInTime)); + sb.append(", timeBackupInitiated=").append(String.valueOf(this.timeBackupInitiated)); + sb.append(", timeBackupCompleted=").append(String.valueOf(this.timeBackupCompleted)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", retentionUntilDateTime=").append(String.valueOf(this.retentionUntilDateTime)); + sb.append(", databaseIdentifier=").append(String.valueOf(this.databaseIdentifier)); + sb.append(", databaseSizeInGBs=").append(String.valueOf(this.databaseSizeInGBs)); + 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(", lifecycleSubstate=").append(String.valueOf(this.lifecycleSubstate)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", rmanTag=").append(String.valueOf(this.rmanTag)); + 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 LongTermBackupSummary)) { + return false; + } + + LongTermBackupSummary other = (LongTermBackupSummary) 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.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals(this.retentionScn, other.retentionScn) + && java.util.Objects.equals(this.retentionPointInTime, other.retentionPointInTime) + && java.util.Objects.equals(this.timeBackupInitiated, other.timeBackupInitiated) + && java.util.Objects.equals(this.timeBackupCompleted, other.timeBackupCompleted) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.retentionUntilDateTime, other.retentionUntilDateTime) + && java.util.Objects.equals(this.databaseIdentifier, other.databaseIdentifier) + && java.util.Objects.equals(this.databaseSizeInGBs, other.databaseSizeInGBs) + && 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.lifecycleSubstate, other.lifecycleSubstate) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.rmanTag, other.rmanTag) + && 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.protectedDatabaseId == null + ? 43 + : this.protectedDatabaseId.hashCode()); + result = (result * PRIME) + (this.retentionScn == null ? 43 : this.retentionScn.hashCode()); + result = + (result * PRIME) + + (this.retentionPointInTime == null + ? 43 + : this.retentionPointInTime.hashCode()); + result = + (result * PRIME) + + (this.timeBackupInitiated == null + ? 43 + : this.timeBackupInitiated.hashCode()); + result = + (result * PRIME) + + (this.timeBackupCompleted == null + ? 43 + : this.timeBackupCompleted.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.retentionUntilDateTime == null + ? 43 + : this.retentionUntilDateTime.hashCode()); + result = + (result * PRIME) + + (this.databaseIdentifier == null + ? 43 + : this.databaseIdentifier.hashCode()); + result = + (result * PRIME) + + (this.databaseSizeInGBs == null ? 43 : this.databaseSizeInGBs.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleSubstate == null ? 43 : this.lifecycleSubstate.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.rmanTag == null ? 43 : this.rmanTag.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-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationType.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationType.java index 65b4b079b86..902d5b7134a 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationType.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationType.java @@ -19,6 +19,10 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { UpdateRecoveryServiceSubnet("UPDATE_RECOVERY_SERVICE_SUBNET"), DeleteRecoveryServiceSubnet("DELETE_RECOVERY_SERVICE_SUBNET"), MoveRecoveryServiceSubnet("MOVE_RECOVERY_SERVICE_SUBNET"), + CreateLongTermBackup("CREATE_LONG_TERM_BACKUP"), + DeleteLongTermBackup("DELETE_LONG_TERM_BACKUP"), + UpdateLongTermBackup("UPDATE_LONG_TERM_BACKUP"), + CancelLongTermBackup("CANCEL_LONG_TERM_BACKUP"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java index f6e87ad8b54..bfff2b202b1 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java @@ -49,6 +49,7 @@ public final class ProtectedDatabase "lifecycleDetails", "healthDetails", "metrics", + "backupCloudLocation", "subscriptionId", "freeformTags", "definedTags", @@ -77,6 +78,7 @@ public ProtectedDatabase( String lifecycleDetails, String healthDetails, Metrics metrics, + BackupCloudLocation backupCloudLocation, String subscriptionId, java.util.Map freeformTags, java.util.Map> definedTags, @@ -104,6 +106,7 @@ public ProtectedDatabase( this.lifecycleDetails = lifecycleDetails; this.healthDetails = healthDetails; this.metrics = metrics; + this.backupCloudLocation = backupCloudLocation; this.subscriptionId = subscriptionId; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -541,6 +544,25 @@ public Builder metrics(Metrics metrics) { this.__explicitlySet__.add("metrics"); return this; } + /** + * Indicates the cloud service environment where the protected database is provisioned. For + * example, Oracle Cloud or Microsoft Azure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupCloudLocation") + private BackupCloudLocation backupCloudLocation; + + /** + * Indicates the cloud service environment where the protected database is provisioned. For + * example, Oracle Cloud or Microsoft Azure. + * + * @param backupCloudLocation the value to set + * @return this builder + */ + public Builder backupCloudLocation(BackupCloudLocation backupCloudLocation) { + this.backupCloudLocation = backupCloudLocation; + this.__explicitlySet__.add("backupCloudLocation"); + return this; + } /** The OCID of the cloud service subscription to which the protected database is linked. */ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") private String subscriptionId; @@ -649,6 +671,7 @@ public ProtectedDatabase build() { this.lifecycleDetails, this.healthDetails, this.metrics, + this.backupCloudLocation, this.subscriptionId, this.freeformTags, this.definedTags, @@ -727,6 +750,9 @@ public Builder copy(ProtectedDatabase model) { if (model.wasPropertyExplicitlySet("metrics")) { this.metrics(model.getMetrics()); } + if (model.wasPropertyExplicitlySet("backupCloudLocation")) { + this.backupCloudLocation(model.getBackupCloudLocation()); + } if (model.wasPropertyExplicitlySet("subscriptionId")) { this.subscriptionId(model.getSubscriptionId()); } @@ -1130,6 +1156,23 @@ public Metrics getMetrics() { return metrics; } + /** + * Indicates the cloud service environment where the protected database is provisioned. For + * example, Oracle Cloud or Microsoft Azure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupCloudLocation") + private final BackupCloudLocation backupCloudLocation; + + /** + * Indicates the cloud service environment where the protected database is provisioned. For + * example, Oracle Cloud or Microsoft Azure. + * + * @return the value + */ + public BackupCloudLocation getBackupCloudLocation() { + return backupCloudLocation; + } + /** The OCID of the cloud service subscription to which the protected database is linked. */ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") private final String subscriptionId; @@ -1235,6 +1278,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", healthDetails=").append(String.valueOf(this.healthDetails)); sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(", backupCloudLocation=").append(String.valueOf(this.backupCloudLocation)); sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -1276,6 +1320,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.healthDetails, other.healthDetails) && java.util.Objects.equals(this.metrics, other.metrics) + && java.util.Objects.equals(this.backupCloudLocation, other.backupCloudLocation) && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -1339,6 +1384,11 @@ public int hashCode() { (result * PRIME) + (this.healthDetails == null ? 43 : this.healthDetails.hashCode()); result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = + (result * PRIME) + + (this.backupCloudLocation == null + ? 43 + : this.backupCloudLocation.hashCode()); result = (result * PRIME) + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java index 8fa4b82fb8c..cb668fadb26 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java @@ -53,6 +53,7 @@ public final class ProtectedDatabaseSummary "healthDetails", "isReadOnlyResource", "metrics", + "backupCloudLocation", "subscriptionId", "freeformTags", "definedTags", @@ -77,6 +78,7 @@ public ProtectedDatabaseSummary( String healthDetails, Boolean isReadOnlyResource, MetricsSummary metrics, + BackupCloudLocation backupCloudLocation, String subscriptionId, java.util.Map freeformTags, java.util.Map> definedTags, @@ -100,6 +102,7 @@ public ProtectedDatabaseSummary( this.healthDetails = healthDetails; this.isReadOnlyResource = isReadOnlyResource; this.metrics = metrics; + this.backupCloudLocation = backupCloudLocation; this.subscriptionId = subscriptionId; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -431,6 +434,25 @@ public Builder metrics(MetricsSummary metrics) { this.__explicitlySet__.add("metrics"); return this; } + /** + * Indicates the cloud service environment where the protected database is provisioned. For + * example, Oracle Cloud or Microsoft Azure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupCloudLocation") + private BackupCloudLocation backupCloudLocation; + + /** + * Indicates the cloud service environment where the protected database is provisioned. For + * example, Oracle Cloud or Microsoft Azure. + * + * @param backupCloudLocation the value to set + * @return this builder + */ + public Builder backupCloudLocation(BackupCloudLocation backupCloudLocation) { + this.backupCloudLocation = backupCloudLocation; + this.__explicitlySet__.add("backupCloudLocation"); + return this; + } /** The OCID of the cloud service subscription to which the protected database is linked. */ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") private String subscriptionId; @@ -535,6 +557,7 @@ public ProtectedDatabaseSummary build() { this.healthDetails, this.isReadOnlyResource, this.metrics, + this.backupCloudLocation, this.subscriptionId, this.freeformTags, this.definedTags, @@ -601,6 +624,9 @@ public Builder copy(ProtectedDatabaseSummary model) { if (model.wasPropertyExplicitlySet("metrics")) { this.metrics(model.getMetrics()); } + if (model.wasPropertyExplicitlySet("backupCloudLocation")) { + this.backupCloudLocation(model.getBackupCloudLocation()); + } if (model.wasPropertyExplicitlySet("subscriptionId")) { this.subscriptionId(model.getSubscriptionId()); } @@ -906,6 +932,23 @@ public MetricsSummary getMetrics() { return metrics; } + /** + * Indicates the cloud service environment where the protected database is provisioned. For + * example, Oracle Cloud or Microsoft Azure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupCloudLocation") + private final BackupCloudLocation backupCloudLocation; + + /** + * Indicates the cloud service environment where the protected database is provisioned. For + * example, Oracle Cloud or Microsoft Azure. + * + * @return the value + */ + public BackupCloudLocation getBackupCloudLocation() { + return backupCloudLocation; + } + /** The OCID of the cloud service subscription to which the protected database is linked. */ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") private final String subscriptionId; @@ -1007,6 +1050,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", healthDetails=").append(String.valueOf(this.healthDetails)); sb.append(", isReadOnlyResource=").append(String.valueOf(this.isReadOnlyResource)); sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(", backupCloudLocation=").append(String.valueOf(this.backupCloudLocation)); sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -1044,6 +1088,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.healthDetails, other.healthDetails) && java.util.Objects.equals(this.isReadOnlyResource, other.isReadOnlyResource) && java.util.Objects.equals(this.metrics, other.metrics) + && java.util.Objects.equals(this.backupCloudLocation, other.backupCloudLocation) && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -1097,6 +1142,11 @@ public int hashCode() { ? 43 : this.isReadOnlyResource.hashCode()); result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = + (result * PRIME) + + (this.backupCloudLocation == null + ? 43 + : this.backupCloudLocation.hashCode()); result = (result * PRIME) + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnet.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnet.java index 458e0e8968d..152b0f80be4 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnet.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnet.java @@ -35,6 +35,7 @@ public final class RecoveryServiceSubnet "subnetId", "subnets", "nsgIds", + "securityAttributes", "timeCreated", "timeUpdated", "lifecycleState", @@ -51,6 +52,7 @@ public RecoveryServiceSubnet( String subnetId, java.util.List subnets, java.util.List nsgIds, + java.util.Map> securityAttributes, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -66,6 +68,7 @@ public RecoveryServiceSubnet( this.subnetId = subnetId; this.subnets = subnets; this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -192,6 +195,34 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * An RFC3339 formatted datetime string that indicates the last created time for a recovery * service subnet. For example: '2020-05-22T21:10:29.600Z'. @@ -344,6 +375,7 @@ public RecoveryServiceSubnet build() { this.subnetId, this.subnets, this.nsgIds, + this.securityAttributes, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -380,6 +412,9 @@ public Builder copy(RecoveryServiceSubnet model) { if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -515,6 +550,29 @@ public java.util.List getNsgIds() { return nsgIds; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * An RFC3339 formatted datetime string that indicates the last created time for a recovery * service subnet. For example: '2020-05-22T21:10:29.600Z'. @@ -656,6 +714,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", subnets=").append(String.valueOf(this.subnets)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -684,6 +743,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.subnets, other.subnets) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -707,6 +767,11 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.subnets == null ? 43 : this.subnets.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnetSummary.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnetSummary.java index d4953f53e5d..bac7c159007 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnetSummary.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnetSummary.java @@ -38,6 +38,7 @@ public final class RecoveryServiceSubnetSummary "subnetId", "subnets", "nsgIds", + "securityAttributes", "timeCreated", "timeUpdated", "lifecycleState", @@ -54,6 +55,7 @@ public RecoveryServiceSubnetSummary( String subnetId, java.util.List subnets, java.util.List nsgIds, + java.util.Map> securityAttributes, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -69,6 +71,7 @@ public RecoveryServiceSubnetSummary( this.subnetId = subnetId; this.subnets = subnets; this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -199,6 +202,34 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * An RFC3339 formatted datetime string that indicates the last created time for a recovery * service subnet. For example: '2020-05-22T21:10:29.600Z'. @@ -351,6 +382,7 @@ public RecoveryServiceSubnetSummary build() { this.subnetId, this.subnets, this.nsgIds, + this.securityAttributes, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -387,6 +419,9 @@ public Builder copy(RecoveryServiceSubnetSummary model) { if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -526,6 +561,29 @@ public java.util.List getNsgIds() { return nsgIds; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * An RFC3339 formatted datetime string that indicates the last created time for a recovery * service subnet. For example: '2020-05-22T21:10:29.600Z'. @@ -667,6 +725,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", subnets=").append(String.valueOf(this.subnets)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -695,6 +754,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.subnets, other.subnets) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -718,6 +778,11 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.subnets == null ? 43 : this.subnets.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RetentionPeriodValue.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RetentionPeriodValue.java new file mode 100644 index 00000000000..a1761017243 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RetentionPeriodValue.java @@ -0,0 +1,249 @@ +/** + * 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.recovery.model; + +/** + * Specifies the retention period for the long-term backup.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RetentionPeriodValue.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RetentionPeriodValue + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"retentionPeriodType", "retentionCount"}) + public RetentionPeriodValue(RetentionPeriodType retentionPeriodType, Integer retentionCount) { + super(); + this.retentionPeriodType = retentionPeriodType; + this.retentionCount = retentionCount; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Specifies the retention period type for the long-term backup. Allowed values are DAYS or + * YEARS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodType") + private RetentionPeriodType retentionPeriodType; + + /** + * Specifies the retention period type for the long-term backup. Allowed values are DAYS or + * YEARS. + * + * @param retentionPeriodType the value to set + * @return this builder + */ + public Builder retentionPeriodType(RetentionPeriodType retentionPeriodType) { + this.retentionPeriodType = retentionPeriodType; + this.__explicitlySet__.add("retentionPeriodType"); + return this; + } + /** + * Specifies the duration (in days or years) to retain the long-term backup. If you have + * chosen the retentionPeriodType as 'DAYS', then specify a duration ranging from 90 days to + * 3650 days. If you have chosen the retentionPeriodType as 'YEARS', then specify a duration + * ranging from 1 year to 10 years. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionCount") + private Integer retentionCount; + + /** + * Specifies the duration (in days or years) to retain the long-term backup. If you have + * chosen the retentionPeriodType as 'DAYS', then specify a duration ranging from 90 days to + * 3650 days. If you have chosen the retentionPeriodType as 'YEARS', then specify a duration + * ranging from 1 year to 10 years. + * + * @param retentionCount the value to set + * @return this builder + */ + public Builder retentionCount(Integer retentionCount) { + this.retentionCount = retentionCount; + this.__explicitlySet__.add("retentionCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RetentionPeriodValue build() { + RetentionPeriodValue model = + new RetentionPeriodValue(this.retentionPeriodType, this.retentionCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RetentionPeriodValue model) { + if (model.wasPropertyExplicitlySet("retentionPeriodType")) { + this.retentionPeriodType(model.getRetentionPeriodType()); + } + if (model.wasPropertyExplicitlySet("retentionCount")) { + this.retentionCount(model.getRetentionCount()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Specifies the retention period type for the long-term backup. Allowed values are DAYS or + * YEARS. + */ + public enum RetentionPeriodType implements com.oracle.bmc.http.internal.BmcEnum { + Year("YEAR"), + Day("DAY"), + + /** + * 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(RetentionPeriodType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RetentionPeriodType v : RetentionPeriodType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RetentionPeriodType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RetentionPeriodType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RetentionPeriodType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Specifies the retention period type for the long-term backup. Allowed values are DAYS or + * YEARS. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodType") + private final RetentionPeriodType retentionPeriodType; + + /** + * Specifies the retention period type for the long-term backup. Allowed values are DAYS or + * YEARS. + * + * @return the value + */ + public RetentionPeriodType getRetentionPeriodType() { + return retentionPeriodType; + } + + /** + * Specifies the duration (in days or years) to retain the long-term backup. If you have chosen + * the retentionPeriodType as 'DAYS', then specify a duration ranging from 90 days to 3650 days. + * If you have chosen the retentionPeriodType as 'YEARS', then specify a duration ranging from 1 + * year to 10 years. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionCount") + private final Integer retentionCount; + + /** + * Specifies the duration (in days or years) to retain the long-term backup. If you have chosen + * the retentionPeriodType as 'DAYS', then specify a duration ranging from 90 days to 3650 days. + * If you have chosen the retentionPeriodType as 'YEARS', then specify a duration ranging from 1 + * year to 10 years. + * + * @return the value + */ + public Integer getRetentionCount() { + return retentionCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RetentionPeriodValue("); + sb.append("super=").append(super.toString()); + sb.append("retentionPeriodType=").append(String.valueOf(this.retentionPeriodType)); + sb.append(", retentionCount=").append(String.valueOf(this.retentionCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RetentionPeriodValue)) { + return false; + } + + RetentionPeriodValue other = (RetentionPeriodValue) o; + return java.util.Objects.equals(this.retentionPeriodType, other.retentionPeriodType) + && java.util.Objects.equals(this.retentionCount, other.retentionCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.retentionPeriodType == null + ? 43 + : this.retentionPeriodType.hashCode()); + result = + (result * PRIME) + + (this.retentionCount == null ? 43 : this.retentionCount.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateLongTermBackupDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateLongTermBackupDetails.java new file mode 100644 index 00000000000..289a77614d3 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateLongTermBackupDetails.java @@ -0,0 +1,304 @@ +/** + * 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.recovery.model; + +/** + * The information to be updated.
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateLongTermBackupDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateLongTermBackupDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "retentionPeriod", + "freeformTags", + "definedTags" + }) + public UpdateLongTermBackupDetails( + String displayName, + java.util.List retentionPeriod, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.retentionPeriod = retentionPeriod; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user provided name for the long term backup. The 'displayName' does not have to be + * unique, and it can be modified. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user provided name for the long term backup. The 'displayName' does not have to be + * unique, and it can be modified. Avoid entering confidential information. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The maximum period to retain the long-term backup. Specify the retention period type and + * the duration for the long-term backup. If you have chosen the retention period type as + * 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the + * retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 + * years. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private java.util.List retentionPeriod; + + /** + * The maximum period to retain the long-term backup. Specify the retention period type and + * the duration for the long-term backup. If you have chosen the retention period type as + * 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the + * retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 + * years. + * + * @param retentionPeriod the value to set + * @return this builder + */ + public Builder retentionPeriod(java.util.List retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists + * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + */ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see + * [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see + * [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @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 UpdateLongTermBackupDetails build() { + UpdateLongTermBackupDetails model = + new UpdateLongTermBackupDetails( + this.displayName, + this.retentionPeriod, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateLongTermBackupDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + 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 provided name for the long term backup. The 'displayName' does not have to be unique, + * and it can be modified. Avoid entering confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user provided name for the long term backup. The 'displayName' does not have to be unique, + * and it can be modified. Avoid entering confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The maximum period to retain the long-term backup. Specify the retention period type and the + * duration for the long-term backup. If you have chosen the retention period type as 'DAYS', + * then specify a duration ranging from 90 days to 3650 days. If you have chosen the retention + * period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final java.util.List retentionPeriod; + + /** + * The maximum period to retain the long-term backup. Specify the retention period type and the + * duration for the long-term backup. If you have chosen the retention period type as 'DAYS', + * then specify a duration ranging from 90 days to 3650 days. If you have chosen the retention + * period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. + * + * @return the value + */ + public java.util.List getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource + * Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @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("UpdateLongTermBackupDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + 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 UpdateLongTermBackupDetails)) { + return false; + } + + UpdateLongTermBackupDetails other = (UpdateLongTermBackupDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && 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.retentionPeriod == null ? 43 : this.retentionPeriod.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-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateRecoveryServiceSubnetDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateRecoveryServiceSubnetDetails.java index c2fd6489fcf..8490ec2d1c1 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateRecoveryServiceSubnetDetails.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateRecoveryServiceSubnetDetails.java @@ -27,6 +27,7 @@ public final class UpdateRecoveryServiceSubnetDetails "displayName", "subnets", "nsgIds", + "securityAttributes", "freeformTags", "definedTags" }) @@ -34,12 +35,14 @@ public UpdateRecoveryServiceSubnetDetails( String displayName, java.util.List subnets, java.util.List nsgIds, + java.util.Map> securityAttributes, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; this.subnets = subnets; this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -105,6 +108,34 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -158,6 +189,7 @@ public UpdateRecoveryServiceSubnetDetails build() { this.displayName, this.subnets, this.nsgIds, + this.securityAttributes, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -177,6 +209,9 @@ public Builder copy(UpdateRecoveryServiceSubnetDetails model) { if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -249,6 +284,29 @@ public java.util.List getNsgIds() { return nsgIds; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

    Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -303,6 +361,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", subnets=").append(String.valueOf(this.subnets)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -322,6 +381,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.subnets, other.subnets) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -334,6 +394,11 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.subnets == null ? 43 : this.subnets.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.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(); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelLongTermBackupRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelLongTermBackupRequest.java new file mode 100644 index 00000000000..ca66db32061 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelLongTermBackupRequest.java @@ -0,0 +1,292 @@ +/** + * 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.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use CancelLongTermBackupRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CancelLongTermBackupRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The long term backup OCID. */ + private String longTermBackupId; + + /** The long term backup OCID. */ + public String getLongTermBackupId() { + return longTermBackupId; + } + /** + * 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; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CancelLongTermBackupRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The long term backup OCID. */ + private String longTermBackupId = null; + + /** + * The long term backup OCID. + * + * @param longTermBackupId the value to set + * @return this builder instance + */ + public Builder longTermBackupId(String longTermBackupId) { + this.longTermBackupId = longTermBackupId; + 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; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @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(CancelLongTermBackupRequest o) { + longTermBackupId(o.getLongTermBackupId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CancelLongTermBackupRequest 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 CancelLongTermBackupRequest + */ + public CancelLongTermBackupRequest build() { + CancelLongTermBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of CancelLongTermBackupRequest 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 CancelLongTermBackupRequest + */ + public CancelLongTermBackupRequest buildWithoutInvocationCallback() { + CancelLongTermBackupRequest request = new CancelLongTermBackupRequest(); + request.longTermBackupId = longTermBackupId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new CancelLongTermBackupRequest(longTermBackupId, opcRetryToken, ifMatch, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .longTermBackupId(longTermBackupId) + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",longTermBackupId=").append(String.valueOf(this.longTermBackupId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelLongTermBackupRequest)) { + return false; + } + + CancelLongTermBackupRequest other = (CancelLongTermBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.longTermBackupId, other.longTermBackupId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.longTermBackupId == null ? 43 : this.longTermBackupId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java index 9ef1f02c6af..4d160852e34 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java @@ -22,6 +22,25 @@ public class CancelProtectedDatabaseDeletionRequest public String getProtectedDatabaseId() { return protectedDatabaseId; } + /** + * 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 @@ -67,6 +86,30 @@ public Builder protectedDatabaseId(String protectedDatabaseId) { 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 @@ -134,6 +177,7 @@ public Builder retryConfiguration( */ public Builder copy(CancelProtectedDatabaseDeletionRequest o) { protectedDatabaseId(o.getProtectedDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -174,11 +218,12 @@ public CancelProtectedDatabaseDeletionRequest buildWithoutInvocationCallback() { CancelProtectedDatabaseDeletionRequest request = new CancelProtectedDatabaseDeletionRequest(); request.protectedDatabaseId = protectedDatabaseId; + request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; - // new CancelProtectedDatabaseDeletionRequest(protectedDatabaseId, ifMatch, - // opcRequestId); + // new CancelProtectedDatabaseDeletionRequest(protectedDatabaseId, opcRetryToken, + // ifMatch, opcRequestId); } } @@ -190,6 +235,7 @@ public CancelProtectedDatabaseDeletionRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .protectedDatabaseId(protectedDatabaseId) + .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); } @@ -209,6 +255,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -227,6 +274,7 @@ public boolean equals(Object o) { CancelProtectedDatabaseDeletionRequest other = (CancelProtectedDatabaseDeletionRequest) o; return super.equals(o) && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -240,6 +288,9 @@ public int hashCode() { + (this.protectedDatabaseId == null ? 43 : this.protectedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseCompartmentRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseCompartmentRequest.java index b8ca0922cde..07c5475abc9 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseCompartmentRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseCompartmentRequest.java @@ -38,6 +38,25 @@ public String getProtectedDatabaseId() { getChangeProtectedDatabaseCompartmentDetails() { return changeProtectedDatabaseCompartmentDetails; } + /** + * 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 @@ -117,6 +136,30 @@ public Builder changeProtectedDatabaseCompartmentDetails( 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 @@ -186,6 +229,7 @@ public Builder copy(ChangeProtectedDatabaseCompartmentRequest o) { protectedDatabaseId(o.getProtectedDatabaseId()); changeProtectedDatabaseCompartmentDetails( o.getChangeProtectedDatabaseCompartmentDetails()); + opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -241,11 +285,12 @@ public ChangeProtectedDatabaseCompartmentRequest buildWithoutInvocationCallback( request.protectedDatabaseId = protectedDatabaseId; request.changeProtectedDatabaseCompartmentDetails = changeProtectedDatabaseCompartmentDetails; + request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; // new ChangeProtectedDatabaseCompartmentRequest(protectedDatabaseId, - // changeProtectedDatabaseCompartmentDetails, ifMatch, opcRequestId); + // changeProtectedDatabaseCompartmentDetails, opcRetryToken, ifMatch, opcRequestId); } } @@ -259,6 +304,7 @@ public Builder toBuilder() { .protectedDatabaseId(protectedDatabaseId) .changeProtectedDatabaseCompartmentDetails( changeProtectedDatabaseCompartmentDetails) + .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); } @@ -280,6 +326,7 @@ public String toString() { sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); sb.append(",changeProtectedDatabaseCompartmentDetails=") .append(String.valueOf(this.changeProtectedDatabaseCompartmentDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -302,6 +349,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.changeProtectedDatabaseCompartmentDetails, other.changeProtectedDatabaseCompartmentDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -320,6 +368,9 @@ public int hashCode() { + (this.changeProtectedDatabaseCompartmentDetails == null ? 43 : this.changeProtectedDatabaseCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java index 06c03d49b8e..4dab6cb62d2 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java @@ -32,6 +32,25 @@ public String getProtectedDatabaseId() { getChangeProtectedDatabaseSubscriptionDetails() { return changeProtectedDatabaseSubscriptionDetails; } + /** + * 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; + } /** Unique identifier for the request. */ private String opcRequestId; @@ -107,6 +126,30 @@ public Builder changeProtectedDatabaseSubscriptionDetails( 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; + } + /** Unique identifier for the request. */ private String opcRequestId = null; @@ -176,6 +219,7 @@ public Builder copy(ChangeProtectedDatabaseSubscriptionRequest o) { protectedDatabaseId(o.getProtectedDatabaseId()); changeProtectedDatabaseSubscriptionDetails( o.getChangeProtectedDatabaseSubscriptionDetails()); + opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); invocationCallback(o.getInvocationCallback()); @@ -231,11 +275,12 @@ public ChangeProtectedDatabaseSubscriptionRequest buildWithoutInvocationCallback request.protectedDatabaseId = protectedDatabaseId; request.changeProtectedDatabaseSubscriptionDetails = changeProtectedDatabaseSubscriptionDetails; + request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; return request; // new ChangeProtectedDatabaseSubscriptionRequest(protectedDatabaseId, - // changeProtectedDatabaseSubscriptionDetails, opcRequestId, ifMatch); + // changeProtectedDatabaseSubscriptionDetails, opcRetryToken, opcRequestId, ifMatch); } } @@ -249,6 +294,7 @@ public Builder toBuilder() { .protectedDatabaseId(protectedDatabaseId) .changeProtectedDatabaseSubscriptionDetails( changeProtectedDatabaseSubscriptionDetails) + .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId) .ifMatch(ifMatch); } @@ -270,6 +316,7 @@ public String toString() { sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); sb.append(",changeProtectedDatabaseSubscriptionDetails=") .append(String.valueOf(this.changeProtectedDatabaseSubscriptionDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(")"); @@ -292,6 +339,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.changeProtectedDatabaseSubscriptionDetails, other.changeProtectedDatabaseSubscriptionDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.ifMatch, other.ifMatch); } @@ -310,6 +358,9 @@ public int hashCode() { + (this.changeProtectedDatabaseSubscriptionDetails == null ? 43 : this.changeProtectedDatabaseSubscriptionDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectionPolicyCompartmentRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectionPolicyCompartmentRequest.java index 9b777a06a9a..6ba1dcf9ed1 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectionPolicyCompartmentRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectionPolicyCompartmentRequest.java @@ -38,6 +38,25 @@ public String getProtectionPolicyId() { getChangeProtectionPolicyCompartmentDetails() { return changeProtectionPolicyCompartmentDetails; } + /** + * 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 @@ -117,6 +136,30 @@ public Builder changeProtectionPolicyCompartmentDetails( 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 @@ -186,6 +229,7 @@ public Builder copy(ChangeProtectionPolicyCompartmentRequest o) { protectionPolicyId(o.getProtectionPolicyId()); changeProtectionPolicyCompartmentDetails( o.getChangeProtectionPolicyCompartmentDetails()); + opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -241,11 +285,12 @@ public ChangeProtectionPolicyCompartmentRequest buildWithoutInvocationCallback() request.protectionPolicyId = protectionPolicyId; request.changeProtectionPolicyCompartmentDetails = changeProtectionPolicyCompartmentDetails; + request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; // new ChangeProtectionPolicyCompartmentRequest(protectionPolicyId, - // changeProtectionPolicyCompartmentDetails, ifMatch, opcRequestId); + // changeProtectionPolicyCompartmentDetails, opcRetryToken, ifMatch, opcRequestId); } } @@ -258,6 +303,7 @@ public Builder toBuilder() { return new Builder() .protectionPolicyId(protectionPolicyId) .changeProtectionPolicyCompartmentDetails(changeProtectionPolicyCompartmentDetails) + .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); } @@ -279,6 +325,7 @@ public String toString() { sb.append(",protectionPolicyId=").append(String.valueOf(this.protectionPolicyId)); sb.append(",changeProtectionPolicyCompartmentDetails=") .append(String.valueOf(this.changeProtectionPolicyCompartmentDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -301,6 +348,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.changeProtectionPolicyCompartmentDetails, other.changeProtectionPolicyCompartmentDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -319,6 +367,9 @@ public int hashCode() { + (this.changeProtectionPolicyCompartmentDetails == null ? 43 : this.changeProtectionPolicyCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeRecoveryServiceSubnetCompartmentRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeRecoveryServiceSubnetCompartmentRequest.java index 2ae516e4707..323213c4664 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeRecoveryServiceSubnetCompartmentRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeRecoveryServiceSubnetCompartmentRequest.java @@ -38,6 +38,25 @@ public String getRecoveryServiceSubnetId() { getChangeRecoveryServiceSubnetCompartmentDetails() { return changeRecoveryServiceSubnetCompartmentDetails; } + /** + * 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 @@ -117,6 +136,30 @@ public Builder changeRecoveryServiceSubnetCompartmentDetails( 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 @@ -186,6 +229,7 @@ public Builder copy(ChangeRecoveryServiceSubnetCompartmentRequest o) { recoveryServiceSubnetId(o.getRecoveryServiceSubnetId()); changeRecoveryServiceSubnetCompartmentDetails( o.getChangeRecoveryServiceSubnetCompartmentDetails()); + opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -242,11 +286,12 @@ public ChangeRecoveryServiceSubnetCompartmentRequest buildWithoutInvocationCallb request.recoveryServiceSubnetId = recoveryServiceSubnetId; request.changeRecoveryServiceSubnetCompartmentDetails = changeRecoveryServiceSubnetCompartmentDetails; + request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; // new ChangeRecoveryServiceSubnetCompartmentRequest(recoveryServiceSubnetId, - // changeRecoveryServiceSubnetCompartmentDetails, ifMatch, opcRequestId); + // changeRecoveryServiceSubnetCompartmentDetails, opcRetryToken, ifMatch, opcRequestId); } } @@ -260,6 +305,7 @@ public Builder toBuilder() { .recoveryServiceSubnetId(recoveryServiceSubnetId) .changeRecoveryServiceSubnetCompartmentDetails( changeRecoveryServiceSubnetCompartmentDetails) + .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); } @@ -281,6 +327,7 @@ public String toString() { sb.append(",recoveryServiceSubnetId=").append(String.valueOf(this.recoveryServiceSubnetId)); sb.append(",changeRecoveryServiceSubnetCompartmentDetails=") .append(String.valueOf(this.changeRecoveryServiceSubnetCompartmentDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -304,6 +351,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.changeRecoveryServiceSubnetCompartmentDetails, other.changeRecoveryServiceSubnetCompartmentDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -322,6 +370,9 @@ public int hashCode() { + (this.changeRecoveryServiceSubnetCompartmentDetails == null ? 43 : this.changeRecoveryServiceSubnetCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CreateLongTermBackupRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CreateLongTermBackupRequest.java new file mode 100644 index 00000000000..1476cad340e --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CreateLongTermBackupRequest.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.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use CreateLongTermBackupRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CreateLongTermBackupRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.recovery.model.CreateLongTermBackupDetails> { + + /** Describes the parameters required to create a long term backup for a protected database. */ + private com.oracle.bmc.recovery.model.CreateLongTermBackupDetails createLongTermBackupDetails; + + /** Describes the parameters required to create a long term backup for a protected database. */ + public com.oracle.bmc.recovery.model.CreateLongTermBackupDetails + getCreateLongTermBackupDetails() { + return createLongTermBackupDetails; + } + /** + * 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; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.recovery.model.CreateLongTermBackupDetails getBody$() { + return createLongTermBackupDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateLongTermBackupRequest, + com.oracle.bmc.recovery.model.CreateLongTermBackupDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Describes the parameters required to create a long term backup for a protected database. + */ + private com.oracle.bmc.recovery.model.CreateLongTermBackupDetails + createLongTermBackupDetails = null; + + /** + * Describes the parameters required to create a long term backup for a protected database. + * + * @param createLongTermBackupDetails the value to set + * @return this builder instance + */ + public Builder createLongTermBackupDetails( + com.oracle.bmc.recovery.model.CreateLongTermBackupDetails + createLongTermBackupDetails) { + this.createLongTermBackupDetails = createLongTermBackupDetails; + 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; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @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(CreateLongTermBackupRequest o) { + createLongTermBackupDetails(o.getCreateLongTermBackupDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateLongTermBackupRequest 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 CreateLongTermBackupRequest + */ + public CreateLongTermBackupRequest build() { + CreateLongTermBackupRequest 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.recovery.model.CreateLongTermBackupDetails body) { + createLongTermBackupDetails(body); + return this; + } + + /** + * Build the instance of CreateLongTermBackupRequest 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 CreateLongTermBackupRequest + */ + public CreateLongTermBackupRequest buildWithoutInvocationCallback() { + CreateLongTermBackupRequest request = new CreateLongTermBackupRequest(); + request.createLongTermBackupDetails = createLongTermBackupDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateLongTermBackupRequest(createLongTermBackupDetails, opcRetryToken, + // opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createLongTermBackupDetails(createLongTermBackupDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createLongTermBackupDetails=") + .append(String.valueOf(this.createLongTermBackupDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateLongTermBackupRequest)) { + return false; + } + + CreateLongTermBackupRequest other = (CreateLongTermBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createLongTermBackupDetails, other.createLongTermBackupDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createLongTermBackupDetails == null + ? 43 + : this.createLongTermBackupDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteLongTermBackupRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteLongTermBackupRequest.java new file mode 100644 index 00000000000..4ea958d606a --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteLongTermBackupRequest.java @@ -0,0 +1,240 @@ +/** + * 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.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use DeleteLongTermBackupRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class DeleteLongTermBackupRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The long term backup OCID. */ + private String longTermBackupId; + + /** The long term backup OCID. */ + public String getLongTermBackupId() { + return longTermBackupId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteLongTermBackupRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The long term backup OCID. */ + private String longTermBackupId = null; + + /** + * The long term backup OCID. + * + * @param longTermBackupId the value to set + * @return this builder instance + */ + public Builder longTermBackupId(String longTermBackupId) { + this.longTermBackupId = longTermBackupId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @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(DeleteLongTermBackupRequest o) { + longTermBackupId(o.getLongTermBackupId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteLongTermBackupRequest 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 DeleteLongTermBackupRequest + */ + public DeleteLongTermBackupRequest build() { + DeleteLongTermBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteLongTermBackupRequest 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 DeleteLongTermBackupRequest + */ + public DeleteLongTermBackupRequest buildWithoutInvocationCallback() { + DeleteLongTermBackupRequest request = new DeleteLongTermBackupRequest(); + request.longTermBackupId = longTermBackupId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteLongTermBackupRequest(longTermBackupId, 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() + .longTermBackupId(longTermBackupId) + .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(",longTermBackupId=").append(String.valueOf(this.longTermBackupId)); + 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 DeleteLongTermBackupRequest)) { + return false; + } + + DeleteLongTermBackupRequest other = (DeleteLongTermBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.longTermBackupId, other.longTermBackupId) + && 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.longTermBackupId == null ? 43 : this.longTermBackupId.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-recovery/src/main/java/com/oracle/bmc/recovery/requests/FetchProtectedDatabaseConfigurationRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/FetchProtectedDatabaseConfigurationRequest.java index 2c4c799b290..092f10ab6c9 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/FetchProtectedDatabaseConfigurationRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/FetchProtectedDatabaseConfigurationRequest.java @@ -32,6 +32,25 @@ public String getProtectedDatabaseId() { getFetchProtectedDatabaseConfigurationDetails() { return fetchProtectedDatabaseConfigurationDetails; } + /** + * 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; + } /** Unique identifier for the request. */ private String opcRequestId; @@ -107,6 +126,30 @@ public Builder fetchProtectedDatabaseConfigurationDetails( 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; + } + /** Unique identifier for the request. */ private String opcRequestId = null; @@ -176,6 +219,7 @@ public Builder copy(FetchProtectedDatabaseConfigurationRequest o) { protectedDatabaseId(o.getProtectedDatabaseId()); fetchProtectedDatabaseConfigurationDetails( o.getFetchProtectedDatabaseConfigurationDetails()); + opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); invocationCallback(o.getInvocationCallback()); @@ -231,11 +275,12 @@ public FetchProtectedDatabaseConfigurationRequest buildWithoutInvocationCallback request.protectedDatabaseId = protectedDatabaseId; request.fetchProtectedDatabaseConfigurationDetails = fetchProtectedDatabaseConfigurationDetails; + request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; return request; // new FetchProtectedDatabaseConfigurationRequest(protectedDatabaseId, - // fetchProtectedDatabaseConfigurationDetails, opcRequestId, ifMatch); + // fetchProtectedDatabaseConfigurationDetails, opcRetryToken, opcRequestId, ifMatch); } } @@ -249,6 +294,7 @@ public Builder toBuilder() { .protectedDatabaseId(protectedDatabaseId) .fetchProtectedDatabaseConfigurationDetails( fetchProtectedDatabaseConfigurationDetails) + .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId) .ifMatch(ifMatch); } @@ -270,6 +316,7 @@ public String toString() { sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); sb.append(",fetchProtectedDatabaseConfigurationDetails=") .append(String.valueOf(this.fetchProtectedDatabaseConfigurationDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(")"); @@ -292,6 +339,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.fetchProtectedDatabaseConfigurationDetails, other.fetchProtectedDatabaseConfigurationDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.ifMatch, other.ifMatch); } @@ -310,6 +358,9 @@ public int hashCode() { + (this.fetchProtectedDatabaseConfigurationDetails == null ? 43 : this.fetchProtectedDatabaseConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/GetLongTermBackupRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/GetLongTermBackupRequest.java new file mode 100644 index 00000000000..9df700c3d5f --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/GetLongTermBackupRequest.java @@ -0,0 +1,192 @@ +/** + * 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.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use GetLongTermBackupRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class GetLongTermBackupRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The long term backup OCID. */ + private String longTermBackupId; + + /** The long term backup OCID. */ + public String getLongTermBackupId() { + return longTermBackupId; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetLongTermBackupRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The long term backup OCID. */ + private String longTermBackupId = null; + + /** + * The long term backup OCID. + * + * @param longTermBackupId the value to set + * @return this builder instance + */ + public Builder longTermBackupId(String longTermBackupId) { + this.longTermBackupId = longTermBackupId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @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(GetLongTermBackupRequest o) { + longTermBackupId(o.getLongTermBackupId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetLongTermBackupRequest 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 GetLongTermBackupRequest + */ + public GetLongTermBackupRequest build() { + GetLongTermBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetLongTermBackupRequest 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 GetLongTermBackupRequest + */ + public GetLongTermBackupRequest buildWithoutInvocationCallback() { + GetLongTermBackupRequest request = new GetLongTermBackupRequest(); + request.longTermBackupId = longTermBackupId; + request.opcRequestId = opcRequestId; + return request; + // new GetLongTermBackupRequest(longTermBackupId, 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().longTermBackupId(longTermBackupId).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(",longTermBackupId=").append(String.valueOf(this.longTermBackupId)); + 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 GetLongTermBackupRequest)) { + return false; + } + + GetLongTermBackupRequest other = (GetLongTermBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.longTermBackupId, other.longTermBackupId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.longTermBackupId == null ? 43 : this.longTermBackupId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListLongTermBackupsRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListLongTermBackupsRequest.java new file mode 100644 index 00000000000..a5348bdfb40 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListLongTermBackupsRequest.java @@ -0,0 +1,514 @@ +/** + * 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.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use ListLongTermBackupsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class ListLongTermBackupsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The compartment OCID. */ + private String compartmentId; + + /** The compartment OCID. */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The long-term backup OCID. Use longTermBackupId to filter a long-term backup based on its + * unique identifier. + */ + private String id; + + /** + * The long-term backup OCID. Use longTermBackupId to filter a long-term backup based on its + * unique identifier. + */ + public String getId() { + return id; + } + /** A filter to return only resources that match the entire 'displayname' given. */ + private String displayName; + + /** A filter to return only resources that match the entire 'displayname' given. */ + public String getDisplayName() { + return displayName; + } + /** + * The protected database OCID. Use protectedDatabaseId to list the long-term backups of a + * specific protected database. + */ + private String protectedDatabaseId; + + /** + * The protected database OCID. Use protectedDatabaseId to list the long-term backups of a + * specific protected database. + */ + public String getProtectedDatabaseId() { + return protectedDatabaseId; + } + /** A filter to return only the resources that match the specified lifecycle state. */ + private com.oracle.bmc.recovery.model.LifecycleState lifecycleState; + + /** A filter to return only the resources that match the specified lifecycle state. */ + public com.oracle.bmc.recovery.model.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** The maximum number of items to return per page. */ + private Integer limit; + + /** The maximum number of items to return per page. */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually + * retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either ascending (ASC) or descending (DESC). Allowed values are: - ASC + * - DESC + */ + private com.oracle.bmc.recovery.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). Allowed values are: - ASC + * - DESC + */ + public com.oracle.bmc.recovery.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. You can provide one sort order (sortOrder). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify + * a value, then TIMECREATED is used as the default sort order. Allowed values are: - + * TIMECREATED - DISPLAYNAME + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order (sortOrder). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify + * a value, then TIMECREATED is used as the default sort order. Allowed values are: - + * TIMECREATED - DISPLAYNAME + */ + 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. You can provide one sort order (sortOrder). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify + * a value, then TIMECREATED is used as the default sort order. Allowed values are: - + * TIMECREATED - DISPLAYNAME + */ + public SortBy getSortBy() { + return sortBy; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListLongTermBackupsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The compartment OCID. */ + private String compartmentId = null; + + /** + * The compartment OCID. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The long-term backup OCID. Use longTermBackupId to filter a long-term backup based on its + * unique identifier. + */ + private String id = null; + + /** + * The long-term backup OCID. Use longTermBackupId to filter a long-term backup based on its + * unique identifier. + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** A filter to return only resources that match the entire 'displayname' given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire 'displayname' given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The protected database OCID. Use protectedDatabaseId to list the long-term backups of a + * specific protected database. + */ + private String protectedDatabaseId = null; + + /** + * The protected database OCID. Use protectedDatabaseId to list the long-term backups of a + * specific protected database. + * + * @param protectedDatabaseId the value to set + * @return this builder instance + */ + public Builder protectedDatabaseId(String protectedDatabaseId) { + this.protectedDatabaseId = protectedDatabaseId; + return this; + } + + /** A filter to return only the resources that match the specified lifecycle state. */ + private com.oracle.bmc.recovery.model.LifecycleState lifecycleState = null; + + /** + * A filter to return only the resources that match the specified lifecycle state. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState(com.oracle.bmc.recovery.model.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** The maximum number of items to return per page. */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is + * usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). Allowed values are: - + * ASC - DESC + */ + private com.oracle.bmc.recovery.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). Allowed values are: - + * ASC - DESC + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.recovery.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. You can provide one sort order (sortOrder). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not + * specify a value, then TIMECREATED is used as the default sort order. Allowed values are: + * - TIMECREATED - DISPLAYNAME + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order (sortOrder). Default order for + * TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not + * specify a value, then TIMECREATED is used as the default sort order. Allowed values are: + * - TIMECREATED - DISPLAYNAME + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @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(ListLongTermBackupsRequest o) { + compartmentId(o.getCompartmentId()); + id(o.getId()); + displayName(o.getDisplayName()); + protectedDatabaseId(o.getProtectedDatabaseId()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListLongTermBackupsRequest 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 ListLongTermBackupsRequest + */ + public ListLongTermBackupsRequest build() { + ListLongTermBackupsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListLongTermBackupsRequest 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 ListLongTermBackupsRequest + */ + public ListLongTermBackupsRequest buildWithoutInvocationCallback() { + ListLongTermBackupsRequest request = new ListLongTermBackupsRequest(); + request.compartmentId = compartmentId; + request.id = id; + request.displayName = displayName; + request.protectedDatabaseId = protectedDatabaseId; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListLongTermBackupsRequest(compartmentId, id, displayName, protectedDatabaseId, + // lifecycleState, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .id(id) + .displayName(displayName) + .protectedDatabaseId(protectedDatabaseId) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListLongTermBackupsRequest)) { + return false; + } + + ListLongTermBackupsRequest other = (ListLongTermBackupsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.protectedDatabaseId == null + ? 43 + : this.protectedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectedDatabasesRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectedDatabasesRequest.java index f9c40b74757..aefbc9b4f7d 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectedDatabasesRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectedDatabasesRequest.java @@ -57,6 +57,13 @@ public String getProtectionPolicyId() { public String getRecoveryServiceSubnetId() { return recoveryServiceSubnetId; } + /** Filter for cloud location of protected database. */ + private com.oracle.bmc.recovery.model.BackupCloudLocation backupCloudLocation; + + /** Filter for cloud location of protected database. */ + public com.oracle.bmc.recovery.model.BackupCloudLocation getBackupCloudLocation() { + return backupCloudLocation; + } /** The maximum number of items to return per page. */ private Integer limit; @@ -244,6 +251,21 @@ public Builder recoveryServiceSubnetId(String recoveryServiceSubnetId) { return this; } + /** Filter for cloud location of protected database. */ + private com.oracle.bmc.recovery.model.BackupCloudLocation backupCloudLocation = null; + + /** + * Filter for cloud location of protected database. + * + * @param backupCloudLocation the value to set + * @return this builder instance + */ + public Builder backupCloudLocation( + com.oracle.bmc.recovery.model.BackupCloudLocation backupCloudLocation) { + this.backupCloudLocation = backupCloudLocation; + return this; + } + /** The maximum number of items to return per page. */ private Integer limit = null; @@ -366,6 +388,7 @@ public Builder copy(ListProtectedDatabasesRequest o) { id(o.getId()); protectionPolicyId(o.getProtectionPolicyId()); recoveryServiceSubnetId(o.getRecoveryServiceSubnetId()); + backupCloudLocation(o.getBackupCloudLocation()); limit(o.getLimit()); page(o.getPage()); sortOrder(o.getSortOrder()); @@ -411,6 +434,7 @@ public ListProtectedDatabasesRequest buildWithoutInvocationCallback() { request.id = id; request.protectionPolicyId = protectionPolicyId; request.recoveryServiceSubnetId = recoveryServiceSubnetId; + request.backupCloudLocation = backupCloudLocation; request.limit = limit; request.page = page; request.sortOrder = sortOrder; @@ -418,8 +442,8 @@ public ListProtectedDatabasesRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; return request; // new ListProtectedDatabasesRequest(compartmentId, lifecycleState, displayName, id, - // protectionPolicyId, recoveryServiceSubnetId, limit, page, sortOrder, sortBy, - // opcRequestId); + // protectionPolicyId, recoveryServiceSubnetId, backupCloudLocation, limit, page, + // sortOrder, sortBy, opcRequestId); } } @@ -436,6 +460,7 @@ public Builder toBuilder() { .id(id) .protectionPolicyId(protectionPolicyId) .recoveryServiceSubnetId(recoveryServiceSubnetId) + .backupCloudLocation(backupCloudLocation) .limit(limit) .page(page) .sortOrder(sortOrder) @@ -463,6 +488,7 @@ public String toString() { sb.append(",id=").append(String.valueOf(this.id)); sb.append(",protectionPolicyId=").append(String.valueOf(this.protectionPolicyId)); sb.append(",recoveryServiceSubnetId=").append(String.valueOf(this.recoveryServiceSubnetId)); + sb.append(",backupCloudLocation=").append(String.valueOf(this.backupCloudLocation)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); @@ -490,6 +516,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.protectionPolicyId, other.protectionPolicyId) && java.util.Objects.equals( this.recoveryServiceSubnetId, other.recoveryServiceSubnetId) + && java.util.Objects.equals(this.backupCloudLocation, other.backupCloudLocation) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) @@ -519,6 +546,11 @@ public int hashCode() { + (this.recoveryServiceSubnetId == null ? 43 : this.recoveryServiceSubnetId.hashCode()); + result = + (result * PRIME) + + (this.backupCloudLocation == null + ? 43 + : this.backupCloudLocation.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectionPoliciesRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectionPoliciesRequest.java index 35c9ba9eae1..2aeecc2c37c 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectionPoliciesRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectionPoliciesRequest.java @@ -84,6 +84,19 @@ public static Owner create(String key) { public Owner getOwner() { return owner; } + /** + * A filter to return only the protection policies that enforce backup colocation + * (mustEnforceCloudLocality is set to TRUE). + */ + private Boolean mustEnforceCloudLocality; + + /** + * A filter to return only the protection policies that enforce backup colocation + * (mustEnforceCloudLocality is set to TRUE). + */ + public Boolean getMustEnforceCloudLocality() { + return mustEnforceCloudLocality; + } /** The maximum number of items to return. Specify a value greater than 4. */ private Integer limit; @@ -259,6 +272,24 @@ public Builder owner(Owner owner) { return this; } + /** + * A filter to return only the protection policies that enforce backup colocation + * (mustEnforceCloudLocality is set to TRUE). + */ + private Boolean mustEnforceCloudLocality = null; + + /** + * A filter to return only the protection policies that enforce backup colocation + * (mustEnforceCloudLocality is set to TRUE). + * + * @param mustEnforceCloudLocality the value to set + * @return this builder instance + */ + public Builder mustEnforceCloudLocality(Boolean mustEnforceCloudLocality) { + this.mustEnforceCloudLocality = mustEnforceCloudLocality; + return this; + } + /** The maximum number of items to return. Specify a value greater than 4. */ private Integer limit = null; @@ -380,6 +411,7 @@ public Builder copy(ListProtectionPoliciesRequest o) { displayName(o.getDisplayName()); protectionPolicyId(o.getProtectionPolicyId()); owner(o.getOwner()); + mustEnforceCloudLocality(o.getMustEnforceCloudLocality()); limit(o.getLimit()); page(o.getPage()); sortOrder(o.getSortOrder()); @@ -424,6 +456,7 @@ public ListProtectionPoliciesRequest buildWithoutInvocationCallback() { request.displayName = displayName; request.protectionPolicyId = protectionPolicyId; request.owner = owner; + request.mustEnforceCloudLocality = mustEnforceCloudLocality; request.limit = limit; request.page = page; request.sortOrder = sortOrder; @@ -431,7 +464,8 @@ public ListProtectionPoliciesRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; return request; // new ListProtectionPoliciesRequest(compartmentId, lifecycleState, displayName, - // protectionPolicyId, owner, limit, page, sortOrder, sortBy, opcRequestId); + // protectionPolicyId, owner, mustEnforceCloudLocality, limit, page, sortOrder, sortBy, + // opcRequestId); } } @@ -447,6 +481,7 @@ public Builder toBuilder() { .displayName(displayName) .protectionPolicyId(protectionPolicyId) .owner(owner) + .mustEnforceCloudLocality(mustEnforceCloudLocality) .limit(limit) .page(page) .sortOrder(sortOrder) @@ -473,6 +508,8 @@ public String toString() { sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",protectionPolicyId=").append(String.valueOf(this.protectionPolicyId)); sb.append(",owner=").append(String.valueOf(this.owner)); + sb.append(",mustEnforceCloudLocality=") + .append(String.valueOf(this.mustEnforceCloudLocality)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); @@ -498,6 +535,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.protectionPolicyId, other.protectionPolicyId) && java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals( + this.mustEnforceCloudLocality, other.mustEnforceCloudLocality) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) @@ -522,6 +561,11 @@ public int hashCode() { ? 43 : this.protectionPolicyId.hashCode()); result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = + (result * PRIME) + + (this.mustEnforceCloudLocality == null + ? 43 + : this.mustEnforceCloudLocality.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ScheduleProtectedDatabaseDeletionRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ScheduleProtectedDatabaseDeletionRequest.java index 1887fa0a529..3c384f9c1ce 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ScheduleProtectedDatabaseDeletionRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ScheduleProtectedDatabaseDeletionRequest.java @@ -32,6 +32,25 @@ public String getProtectedDatabaseId() { getScheduleProtectedDatabaseDeletionDetails() { return scheduleProtectedDatabaseDeletionDetails; } + /** + * 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 @@ -107,6 +126,30 @@ public Builder scheduleProtectedDatabaseDeletionDetails( 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 @@ -176,6 +219,7 @@ public Builder copy(ScheduleProtectedDatabaseDeletionRequest o) { protectedDatabaseId(o.getProtectedDatabaseId()); scheduleProtectedDatabaseDeletionDetails( o.getScheduleProtectedDatabaseDeletionDetails()); + opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -231,11 +275,12 @@ public ScheduleProtectedDatabaseDeletionRequest buildWithoutInvocationCallback() request.protectedDatabaseId = protectedDatabaseId; request.scheduleProtectedDatabaseDeletionDetails = scheduleProtectedDatabaseDeletionDetails; + request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; // new ScheduleProtectedDatabaseDeletionRequest(protectedDatabaseId, - // scheduleProtectedDatabaseDeletionDetails, ifMatch, opcRequestId); + // scheduleProtectedDatabaseDeletionDetails, opcRetryToken, ifMatch, opcRequestId); } } @@ -248,6 +293,7 @@ public Builder toBuilder() { return new Builder() .protectedDatabaseId(protectedDatabaseId) .scheduleProtectedDatabaseDeletionDetails(scheduleProtectedDatabaseDeletionDetails) + .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); } @@ -269,6 +315,7 @@ public String toString() { sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); sb.append(",scheduleProtectedDatabaseDeletionDetails=") .append(String.valueOf(this.scheduleProtectedDatabaseDeletionDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -291,6 +338,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.scheduleProtectedDatabaseDeletionDetails, other.scheduleProtectedDatabaseDeletionDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -309,6 +357,9 @@ public int hashCode() { + (this.scheduleProtectedDatabaseDeletionDetails == null ? 43 : this.scheduleProtectedDatabaseDeletionDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/UpdateLongTermBackupRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/UpdateLongTermBackupRequest.java new file mode 100644 index 00000000000..becf65c3c75 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/UpdateLongTermBackupRequest.java @@ -0,0 +1,303 @@ +/** + * 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.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use UpdateLongTermBackupRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class UpdateLongTermBackupRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails> { + + /** The long term backup OCID. */ + private String longTermBackupId; + + /** The long term backup OCID. */ + public String getLongTermBackupId() { + return longTermBackupId; + } + /** The information to be updated. */ + private com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails updateLongTermBackupDetails; + + /** The information to be updated. */ + public com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails + getUpdateLongTermBackupDetails() { + return updateLongTermBackupDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails getBody$() { + return updateLongTermBackupDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateLongTermBackupRequest, + com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The long term backup OCID. */ + private String longTermBackupId = null; + + /** + * The long term backup OCID. + * + * @param longTermBackupId the value to set + * @return this builder instance + */ + public Builder longTermBackupId(String longTermBackupId) { + this.longTermBackupId = longTermBackupId; + return this; + } + + /** The information to be updated. */ + private com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails + updateLongTermBackupDetails = null; + + /** + * The information to be updated. + * + * @param updateLongTermBackupDetails the value to set + * @return this builder instance + */ + public Builder updateLongTermBackupDetails( + com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails + updateLongTermBackupDetails) { + this.updateLongTermBackupDetails = updateLongTermBackupDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @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(UpdateLongTermBackupRequest o) { + longTermBackupId(o.getLongTermBackupId()); + updateLongTermBackupDetails(o.getUpdateLongTermBackupDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateLongTermBackupRequest 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 UpdateLongTermBackupRequest + */ + public UpdateLongTermBackupRequest build() { + UpdateLongTermBackupRequest 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.recovery.model.UpdateLongTermBackupDetails body) { + updateLongTermBackupDetails(body); + return this; + } + + /** + * Build the instance of UpdateLongTermBackupRequest 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 UpdateLongTermBackupRequest + */ + public UpdateLongTermBackupRequest buildWithoutInvocationCallback() { + UpdateLongTermBackupRequest request = new UpdateLongTermBackupRequest(); + request.longTermBackupId = longTermBackupId; + request.updateLongTermBackupDetails = updateLongTermBackupDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateLongTermBackupRequest(longTermBackupId, updateLongTermBackupDetails, + // 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() + .longTermBackupId(longTermBackupId) + .updateLongTermBackupDetails(updateLongTermBackupDetails) + .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(",longTermBackupId=").append(String.valueOf(this.longTermBackupId)); + sb.append(",updateLongTermBackupDetails=") + .append(String.valueOf(this.updateLongTermBackupDetails)); + 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 UpdateLongTermBackupRequest)) { + return false; + } + + UpdateLongTermBackupRequest other = (UpdateLongTermBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.longTermBackupId, other.longTermBackupId) + && java.util.Objects.equals( + this.updateLongTermBackupDetails, other.updateLongTermBackupDetails) + && 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.longTermBackupId == null ? 43 : this.longTermBackupId.hashCode()); + result = + (result * PRIME) + + (this.updateLongTermBackupDetails == null + ? 43 + : this.updateLongTermBackupDetails.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-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelLongTermBackupResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelLongTermBackupResponse.java new file mode 100644 index 00000000000..2be8ae12231 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelLongTermBackupResponse.java @@ -0,0 +1,177 @@ +/** + * 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.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CancelLongTermBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** Unique Oracle-assigned identifier of the work request. */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private CancelLongTermBackupResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** Unique Oracle-assigned identifier of the work request. */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CancelLongTermBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CancelLongTermBackupResponse build() { + return new CancelLongTermBackupResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelLongTermBackupResponse)) { + return false; + } + + CancelLongTermBackupResponse other = (CancelLongTermBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CreateLongTermBackupResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CreateLongTermBackupResponse.java new file mode 100644 index 00000000000..949d249a53d --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CreateLongTermBackupResponse.java @@ -0,0 +1,284 @@ +/** + * 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.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CreateLongTermBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** Relative URL of the newly created resource. */ + private String location; + + /** + * Relative URL of the newly created resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** Unique Oracle-assigned identifier of the work request. */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code LongTermBackup} instance. */ + private com.oracle.bmc.recovery.model.LongTermBackup longTermBackup; + + /** + * The returned {@code LongTermBackup} instance. + * + * @return the value + */ + public com.oracle.bmc.recovery.model.LongTermBackup getLongTermBackup() { + return longTermBackup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "etag", + "opcWorkRequestId", + "opcRequestId", + "longTermBackup" + }) + private CreateLongTermBackupResponse( + int __httpStatusCode__, + java.util.Map> headers, + String location, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.recovery.model.LongTermBackup longTermBackup) { + super(__httpStatusCode__, headers); + this.location = location; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.longTermBackup = longTermBackup; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** Relative URL of the newly created resource. */ + private String location; + + /** + * Relative URL of the newly created resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** Unique Oracle-assigned identifier of the work request. */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code LongTermBackup} instance. */ + private com.oracle.bmc.recovery.model.LongTermBackup longTermBackup; + + /** + * The returned {@code LongTermBackup} instance. + * + * @param longTermBackup the value to set + * @return this builder + */ + public Builder longTermBackup(com.oracle.bmc.recovery.model.LongTermBackup longTermBackup) { + this.longTermBackup = longTermBackup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateLongTermBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + longTermBackup(o.getLongTermBackup()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateLongTermBackupResponse build() { + return new CreateLongTermBackupResponse( + __httpStatusCode__, + headers, + location, + etag, + opcWorkRequestId, + opcRequestId, + longTermBackup); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",longTermBackup=").append(String.valueOf(longTermBackup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateLongTermBackupResponse)) { + return false; + } + + CreateLongTermBackupResponse other = (CreateLongTermBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.longTermBackup, other.longTermBackup); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.longTermBackup == null ? 43 : this.longTermBackup.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/DeleteLongTermBackupResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/DeleteLongTermBackupResponse.java new file mode 100644 index 00000000000..02d8bc567f2 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/DeleteLongTermBackupResponse.java @@ -0,0 +1,177 @@ +/** + * 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.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class DeleteLongTermBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** Unique Oracle-assigned identifier of the work request. */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteLongTermBackupResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** Unique Oracle-assigned identifier of the work request. */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteLongTermBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteLongTermBackupResponse build() { + return new DeleteLongTermBackupResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteLongTermBackupResponse)) { + return false; + } + + DeleteLongTermBackupResponse other = (DeleteLongTermBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/GetLongTermBackupResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/GetLongTermBackupResponse.java new file mode 100644 index 00000000000..d720946a611 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/GetLongTermBackupResponse.java @@ -0,0 +1,210 @@ +/** + * 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.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class GetLongTermBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code LongTermBackup} instance. */ + private com.oracle.bmc.recovery.model.LongTermBackup longTermBackup; + + /** + * The returned {@code LongTermBackup} instance. + * + * @return the value + */ + public com.oracle.bmc.recovery.model.LongTermBackup getLongTermBackup() { + return longTermBackup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "longTermBackup" + }) + private GetLongTermBackupResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.recovery.model.LongTermBackup longTermBackup) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.longTermBackup = longTermBackup; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code LongTermBackup} instance. */ + private com.oracle.bmc.recovery.model.LongTermBackup longTermBackup; + + /** + * The returned {@code LongTermBackup} instance. + * + * @param longTermBackup the value to set + * @return this builder + */ + public Builder longTermBackup(com.oracle.bmc.recovery.model.LongTermBackup longTermBackup) { + this.longTermBackup = longTermBackup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetLongTermBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + longTermBackup(o.getLongTermBackup()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetLongTermBackupResponse build() { + return new GetLongTermBackupResponse( + __httpStatusCode__, headers, etag, opcRequestId, longTermBackup); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",longTermBackup=").append(String.valueOf(longTermBackup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetLongTermBackupResponse)) { + return false; + } + + GetLongTermBackupResponse other = (GetLongTermBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.longTermBackup, other.longTermBackup); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.longTermBackup == null ? 43 : this.longTermBackup.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ListLongTermBackupsResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ListLongTermBackupsResponse.java new file mode 100644 index 00000000000..5691f213c09 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ListLongTermBackupsResponse.java @@ -0,0 +1,230 @@ +/** + * 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.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class ListLongTermBackupsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code LongTermBackupCollection} instance. */ + private com.oracle.bmc.recovery.model.LongTermBackupCollection longTermBackupCollection; + + /** + * The returned {@code LongTermBackupCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.recovery.model.LongTermBackupCollection getLongTermBackupCollection() { + return longTermBackupCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "longTermBackupCollection" + }) + private ListLongTermBackupsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.recovery.model.LongTermBackupCollection longTermBackupCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.longTermBackupCollection = longTermBackupCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code LongTermBackupCollection} instance. */ + private com.oracle.bmc.recovery.model.LongTermBackupCollection longTermBackupCollection; + + /** + * The returned {@code LongTermBackupCollection} instance. + * + * @param longTermBackupCollection the value to set + * @return this builder + */ + public Builder longTermBackupCollection( + com.oracle.bmc.recovery.model.LongTermBackupCollection longTermBackupCollection) { + this.longTermBackupCollection = longTermBackupCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListLongTermBackupsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + longTermBackupCollection(o.getLongTermBackupCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListLongTermBackupsResponse build() { + return new ListLongTermBackupsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + longTermBackupCollection); + } + } + + /** + * 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(",longTermBackupCollection=").append(String.valueOf(longTermBackupCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListLongTermBackupsResponse)) { + return false; + } + + ListLongTermBackupsResponse other = (ListLongTermBackupsResponse) 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.longTermBackupCollection, other.longTermBackupCollection); + } + + @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.longTermBackupCollection == null + ? 43 + : this.longTermBackupCollection.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/UpdateLongTermBackupResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/UpdateLongTermBackupResponse.java new file mode 100644 index 00000000000..d814ebb3862 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/UpdateLongTermBackupResponse.java @@ -0,0 +1,177 @@ +/** + * 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.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class UpdateLongTermBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** Unique Oracle-assigned identifier of the work request. */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateLongTermBackupResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** Unique Oracle-assigned identifier of the work request. */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateLongTermBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateLongTermBackupResponse build() { + return new UpdateLongTermBackupResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateLongTermBackupResponse)) { + return false; + } + + UpdateLongTermBackupResponse other = (UpdateLongTermBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json b/bmc-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json index f28b94dbd7e..67619424b0c 100644 --- a/bmc-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json +++ b/bmc-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json @@ -5,6 +5,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.BackupCloudLocation", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.recovery.model.ChangeProtectedDatabaseCompartmentDetails", @@ -61,6 +67,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.CreateLongTermBackupDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.CreateLongTermBackupDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.recovery.model.CreateProtectedDatabaseDetails", @@ -147,6 +167,60 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.LongTermBackup", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.LongTermBackup$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.LongTermBackup$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.LongTermBackup$LifecycleSubstate", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.LongTermBackupCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.LongTermBackupCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.LongTermBackupSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.LongTermBackupSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.recovery.model.Metrics", @@ -341,6 +415,26 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.RetentionPeriodValue", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.RetentionPeriodValue$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.RetentionPeriodValue$RetentionPeriodType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.recovery.model.ScheduleProtectedDatabaseDeletionDetails", @@ -361,6 +455,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.recovery.model.UpdateProtectedDatabaseDetails", diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 61154445aa9..6ad62597a0d 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-redis @@ -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-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index 86b03826fba..9e820e3bd34 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-resourceanalytics @@ -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-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 3858d2c1e91..a78a43d086c 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-resourcemanager @@ -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-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index ec4710df12f..56e35a6746a 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -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-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 549df374347..d714c391bea 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-resourcesearch @@ -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-rover/pom.xml b/bmc-rover/pom.xml index e18f9554b17..263d56efbb7 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-rover @@ -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-sch/pom.xml b/bmc-sch/pom.xml index 7ce0cc07bc5..f33d6d2821f 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-sch @@ -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-secrets/pom.xml b/bmc-secrets/pom.xml index cfac35f2473..50be2ad6ca9 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-secrets @@ -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-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index 85fc6d5c9fe..17a75804fae 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-securityattribute @@ -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-self/pom.xml b/bmc-self/pom.xml index 9a80fff702c..13be350096c 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-self @@ -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-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index ee233c212d4..f028e2b0421 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-servicecatalog @@ -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-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index ed84ed5cbcf..c60e8bd38ff 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -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-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index 5481eea58a7..a4690475afa 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 0bf22d9fc9e..74fd1714722 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/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-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 0d49729a179..e4bad7aec31 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -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-streaming/pom.xml b/bmc-streaming/pom.xml index 759122441e8..c56d26f9286 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-streaming @@ -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-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 1b3036df9e2..fa48072ea89 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -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-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 80c5467f4d6..82751672496 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-threatintelligence @@ -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-usage/pom.xml b/bmc-usage/pom.xml index aead17c13ab..83ee7f24d47 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-usage @@ -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-usageapi/pom.xml b/bmc-usageapi/pom.xml index 21523ec750f..65fb4b7c353 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-usageapi @@ -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-vault/pom.xml b/bmc-vault/pom.xml index 441d2906f42..933177f57e6 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,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 \ No newline at end of file diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 45d455d9c45..a3a5c2baf69 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-vbsinst @@ -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-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index fddb52dbd32..ad40f642279 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-visualbuilder @@ -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-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 02343974a3b..96ae69a761f 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -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-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 28fb370639e..7db2de69780 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -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-waa/pom.xml b/bmc-waa/pom.xml index 51bef3012b6..adb645386ac 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-waa @@ -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-waas/pom.xml b/bmc-waas/pom.xml index 3a1d32dc81b..96bf2597fb8 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-waas @@ -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-waf/pom.xml b/bmc-waf/pom.xml index 53672f8e482..e88a8cd391a 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-waf @@ -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-wlms/pom.xml b/bmc-wlms/pom.xml index 61f0f2ec8a2..9f0bef5f581 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-wlms @@ -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-workrequests/pom.xml b/bmc-workrequests/pom.xml index f76dc7b26ef..ad1d8d75579 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-workrequests @@ -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-zpr/pom.xml b/bmc-zpr/pom.xml index ca577181c74..0d6a4e10fda 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 ../pom.xml oci-java-sdk-zpr @@ -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/pom.xml b/pom.xml index 2136ee058c8..0272e6fe3e3 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.94.2 + 3.95.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -35,8 +35,8 @@ UTF-8 2.21 - 2.21.4 - 2.21.4 + 2.21.5 + 2.21.5 2.47 4.5.13 4.5.13